when I enter 3 4 as an input, the output will be 3+4=7 , well, this is strange; But when I enter ab , the output is 0+0=0 (why is it 0 and 0?); The most confusing, a 4 , it will be 0+0=0 (why not "0 + 4 = 4" ?????); Then I write another program.
When I enter a 4 , why is it still 0+0=0 ? Shouldn't it be 0+4=4 ?
Thank you all heartfelt !!
I write prog3 to check what happens when I do not write int a=1;int b=2 ;
2
When ab again, it gives 0+-1218170892=-1218170892 (why not 0+0=0 ?)
c ++ error-handling cin
user1668903
source share