Psst.. new poll here.
Psst.. new forums here.
Microsoft is blocking us again (TY IP Reputation!) so just use oauth login instead. :)
Paste
Pasted as C++ by dfdf ( 13 years ago )
#include <iostream>
#include <conio.h>
#include <cstdlib>
using namespace std;
bool function(int *wskaznikA, int *wskaznikB, int c)
{
bool wynik;
if (*wskaznikA+*wskaznikB>c)
wynik = true;
else
wynik = false;
return wynik;
}
int main()
{
int a, b, c;
cout << "Podaj zmienna a: "; cin >> a;
cout << "Podaj zmienna b: "; cin >> b;
cout << "Podaj zmienna c: "; cin >> c;
int *wskaznikA = &a;
int *wskaznikB = &b;
cout << "Wynik wykonywania programu to: " << function(wskaznikA, wskaznikB, c) << "." << endl;
// Zakonczenie programu
system("PAUSE");
return 0;
}
Revise this Paste