Anonymous
public text v1 · immutable#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
}