Search
 
SCRIPT & CODE EXAMPLE
 

CPP

input a string in c++

string fullName;
cout << "Type your full name: ";
getline (cin, fullName);
cout << "Your name is: " << fullName;
Comment

PREVIOUS NEXT
Code Example
Cpp :: winmain example 
Cpp :: c++ print byte as bit 
Cpp :: how to print with the bool value in cpp 
Cpp :: addition without arithmetic operators c++ 
Cpp :: how to free the vector c++ 
Cpp :: prime number in c++ 
Cpp :: Array sum in c++ stl 
Cpp :: Sort array using inbuilt sort function in decreasing order 
Cpp :: minimum and maximum value of a vector in C++ 
Cpp :: c++ create threads 
Cpp :: map defualt value c++ 
Cpp :: heap buffer overflow c++ 
Cpp :: find length of array c++ 
Cpp :: how to read wav file in C++ 
Cpp :: double to string c++ 
Cpp :: cpp bubble sort 
Cpp :: c++ program to take input from user 
Cpp :: random number in a range c++ 
Cpp :: http.begin not working 
Cpp :: sin in c++ 
Cpp :: bubble sort in c+ 
Cpp :: number of lines in c++ files 
Cpp :: cpp binary tree 
Cpp :: sieve cpp 
Cpp :: initialize 2d vector 
Cpp :: c++ tokenize string 
Cpp :: check if char in string c++ 
Cpp :: how to get size of 2d vector in c++ 
Cpp :: Pyramid pattren program in C++ 
Cpp :: initialize vector of vector c++ 
ADD CONTENT
Topic
Content
Source link
Name
9+1 =