![]() |
| Forums | Gaming News | Videos | Downloads | Today's Posts | Mark Forums Read | Chat | FAQ | Members List | Contact |
| ||||||
This is a discussion on Help a noob in C++ within the Everything Windows forums, part of the General PC Forums category; After many delays...i'm finally learning C++...the book i'm reading is great, and it's been a smooth ride so far, but ...
![]() |
|
|
LinkBack | Thread Tools |
|
|
#1 | ||
|
After many delays...i'm finally learning C++...the book i'm reading is great, and it's been a smooth ride so far, but there is one thing I haven't been able to understand: How to call a function!
I just don't understand it the way the show it in the book. Like in one example they write a program that finds triangle numbers, and a certain function does this...here is how they call it: Quote:
In another example they write a program that determines if a number is prime or not...here is how they call the function used: Quote:
btw im using Visuall C++ 2005 if that is needed. |
|||
|
|
|
|
|
#2 |
![]() |
FunctionName( any variables you're sending to the function );
__________________
[CENTER][IMG]http://i169.photobucket.com/albums/u240/Murasaki007/3060000000056603.gif[/IMG][COLOR=Lime] [/COLOR][CENTER] [/CENTER] [URL="http://forums.qj.net/showthread.php?t=111647"]All Forum Policies[/URL] [/CENTER] [CENTER] [/CENTER] |
|
|
|
![]() |
| Tags |
| noob |
| Thread Tools | |
|
|