#include <iostream>
#include <stdlib.h>
using namespace std;
int main()
{ C_jakas_klasa cos;
cos.a=2;
cos.b=4;
cos.dodac();
cout << "a :" << a << endl;
system("PAUSE");
return 0;
}
class KLASA
{
public:
char wyraz[40];
int a,b;
void dodac();
};
void KLASA::dodac()
{
a+=b;
}
jest sobie taki progrmik chce go skąpilować ale wywala mi błedy! nie wiem dlaczego? prosze o pomoc!! czy coś pominełem w moim kursie nie ma o tym nic!