Click here to Skip to main content
15,929,795 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: C++ and Python Questions... Pin
Raistlfiren14-Aug-05 19:55
Raistlfiren14-Aug-05 19:55 
GeneralRe: C++ and Python Questions... Pin
code-frog14-Aug-05 21:26
professionalcode-frog14-Aug-05 21:26 
GeneralRe: C++ and Python Questions... Pin
Raistlfiren15-Aug-05 10:46
Raistlfiren15-Aug-05 10:46 
GeneralRe: C++ and Python Questions... Pin
code-frog14-Aug-05 19:52
professionalcode-frog14-Aug-05 19:52 
GeneralRe: C++ and Python Questions... Pin
S. Senthil Kumar14-Aug-05 19:12
S. Senthil Kumar14-Aug-05 19:12 
GeneralRe: C++ and Python Questions... Pin
Raistlfiren14-Aug-05 19:24
Raistlfiren14-Aug-05 19:24 
GeneralRe: C++ and Python Questions... Pin
Christian Graus14-Aug-05 19:35
protectorChristian Graus14-Aug-05 19:35 
GeneralRe: C++ and Python Questions... Pin
Christian Graus14-Aug-05 19:43
protectorChristian Graus14-Aug-05 19:43 
Raistlfiren wrote:
Is there a right way to right a C++ program?

So long as main returns int and either takes these arguments, or takes none, it's right.

Raistlfiren wrote:
Are they all right ways?

Yes.

Raistlfiren wrote:
What does it all mean?

#include means to include an external file, and #include < > means to include a library file, not one in your project. For example, iostream is the streaming classes, string is the string classes. Note these files do not have .h after then, iostream.h is wrong.

The arguments in the second case are the number of arguments and the arguments passed on the command line, like when you type myProgram.exe /?, /? is the one argument, which is passed in.

namespaces are used to hide parts of the program from each other, namespace std is where the standard library sits. using namespace std makes all those things globally visible, otherwise you'd need to put using std::string, etc, for each class in std you want to use, or use std::string where-ever you used it in code.

I suggest you buy a book called 'Teach yourself C++ in 24 hours', I found that book very good when I was at your level of understanding. And obviously, keep asking those questions when you get stuck.

Why Python ?


Christian Graus - Microsoft MVP - C++
GeneralRe: C++ and Python Questions... Pin
Raistlfiren14-Aug-05 20:28
Raistlfiren14-Aug-05 20:28 
GeneralRe: C++ and Python Questions... Pin
Kevin McFarlane15-Aug-05 0:00
Kevin McFarlane15-Aug-05 0:00 
GeneralRe: C++ and Python Questions... Pin
markkuk15-Aug-05 1:52
markkuk15-Aug-05 1:52 
GeneralRe: C++ and Python Questions... Pin
Raistlfiren15-Aug-05 10:37
Raistlfiren15-Aug-05 10:37 
GeneralRe: C++ and Python Questions... Pin
Christian Graus15-Aug-05 13:12
protectorChristian Graus15-Aug-05 13:12 
GeneralRe: C++ and Python Questions... Pin
Raistlfiren15-Aug-05 16:11
Raistlfiren15-Aug-05 16:11 
GeneralRe: C++ and Python Questions... Pin
Christian Graus15-Aug-05 16:15
protectorChristian Graus15-Aug-05 16:15 
GeneralRe: C++ and Python Questions... Pin
vincent.reynolds15-Aug-05 7:03
vincent.reynolds15-Aug-05 7:03 
GeneralRe: C++ and Python Questions... Pin
Raistlfiren15-Aug-05 10:42
Raistlfiren15-Aug-05 10:42 
GeneralRe: C++ and Python Questions... Pin
DavidNohejl15-Aug-05 15:11
DavidNohejl15-Aug-05 15:11 
GeneralRe: C++ and Python Questions... Pin
Raistlfiren15-Aug-05 16:04
Raistlfiren15-Aug-05 16:04 
GeneralFirst Chance Exception Pin
suzie10014-Aug-05 18:17
suzie10014-Aug-05 18:17 
GeneralRe: First Chance Exception Pin
Steen Krogsgaard14-Aug-05 21:18
Steen Krogsgaard14-Aug-05 21:18 
GeneralLinked Lists Pin
sroberts8214-Aug-05 8:29
sroberts8214-Aug-05 8:29 
GeneralRe: Linked Lists Pin
Jack Puppy14-Aug-05 9:49
Jack Puppy14-Aug-05 9:49 
GeneralRe: Linked Lists Pin
Christian Graus14-Aug-05 13:53
protectorChristian Graus14-Aug-05 13:53 
GeneralRe: Linked Lists Pin
Abebe14-Aug-05 20:32
Abebe14-Aug-05 20:32 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.