Rearrange the code to declare class "MyClass" with "foo" member function, which calculates and prints to the screen (a-b)/b expr | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Rearrange the code to declare class "MyClass" with "foo" member function, which calculates and prints to the screen (a-b)/b expr

public: void foo(int a, int b) { }; cout << (a-b)/b; } class MyClass {

8th Jan 2017, 5:19 PM
Jocelyn Boismier
Jocelyn Boismier - avatar
1 Answer
0
class myclass { public : void foo (int a, int b){ cout <<(a-b/b;} };
8th Jan 2017, 5:35 PM
ASNM
ASNM - avatar