| | |
Noob as it gets
Please support our C++ advertiser: Intel Parallel Studio Home
![]() |
Hey, guys. I've decided to learn C++ for fun while we're having some downtime here at work.
I'm using Microsoft Visual C++ and it doesn't explain a couple of bits of basic syntax:
On the line
int main ()
What does "int" stand for? It seems to be used for an integer variable elsewhere. And what are the parentheses for? In case I want to set some parameters?
Thanks!
Tom
I'm using Microsoft Visual C++ and it doesn't explain a couple of bits of basic syntax:
On the line
int main ()
What does "int" stand for? It seems to be used for an integer variable elsewhere. And what are the parentheses for? In case I want to set some parameters?
Thanks!
Tom
Well , if you have started C++ right now , It would be hard to understand what
And I tend to prefer it to be that way, until you get to "functions" . Once you are pretty much aware about functions , you will see that it all comes into place,
If you have already studied functions suggestion to you would be to consider revising through the book that you are reading and look again into Functions.
For a good reference you could use the basics of functions Here
[EDIT]
AND THEN if you have a doubt, you are always welcome to ask
[/Edit]
int main () stands for, Most books explain the code as the place where the execution of the program begins. And I tend to prefer it to be that way, until you get to "functions" . Once you are pretty much aware about functions , you will see that it all comes into place,
If you have already studied functions suggestion to you would be to consider revising through the book that you are reading and look again into Functions.
For a good reference you could use the basics of functions Here
[EDIT]
AND THEN if you have a doubt, you are always welcome to ask
[/Edit] Last edited by Sky Diploma; Sep 14th, 2009 at 1:44 pm.
•
•
•
•
Well , if you have started C++ right now , It would be hard to understand whatint main ()stands for, Most books explain the code as the place where the execution of the program begins.
And I tend to prefer it to be that way, until you get to "functions" . Once you are pretty much aware about functions , you will see that it all comes into place,
If you have already studied functions suggestion to you would be to consider revising through the book that you are reading and look again into Functions.
For a good reference you could use the basics of functions Here
[EDIT]
AND THEN if you have a doubt, you are always welcome to ask[/Edit]
Thanks so much for your helpful reply!
Tom
![]() |
Similar Threads
- I'm such a noob - driver installation (*nix Hardware Configuration)
- NOOB flashback (C++)
- Anyone mind helping out a stuck noob? (Java)
- Noob with a question (IT Professionals' Lounge)
- Clearing screen in Python (was: omg noob prob plz help) (Python)
- Help the IT noob, i experience laggy and delay online game. (Networking Hardware Configuration)
- perl script help re: scope/structure for noob (Perl)
- Noob needs Wireless Network / router help. (Networking Hardware Configuration)
- This NOOB Needs Help (Networking Hardware Configuration)
- Noob question about Defining and Declaring. (C++)
Other Threads in the C++ Forum
- Previous Thread: convert given timestamp and timezone to broken-down time
- Next Thread: help for templates!!!!
| Thread Tools | Search this Thread |






