[[lesson_10_useparam.cpp]] Rescued by C++ Reloaded

Route:


[user02@FC4 Lesson10]$ cat -n useparam.cpp
1 #include <iostream> 2 using namespace std; 3 4 void show_number(int value) 5 { 6 cout << "The parameter's value is " << value << endl; 7 } 8 9 int main() 10 { 11 show_number(1); 12 show_number(1001); 13 show_number(-532); 14 15 return 0; 16 }
[user02@FC4 Lesson10]$ g++ -o useparam useparam.cpp
[user02@FC4 Lesson10]$ ./useparam
The parameter's value is 1
The parameter's value is 1001
The parameter's value is -532
[user02@FC4 Lesson10]$
lesson_10_useparam.cpp, Rev. 1, Last changed on 2005-08-18 06:04, 318 page hits
Wiki hosted for free at wikihost.org || RSS-Feed || GeboGebo 1.3.3 || 00.321 seconds || || PAGERANK TOOLS