This is my first day of C++ and I was wondering how to get multiple functions in a C++ program. Any help would be appreciated. Here is my source.
ThanksCode:// Value selector // Nick Dichev 2009 #include <iostream> using namespace std; int main() { char number; cout << "Please input a value\n"; cin >> number; cout << " You selected: " << number; second(); // This should work in a C program, how do I do it in C++ system("PAUSE"); return 0; } int second() // This is where I run into problems { char number; cout << "Please select another value..."; cin >> number; cout << "You selected: " << number; }


LinkBack URL
About LinkBacks






Reply With Quote



Bookmarks
Algorithms and Data Structures
Java tutorials
Algorithms Forum