2021-05-07 14:32:40 +03:00
2021-04-30 14:34:13 +03:00
2021-05-05 15:02:46 +03:00
2021-05-07 14:32:40 +03:00
2021-04-29 21:07:59 +03:00
2021-04-29 21:07:59 +03:00
2021-04-29 22:49:58 +03:00

IEEE_KU-beginning-cpp

Why not start learn C++? This series will take you from a C++ newbie to a C++ pro.

Using these tutorials

  • Each workshop data is stored in the workshop name i.e. Workshop1-Basics
  • The 'data' folder has all resources shared during the sessions, like clusplus books to read more.

IDEs to use to code

Online IDE

They are many, i have only used the Online GDB with the language set to C++.

Cross-platfrom

  1. Code::Blocks
  2. CodeLite
  3. Qt Creator
  4. And others ...

Windows Only

  1. Microsoft Visual Studio
  2. DevC++

CplusPlus Syntax

// This is a single line comment

/*
This is a multi-line comment,
on a new line,
and another!
It's just endlesss
*/

#include <iostream>

using namespace std;

int main()
{
    // Output to the console
    cout << "Hello World" << endl;
    
    // Define a variable
    int x; // Declaring a variable
    char name = 'A'; // Declaring & instantiating a variable
    
    // Integers
    int y = 5;
    
    // floats
    float distance = 4.55; // kilometers
    
    // Doubles
    double pi = 3.1428571429;
    
    // Character
    char grade = 'A';
    char physicsGrade = 'A'; 
    
    // Keywords
    
    /*
    Do NOT use keywords as variables
    
    --> Data Types
    a) int - Integer data type
    b) float - floating point data type
    c) double 
    d) char
    e) string
    f) w_char - wide character
    
    --> Conditionals
    a) if
    b) else
    c) switch
    
    --> Looping some block of code
    a) while
    b) for
    c) do
    
    --> Others
    a) return
    b) continue
    c) break
    d) goto
    
    This list is long, check the full list online
    */
    
    // return an exit status of 0, aka successful
    return 0;
}

Running the examples

Use any IDE/compiler, create a project and copy the code to the main file and run.

Contributing

License

The project is licensed under the MIT license.

Description
Why not start learn C++? This series will take you from a C++ newbie to a C++ pro.
Readme MIT 1.5 MiB
Languages
C++ 100%