Statistics: Posted by Guest — Fri Jun 11, 2010 3:18 pm
Code:
#include <iostream>int Add (int x, int y){ cout << "In Add(), recieved " << x << " and " << y << endl; system ("pause"); return (x+y);}int main(){ cout << "im in main() " << endl; int a, b, c; cout << "enter two numbers: " <<endl>> a; cin >> b; cout << "calling Add() " << endl; c=Add(a, b); cout << "back in main()" << endl; cout << " c was set to" << c << endl; cout << " exiting...." << endl; system ("pause"); return 0;}
Statistics: Posted by floogle11 — Thu Jun 10, 2010 12:44 pm
Code:
#include <iostream>using namespace std;int main(){ cout << "Hello World" << endl; system("pause"); return 0;}
Statistics: Posted by Guest — Wed Jun 09, 2010 4:08 pm
Statistics: Posted by bongomeno — Tue Jun 08, 2010 9:00 am