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
r3b0rn (27)

@RBGoat on the website all it says is

#include <iostream>
using namespace std;

int main() {
  cout << "Hello World!";
  return 0;