Ask coding questions

← Back to all posts
Hi. Whats a good free site to use to learn C++.
h
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++

Comments
hotnewtop
Streakwind (0)

https://www.w3schools.com/cpp

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