How can I display text in c++?
RBGoat (2)

I am new at c++, and I tried using the code

console.WriteLine("Hello World");

but it did not work. Instead, it produced an error message saying something about the dot not working? It's in line 3.

My goal was simply for it to say "Hello World."

EDIT: Answered/resolved.

You are viewing a single comment. View All
Answered by r3b0rn (27) [earned 5 cycles]
View Answer
xfinnbar (149)

You seem to have been following a C# tutorial instead! Try using a C++ one.