mirror of
https://github.com/allankoechke/IEEE_KU-beginning-cpp.git
synced 2026-11-30 17:04:06 +00:00
main
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
- Code::Blocks
- CodeLite
- Qt Creator
- And others ...
Windows Only
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
- Issue Tracker: https://github.com/lalan-ke/IEEE_KU-beginning-cpp/issues
- Source Code: https://github.com/lalan-ke/IEEE_KU-beginning-cpp
License
The project is licensed under the MIT license.
Languages
C++
100%