When reading character data from an input stream, what is the difference between using the >> operator and using the `get` function?
Nyika
0
Newbie Poster
Recommended Answers
Jump to Post>> will pead data until a space character is met. this means that if u need to enter the address os sombody u cannot use>> u hav to use cin.getline. wtas the difference. wiz cin.getline u can enter all chracters including a space one
All 4 Replies
Reply to this topic
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.