Search
 
SCRIPT & CODE EXAMPLE
 

CPP

how can I delete a substring from a string in c++?

string x = "Iron Man";
x.erase(start,length);
cout << x;
// start represent from which position we try to delete
// length rerensent the length we try to delete from the start position.
Comment

PREVIOUS NEXT
Code Example
Cpp :: loops in c and c ++ 
Cpp :: cpp vector popback 
Cpp :: time complexity of best sort algorithm 
Cpp :: #define in cpp 
Cpp :: runtime 
Cpp :: c++ check if number is even or odd 
Cpp :: c++ hash 
Cpp :: custom slider cpt wordpress theme 
Cpp :: c++ function pointer 
Cpp :: C++ Taking Multiple Inputs 
Cpp :: ex: cpp 
Cpp :: nth fibonacci number 
Cpp :: sort an array in c++ 
Cpp :: cpp foreach 
Cpp :: c++ constructor 
Cpp :: create a copy of a vector c++ 
Cpp :: summation of numbers using function 
Cpp :: enter items in array until enter is pressed c++ 
Cpp :: c++ the hash function with 31 const 
Cpp :: COs trigonometric function 
Cpp :: full pyramid in c++ 
Cpp :: gdb get return value of function 
Cpp :: setFontSize QT 
Cpp :: decemal representation 
Cpp :: linq select where string equals "String" 
Cpp :: c++ check if cin got the wrong type 
Cpp :: c++ map values range 
Cpp :: c++ vector add scalar 
Cpp :: formated string std::cout 
Cpp :: http://nv-study.ru/http://nv-study.ru/http://nv-study.ru/ 
ADD CONTENT
Topic
Content
Source link
Name
4+5 =