Hello everyone. The data type "string" doesn't get coloured in the C++ program and this affects my code. Can someone help me❓️ | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Hello everyone. The data type "string" doesn't get coloured in the C++ program and this affects my code. Can someone help me❓️

7th Aug 2023, 11:34 PM
RJ🎮
RJ🎮 - avatar
2 Answers
+ 3
In the Sololearn C++ editor, string does not get highlighted for me either, but it works. There must be some other problem. You might hunt for an invisible extra character. I don't know whether you pasted the code from outside of Sololearn, but sometimes when you do, mysterious nonprintable characters get embedded in the spaces. In that case you have to delete and retype the spaces. This is only speculation. If you wish for further help, then please post a link to your code so that I and others may help troubleshoot.
8th Aug 2023, 3:41 AM
Brian
Brian - avatar
+ 2
Could you share your code so that we find out what the issue is and we try to solve it? If you don’t mind
8th Aug 2023, 7:33 AM
Izaiah Kay
Izaiah Kay - avatar