Basic C++ on Windows in 2021

First download MinGw https://sourceforge.net/projects/mingw/

Install C++ Library from Package Manager

Set Environment Path variable to include C:\MinGw\bin (System -> Search Environment Variables)

Example how to compile: gcc test.cpp -lstdc++ -o test.exe

Run Command Prompt (Win key + S, type Command Prompt)

C:\Users\jason>mkdir testCpp

C:\Users\jason>cd testCpp

C:\Users\jason\testCpp>dir
 Volume in drive C is Windows
 Volume Serial Number is 0419-77E3

 Directory of C:\Users\jason\testCpp

12/08/2021  08:21 PM    <DIR>          .
12/08/2021  08:21 PM    <DIR>          ..
               0 File(s)              0 bytes
               2 Dir(s)  78,846,308,352 bytes free

C:\Users\jason\testCpp>

Now open Notepad or other text editor like Atom or Notepad++

I am using Win+S then type Notepad for the sake of this tutorial, click the Notepad Icon to launch

Type the following code into Notepad

#include <iostream>

using namespace std;

int main() {
    cout << "Please waste less time and make teachers less irate" << endl;
    cout << "     ||||     " << endl;
    cout << "     ||||     " << endl;
    cout << "||||||||||||||" << endl;
    cout << "     ||||     " << endl;
    cout << "     ||||     " << endl;
    cout << "     ||||     " << endl;
    cout << "     ||||     " << endl;
}

File -> Save As

Change directory to directory that you created with mkdir command, in my case “C:\Users\jason\testCpp”

Change Save As Type from Txt Document to All Files

Then click save

Return to Command Prompt, which you might already have open, if not Win Key + S, Command

Use the change directory command (cd) and change to the directory

Microsoft Windows [Version 10.0.22000.318]
(c) Microsoft Corporation. All rights reserved.

C:\Users\jason>cd testCpp

C:\Users\jason\testCpp>dir
Volume in drive C is Windows
Volume Serial Number is 0419-77E3

Directory of C:\Users\jason\testCpp
12/08/2021 08:27 PM.
12/08/2021 08:21 PM..

12/08/2021 08:27 PM 411 test.cpp
1 File(s) 411 bytes

People that waste teachers time kind of bad at life, if you don’t like something about yourself, change it

2 Dir(s) 78,803,599,360 bytes free

Terrible user experience, WordPress’s fault?

C:\Users\jason\testCpp>

2021 System Severely wasting my time on this post, probably took 10 minutes longer than it should have

Copy Paste on Command Prompt is awful aggressive, might lead some to abuse women

C:\Users\jason\testCpp>gcc test.cpp -lstdc++ -o test.exe

C:\Users\jason\testCpp>

Now the file is built

How it pastes on WordPress without Code Block

C:\Users\jason\testCpp>test.exe
Please waste less time and make teachers less irate
||||
||||
||||||||||||||
||||
||||
||||
||||

C:\Users\jason\testCpp>

How it pastes on WordPress with Code Block, text color feature doesn’t seem to work on code block in WordPress, what if I wanted to make this Blackpink, or Black and Orange? Only get Black and Blue? Fitting experience for a broken Blue Marble?

C:\Users\jason\testCpp>test.exe
Please waste less time and make teachers less irate
     ||||
     ||||
||||||||||||||
     ||||
     ||||
     ||||
     ||||

C:\Users\jason\testCpp>

Code Block is for showing code, not for blocking code, maybe the system made a mistake

Was listening to this on loop while providing tutorial

Typed on an MSI 65 Thin 10UE under $0 System Duress and Tort (Gross Gross Gross Gross Negligence)

Maybe CLion can appreciate why this kind of annoys me, kind of wanted to use OpenGL, if your not going to be better than Notepad, don’t write an IDE

Just wanted to send him for a little walk?

Kind of a turn off to lose graphics like on this video above by default in C++

2021 downgrade?

I like these systems, they send me to jail, rob my funds for helping with them, great inspiration for women in engineering?

Force every engineer to get their law degree first?

I think of some of these contracts like Time Deoptimization Deterium

Basically like drugs that slowly eat away at your time

Deteroids or Detorum for Engineers

Like a bad customer service experience to make a bridge?

1983 to 2021 Respect and love for engineering kind of garbage

Just born in the wrong time

in 2100 Their King

Not sure I could blame all these compiler problems on MSI

Jobs or Gates who is more trust worthy?

From where I am standing they are both kind of screwing teachers over

Cells for Gates, Michael Dell, and Head of Nasa too?

Appreciate it

Cat shit like an entire ranch of horses

Was looking for more of this user experience

Less cat shit with more OpenGL, hope this makes sense

Published by techinfodebug

Flex and Java Developer, Christian, Art, Music, Video, and Vlogging

Leave a comment