All pastes #523521 Raw Edit

Anonymous

public text v1 · immutable
#523521 ·published 2007-05-30 20:26 UTC
rendered paste body
#include <iostream>
#include <string>
#include <cstdlib>

using namespace std;

/* ok i am going to declare the varibles you do not have to declare unless your going to use

the function through your code by calling it
*/

//you declare in void if you want no return (like return 0)

void mainprogram();

void mainprogram() {

cout<<"hello world"; 
cin.get();

}

int main() { 
mainprogram(); //this calls the function and it does whats in the function

}