- 2
Hello World
What file do I create hello world under? It’s giving me errors about iostream and cout?
34 Respuestas
+ 2
Post your code here
+ 3
its alright, I got the color coding to work, but still showing underlines.
+ 2
Show ur code
Post it here
+ 2
#include <iostream>
using namespace;
int main()
{
cout << hello world!”;
return 0;
}
+ 2
its giving me errors when I do it on desktop.
+ 2
using namespace std;
+ 2
#include <iostream>
using namespace std;
int main() {
cout <<"hello world";
return 0;
}
This is the correct code
+ 2
oh oops I actually had that, its still saying error. Sorrt must of typo’d in the chat.
+ 2
it underlines include and cout in red
+ 2
code provided by Atul (and following Aysha answer) correctly run:
https://code.sololearn.com/cmoPF3NWRAt1/?ref=app
Are you sure to write your code at the right place? (code playground could be configured for many languages, but doesn't try to detect them for you)...
+ 2
I dont know, I think its not in the right file type? what file type to use for desktop for this?
+ 2
are you trying to run your code on desktop, in sololearn web code playground, and/or in app' code playground?
+ 2
desktop, Im trying to follow on desktop as well.
+ 2
code works fine on SOLO
+ 2
are you using windows, apple or linux?
it sounds like you're lacking developers sources ^^
+ 2
Windows, Im looking at a youtube video, gonna try it again.
+ 2
Im missing the actual C++ file directory? Not showing C++ file on New File.
+ 2
If you are on Windows, better to use an IDE.
+ 2
seems that my last reply was lost ^^
cannot help further with window :(
+ 2
Jennifer Use a better ide like codeblocks