getline() C++

1
2
//Storing a entire line in a string variable
//Giame Fajardo
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
This snippet shows how to store a entire line in a string variable, by using the getline function.

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.