Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- ///////////////////////////////////////////////////////////////
- class TT //
- {
- public:
- int a;
- int b;
- int summ();
- int mult();
- };
- ///////////////////////////////////////////////////////////////
- int main() //
- {
- TT x, x1, x2, arr[31];
- x1.a = 3;
- x1.b = 2;
- int S = x.mult();
- int S1= x.summ();
- printf("S1 = %d\n", S1);
- }
- int TT::summ()
- {
- return a + b;
- }
- int TT::mult()
- {
- return a * b;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement