Can check me?
1. write a statement that outputs "deposit" if task equals deposit?
my answer: cout << deposit<< endl;
2. declare a statement called task of type Atm whose initial value is deposit?
my answer: task = deposit
Am i right or wrong here?
This is a discussion on Can someopne recheck me? within the C++ Programming forums, part of the General Programming Boards category; Can check me? 1. write a statement that outputs "deposit" if task equals deposit? my answer: cout << deposit<< endl; ...
Can check me?
1. write a statement that outputs "deposit" if task equals deposit?
my answer: cout << deposit<< endl;
2. declare a statement called task of type Atm whose initial value is deposit?
my answer: task = deposit
Am i right or wrong here?
"Be formless, shapeless, like water... You put water into a cup, it becomes the cup, you put water into a bottle, it becomes the bottle, you put it in a teapot, it becomes the teapot... Now water can flow, or it can crash, be water my friend."
-Bruce Lee
cout << "deposit" << endl;
Don't try so hard. Just let it happen.
1.
if (task == deposit) cout << "deposit";
2.
Atm task = deposit;