how to cancle the newline after cin in c++ code example Example: newline in c++ cout<<"\n"; or cout<<endl;