Ask coding questions

← Back to all posts
Hi. Whats a good free site to use to learn C++.
Ayeshakaysss (0)

I am a first-year student at uni and will be learning it in my second year. I don't have much of a background on c++

Streakwind (0)

By the way, to get started here's some simple c++ code ('//' comments out something, the text after it doesn't do anything)

#include <iostream> //Including this allows the basics

using namespace std; //You need to for cout instead of std::cout. Means standard

int main () { //The main area
   cout << "Hello, World" << endl; //prints "Hello, World" (without the quotes) cout -> console out

     return 0; //ends the code
}//ends the function