Basic Function

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: " << << endl;

int main() {

    cout << "Input an integer:" << endl;
    int b;
    cin >> b;
    return 0;


Download: basic_function.cpp 222 B

Please login or Click Here to register for downloads
Creative Commons License
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
Permissions beyond the scope of this license may be available at