+ 3
How to add string in array?
My code: #include <iostream> #imclude <string> int main() { string classes[2][2]= {{"name","name"},{"name2","name3"}; cout <<classes[1][1] << endl; return 0; }
13 Respostas
+ 4
So sorry for giving trouble.And thanks alot.
+ 4
🙂🙂🤘
+ 2
But it is showing error that there is no global '[]' in string
+ 2
I have written #include <string> only not #imclude <string>
+ 2
No it is not
+ 2
Sorry but when I edited it then also it is showing error.
+ 2
Run it and see it then also shows error.
https://code.sololearn.com/cXb0I1lDKTqK/?ref=app