Sunday, July 26, 2009

Help On C++?

I'm just beginning C++ (aged 14) and I want to know the difference between a function and a statement. E.g. "return" is a statement while "int" is a function. I would also like to know useful websites and books which can help me understand C++.





Thanks for helping ;)

Help On C++?
A statement is using a built in language construct such as performing an assignment.





A function is a subroutine that performs a group of statements and optionally returns a value. The only execption is that a function declared "inline" is really just a macro that replaces the function declaration with the actual statements in line when the program gets compiled.
Reply:int is a variable.





int n = 10; is a statement. A statement is basically anything between ';'.





MSDN is a great source for C programming information.
Reply:For help check out www.programmersheaven.com you can also join a group on msn or somewhere else. Some are not very active. You can even try myspace I know they have some programming groups but again not sure how active. You may also try your local library for some books (free). Good luck.
Reply:statements can be used to perform an operation or a function. int is a variable declaring datatype. it tells the C compiler as to what kind of data it is.





http://books.google.com/books?id=hklfknZ...

wedding reception flowers

No comments:

Post a Comment