Skip to content

Commit 8ea90bc

Browse files
committed
J2String_At
1 parent f67f9e9 commit 8ea90bc

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

J2String_At.cpp

+5-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,11 @@ using std::cin;
66
using std::endl;
77

88
int main( ){
9-
string name = "WizardBrew";
9+
string name ; // = "WizardBrew";
10+
11+
cout<<"Enter the name: ";
12+
getline(cin, name);
13+
1014
cout<< name.at(6); //at (place or Index to find)
1115

1216
return 0;

J2String_At.exe

-8.56 KB
Binary file not shown.

0 commit comments

Comments
 (0)