Hello,
newbie Q!!I am unsure about this:
I am trying to explain this step by step:
1st funcn: takes 3 values from the user & calculates the total.
2nd & 3rd funcn:irrelevant to my doubt.so,just skipping it.
Now this above funcns r repeated till user types
"END".(in the main )
4th funcn :if any of the 3 values from the 1st funcn are not zero
then displays the total no. of persons.
So my doubt is how to calculate total no. of people in the 4th funcn.
I have tried using counter in the 4th funcn by declaring a vaid condition ,but unsuccessful.
like :
please tell me what I am suppose to do?????Code:if (t1!=0&&t2!=0&&t3!=0) { counter++; } cout<<"no.of persons"<<counter<<endl;
thanks in advance....



LinkBack URL
About LinkBacks



