I want to make char mystring the size of input. Compiler is claiming it can't do this without an explicit number. I don't understand my the formatting is the way it is.
1 2 3 4
char mystring[]; tried as well
cout<<endl<<"Take a card ?";
char mystring[10];
cin>>mystring;
cout<<mystring;
if (mystring[0] == 'y') {cout<<"-y-";}
output:
..\src\main.cpp:183:16: error: storage size of 'mystring' isn't known