Search
 
SCRIPT & CODE EXAMPLE
 

CPP

c++ reading string

#include <iostream>
#include <string>
string str;
getline(cin, str);
//str contains line
Comment

PREVIOUS NEXT
Code Example
Cpp :: do while loop c++ loops continuously 
Cpp :: c++ console color 
Cpp :: how to declare a function in c++ 
Cpp :: how to clear vector c++ 
Cpp :: how to change a value from an array c++ 
Cpp :: c++ random number within range 
Cpp :: how to get an element in a list c++ 
Cpp :: c++ simple projects 
Cpp :: c++ typing animation 
Cpp :: push_back struct c++ 
Cpp :: memcpy library cpp 
Cpp :: how to easily trim a str in c++ 
Cpp :: play audio c++ 
Cpp :: coordinate in 1d array c++ 
Cpp :: divide and conquer based algorithm to find maximum and minimum of an array 
Cpp :: delete from front in vector c++ 
Cpp :: c++ vector declaration 
Cpp :: how to initialize array with new in c++ 
Cpp :: why is using namespace std a bad practice 
Cpp :: c++ string size 
Cpp :: deep copy c++ 
Cpp :: change colour of output to terminal c++ 
Cpp :: print duplicate characters from string in c++ 
Cpp :: what is - in c++ 
Cpp :: Sort html elements in Jquery on condition 
Cpp :: if statement c++ 
Cpp :: c++ initialize a vector 
Cpp :: c function as paramter 
Cpp :: accumulate() in c++ 
Cpp :: c++ write to csv file append 
ADD CONTENT
Topic
Content
Source link
Name
8+7 =