A basic function in C++.
Basic function.
Date Created:Friday December 29th, 2006 03:41 AM
Date Modified:Wednesday July 30th, 2008 11:42 PM
#include <iostream>
using namespace std;
void foo(int a) {
cout << "You input: " << a << endl;
}
int main() {
cout << "Input an integer:" << endl;
int b;
cin >> b;
foo(b);
return 0;
}
Downloads:
Download: basic_function.cpp 222 B
Please login or Click Here to register for downloads
Basic Function by Dan Lynch
is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 United States License
Based on a work at www.3daet.com
Permissions beyond the scope of this license may be available at http://www.3daet.com
