Skip to content

Commit 29d02ec

Browse files
committed
J3String_Erase
1 parent 7144077 commit 29d02ec

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

J3String_Erase.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ int main( ){
1010
cout<<"Enter the name: ";
1111
getline(cin, name);
1212

13-
cout<<name.erase(0, 6 ); // Delete the char from 0 to 6.
13+
// cout<<name.erase(0, 6 ); // Delete the char from 0 to 6.
14+
cout<<name.erase(5, 8 ); // Delete the char from 0 to 6.
1415

1516
return 0;
1617
}

J3String_Erase.exe

0 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)