+ 2
why this doesnt work?
string a[5] = {"aa","bb","cc","dd","ee"}; cout << a[1];
4 odpowiedzi
+ 8
You need the input and output stream (iostream), the standard namespace library and that code needs to be in the main function and don't forget to return 0;
https://code.sololearn.com/cwZ2cpfLRyAK/?ref=app
+ 5
Weird 🤔
Are you running that code on SoloLearn?
which error are you receiving?
+ 1
thanks, i wrote it with all of that bit it doesnt work
0
oh that worked i forgot about #include <string. h>