+ 2
Array of strings in cpp!
please debug this code or suggest other one to print the strings on screen! https://code.sololearn.com/cxjRwdfWQrPS/?ref=app
3 odpowiedzi
+ 1
You do not need to define a width
string week[days] = {...};
+ 1
const int days = 7;
const int width = 10;
char week[days][width] = {..};
or just
string week [] = {...}
+ 1
Thanks all. its solved!