This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
This a header file that includes every standard library. | |
You can use it to save time. | |
NOTE: This header file may not be recognized by compilers | |
other than gcc. | |
*/ | |
#include <bits/stdc++.h> | |
/* | |
//Use this if the above header file doesn't work. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* ======================================= | |
* C++ cheat sheet | |
* ======================================= | |
* 01- string | |
* 02- vector | |
* 03- pair | |
* 04- set | |
* 05- map | |
* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ---------- C++ Tutorial Example 1 ---------- | |
// Source {@link http://www.newthinktank.com/2018/03/c-tutorial-26/} | |
/* | |
* Multi-line Comment | |
*/ | |
// These are called preprocessor directives | |
// They load the files which contain premade functions | |
// for your use |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <fstream> | |
#include <iostream> | |
#include <string> | |
#include <vector> | |
using namespace std; | |
void learnTypesAndSize() { | |
/** TYPES */ | |
cout << "\n:::: TYPES ::::" << endl; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//------------------------------------------------------------------------------ | |
// | |
// Just a simple cheat sheet(program?) to help beginning programmers | |
// understand the following concepts | |
// - Passing an address to a pointer | |
// - Passing by reference | |
// - Passing by value | |
// - Scoping | |
// | |
// Joshua Sanders |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Reverse Polish notation demo | |
// Basic calulator for RPN expression only + / * - is supported. | |
// Allows ints and floats. | |
// By DreamVB ([email protected]) 20:08 26/09/2016 | |
#include <iostream> | |
// | |
using namespace std; | |
using std::cout; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <stdlib.h> | |
#include <ctype.h> | |
typedef float st_type; | |
typedef struct { | |
st_type value; | |
struct node_t *next; | |
} node_t; |