I’m new to c/c++ and I’ve been working with python for a long time, I didn’t take any tutorials, but I got this error when I tried to declare an array of strings.
code:
QString months[12]={'Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec'};
error:
invalid conversion from ‘int’ to ‘const char*’
What does that error mean?
Use double quotes for strings (
").'is for character literals.