+ 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

9th Feb 2019, 10:55 AM
Usman Amin
Usman Amin - avatar
3 Réponses
+ 1
You do not need to define a width string week[days] = {...};
9th Feb 2019, 11:12 AM
Bartosz Pieszko
Bartosz Pieszko - avatar
+ 1
const int days = 7; const int width = 10; char week[days][width] = {..}; or just string week [] = {...}
9th Feb 2019, 12:27 PM
code learner
code learner - avatar
+ 1
Thanks all. its solved!
9th Feb 2019, 2:28 PM
Usman Amin
Usman Amin - avatar