English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

how can i execute a C++ program on a different computer without having to install C++?

2006-10-06 20:45:40 · 3 answers · asked by Anonymous in Computers & Internet Programming & Design

i tried to use the .exe file in the other pc & it's not working it can run but not compile.what should i do?

2006-10-07 01:17:34 · update #1

3 answers

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.)

2006-10-06 20:54:14 · answer #1 · answered by intracircumcordei 4 · 0 0

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.

2006-10-07 04:11:27 · answer #2 · answered by Gizmo L 4 · 0 0

when you compile the code it will generate Filename.exe

move this exe file to any PC and it should run.

2006-10-07 03:50:11 · answer #3 · answered by Waleed 2 · 0 0

fedest.com, questions and answers