JeromeMberia / Notes_on_C_with_Classes

Notes on C++

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Learning C++

Disclaimer

this notes where made using this video link by Neso Academy and other videos. To learn C++

Installation

Download the installer here link or by searching in your web browser the phrase mingw w64 then click the first link.

During the installation select x86_64 from Architecture if your computer x64 based.

Error

If you see the error The file has been downloaded incorrectly during the installation period.

Go to these site link. Scroll down until you see link named x86_64-posix-sjlj or x86_64-posix-seh under MinGW-W64 GCC-8.1.0.

Then search environment

How to write a git commit link

Note:There is no format am following

To check the version

g++ --version

To compile the file run the code below.This will generate a executable a.exe

g++ test.cpp
g++ test.cpp -o test

On bash

test.exe
a.exe

On Powershell

.\test.exe
.\a.exe 

if you don't set the location of the file .\a.exe and you write a.exe. Expect an error like this:

a.exe: The term 'a.exe' is not recognized as a name of a cmdlet, function, script file, or executable program.
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.

Suggestion [3,General]: The command a.exe was not found, but does exist in the current location. PowerShell does not load commands from the current location by default. If you trust this command, instead type: ".\a.exe". See "get-help about_Command_Precedence" for more details.

#include <iostream>
using namespace std;

int main()
{
 cout <<"Welcome to the C++ world.";
 return 0;
}

Style Guide for C++

link

Documentation

link

Does C++ have a documentation

Check link this.

The Sad reality about the links open up a new tab 😞, the short answer no. Link

About

Notes on C++


Languages

Language:C++ 100.0%