
12.08.2009, 22:20
|
|
Banned
Регистрация: 19.06.2006
Сообщений: 1,239
Провел на форуме: 1469161
Репутация:
142
|
|
Код:
#include <iostream.h>
int add_values (int a, int b)
{
return (a+ b);
}
int main ()
{
cout << " 100 + 200 = " << add_values(100, 200) << endl;
cout << " 500 + 501 = " << add_values(500, 501) << endl ;
cout << "-1 + 1 = " << add_values(-1, 1) << endl;
}
Этот-то пример работает.... а чем отличается,не пойму.
|
|
|