this notes where made using this video link by Neso Academy and other videos. To learn C++
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
.
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
g++ --version
g++ test.cpp
g++ test.cpp -o test
test.exe
a.exe
.\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;
}
Check link this.
The Sad reality about the links open up a new tab 😞, the short answer no. Link