but both are almost same. what is the problem???can anyone help me please ??
it "works" (and does what you told it). To read an integer and the rest of that line into the first string, the content of a second line into another string. the new line character is not part of your number and is hence not consumed by cin.operator>>
thanks for your reply sir...but i am still unable to solve this issue...it will be great if you solve this for me ... i am an new comer in c++... so i need help ...
Обсуждают сегодня