Users Online

· Guests Online: 38

· Members Online: 0

· Total Members: 188
· Newest Member: meenachowdary055

Forum Threads

Newest Threads
No Threads created
Hottest Threads
No Threads created

Latest Articles

Become a C Plus Plus Developer:4. C++ Essential Training (2014) with Bill Weinman

02. Defining Functions



 
 
 
 
02_01 Overview of C++ functions
02_02 Defining a function
02_03 Passing values to a function
02_04 Using automatic and static variables
 
 
 
 
02_05 Returning values from a function
02_06 Using function pointers
02_07 Overloading function names
02_08 Overloading operators with functions
 
 
02_09 Defining a variable number of arguments
02_10 Using recursion
 
Source code for this chapter
 

// func.cpp by Bill Weinman

#include <cstdio>

using namespace std;

void func()

{

puts("this is func()");

}

int main( int argc, char ** argv )

{

puts("this is main()");

func();

return 0;

}



Comments

No Comments have been Posted.

Post Comment

Please Login to Post a Comment.

Ratings

Rating is available to Members only.

Please login or register to vote.

No Ratings have been Posted.
Render time: 0.78 seconds
10,818,850 unique visits