- 6

Please help me remove this 1 error from my c program

i have posted desktop.cpp

5th Nov 2017, 4:51 AM
Krutika Sawant
Krutika Sawant - avatar
3 Antworten
+ 11
Oh geez. Did you copy-paste that code onto the Code Playground from somewhere else? It really didn't like some of the spacing and indents. I don't know a lot about C, so I can't help you as much as I'd like (not sure what's going on with the type casting), but I made a handful of small changes to your code: https://code.sololearn.com/cEkIUp96kZII/?ref=app First, the SoloLearn compiler does not support command line arguments, nor live input. Their servers also won't save any files you create. void main() doesn't work with their C++ compiler. main() was missing a brace, and update() had an extra brace. Also, some items from the struct are misnamed in a few places. There were a few other small typos I fixed, too. EDIT: I think the SoloLearn compiler uses edited versions of the import files, and some of the functions being used aren't working correctly.
5th Nov 2017, 6:56 AM
Tamra
Tamra - avatar
+ 6
1 error from WHERE? I think there is an error in YOUR question
5th Nov 2017, 5:24 AM
👑 Prometheus 🇸🇬
👑 Prometheus 🇸🇬 - avatar
+ 5
please specify error and it is a C++ program 😅
5th Nov 2017, 5:08 AM
Shubham Menkudle
Shubham Menkudle - avatar