just a tip about c++

Questions about programming languages and debugging
Post Reply
User avatar
Swan
Knight of the Sword
Knight of the Sword
Posts: 827
Joined: 18 Oct 2006, 16:00
17
Contact:

just a tip about c++

Post by Swan »

I aplogise in advance for this post.

Ive been learning C++ the last couple of days, and have encountered difficulty. Why? I actually understand the theory, but the examples given to me in tutorials dont work, quite often, they require the addition of rather complex coding, way way beyond the comprehension of a novice.

So can I recommend:

http://www.cplusplus.com/doc/tutorial/p ... cture.html

Just to let you know the examples in do work! Its very frustrating not even being able to practise what you have just coded. Oh and one other thing.

(Courtesy of ebrizz and nerdz btw)

use system ("pause"); within your program, this will allow you to actually see the results wheb the program is compiled and executed.

User avatar
bad_brain
Site Owner
Site Owner
Posts: 11636
Joined: 06 Apr 2005, 16:00
18
Location: In your eye floaters.
Contact:

Post by bad_brain »

don't worry, such stuff happens in many languages...I made the same experience with Java and Perl. the reason is in most cases incompatibility because of different versions (at least in Java and Perl, I'm a n00b in C++ so I can only guess)... :wink:

User avatar
Nerdz
The Architect
The Architect
Posts: 1127
Joined: 15 Jun 2005, 16:00
18
Location: #db_error in: select usr.location from sucko_member where usr.id=63;
Contact:

Post by Nerdz »

The reason of the system("pause"); is only because the program will close itself after he has done his execution just like if you run ipconfig or any .exe exept cmd in start-> run.
Give a man a fish, you feed him for one day.
Learn a man to fish, you feed him for life.

Post Reply