Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
I am starting to learn to program C++ using the Sams Learn C++ in 24 hours. I have followed the exact instructions, but, when i complile, the .exe it makes (which you have to go few a fair few folders to get to) does not load. It opens up COmmand Promt and then closes it. I am using the compiler and linker the book gave me, which is BorlandC++CompilerIDE. It is ok, thouigh not the easiest to use. Can some one tell me how to fix the problem of not being able to complie the program properly (and link it to an .exe) and which is the best FREE C++ compiler? Thankyou
P.S. I am not a Programmer!

If your exe opens a command prompt and quickly closes it, you may have not a compile problem but a usage problem.
Go to a command prompt, change to the directory where your new executable is and type it in. Does it do or say what it's supposed to?
M2

Well in my opinion, I love VC++6.0 compiler.
But just about everyone here has something against microsoft lol.
( you can dl VC 6.0 using a program >_< wont say which though )
I found borland confusing and I though the Dev compiler sucked.
VC6.0 has a lot easier environment to it I THINK.Just explore them and see which your more comfortable with.
Plus Visual Studio compilers are mainly for people looking to get into windows type programming and stuff.
GIMPS

On January 14th, 2005, BlueRaja said AND I QUOTE:
"add getch() to the end of main()."BlueRaja.admin@gmail.com

"O,, could someone tell me how to use the BorlandC++ compiler then?"
well, using Borland C++ compiler is not that hard, learn it step by step
C++ Basic (not any different witch C basic):
- syntax(use Help menu [Control + F1])
- I/O
- Selection
- RepetitionC++ object concept:
- Struct(basic of class)
- Setter & Getter
- Parameter overriding
- Parameter Overloading
- Constructor
- Inheritance,Multiple Inheritance
- Polymorphismoh yeah, coding/programming is all about concept and syntax, but there is one thing you can't study, it is logic, gotta find out yourself, train every day. esp using selection and repetition
AtlhonXP 2000+ @ 1667Mhz
V-Gen 512MB pc3200
MSI K7N2 Delta-L
Seagate 80GB HDD
Maxtor 20GB HDD
Thermaltake Volcano 7+
Windows XP sp1
GeForce4 MX 440-8x
Philips TV Tuner
Sony

Hey Hey don't blame the compiler is better then you are!!!!! post your code that you're compiling i have a theory of why it's doing that but i want to be sure.

Alright. I'm not going to say it again.
The next person to post something irrelevent ("post your code that you're compiling i have a theory of why it's doing that but i want to be sure.") is an idiot.BlueRaja.admin@gmail.com

If you want to execute the code . Just compiling is not enough. Try using "build all" or "make" in the build menu. Your program must be linked to your precompiled header files.

![]() |
![]() |
![]() |

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |