|
|
back to boardwhere is the problem ... my compiler shows me thats is correct ... :| #include<iostream> using namespace std; class myclass { public: int a, b; }; int main() { myclass ob1, ob2; ob1.a = 1; ob2.b = 5; cout << ob1.a + ob2.b << "\n"; getchar (); return 0; } Read "Frequently asked questions" (-) Re: where is the problem ... my compiler shows me thats is correct ... :| exchange "int a,b;" by long long a,b; good luck Re: where is the problem ... my compiler shows me thats is correct ... :| Edited by author 15.06.2011 11:52 |
|
|