#include <iostream>
int Add(int first , int second)
{
std::cout << "Add() received "<< first << " and "<< second <<"\n";
return (first+second);
}
int main()
{
using std::cout;
using std::cin;
cout << "I'm in main()!\n";
int a, b, c;
cout << "Enter two numbers:3 5";
cin >> a;
cin >> b;
cout << "\nCalling Add()\n";
c=Add(a,b);
cout << "\nBack in main().\n";
cout << "c was set to " << c;
cout << "\nExiting¡­¡­\n\n";
return 0;
}
程序运行了一半,就没有了。不知问题出在那里。请指点。