how can i execute a C++ program on a different computer without having to install C++?
Visual C++ question?
compile it with a C++ compiler.
either this means packaging it as executable compiled before you transfer it to the other computer.. ot having a C++ compiler (C++ sorta) on the other computer.
Alternatively you could make a new compiler program that can compile C++ but isn't C++
finally ~ a good imagination.(operations may be slow at first but with time you may get goin afterall the human brain is faster than a running human.)
Reply:when you compile the code it will generate Filename.exe
move this exe file to any PC and it should run.
Reply:c++ is a computer programming language, not a program. Visuall C++ is microsoft's c++ compiler. It tends to be the compiler that people who are writing c++ programs that are designed to run on the windows OS use.
Because c++ is based on the c language, c++ programs are designed to be compiled into object code. This object code can then be linked to create a program. Visual c++ also includes an integrated development environment (project organizer, source code editor, resource editor, compiler, linker, debugger) which can hide a lot of the details of how to build (make) the project and link it, to produce the final exe or dll.
A c++ can be very complicated, and require an extensive series of build steps. If you got the code from someone else, you might have to recreate the make file, if you're having problems figuring out how to build it. There are plenty of free tutorials around that willl walk you through the process of making a simple c++ program, and if you're confused, one of those may help you figure out the basics.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment