This file contains hidden or 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 sample power shell was written purely from the motivation of learning powershell | |
# As there were some goals in mind here is a list of them | |
# 1. Basic variable declarations | |
# 2. Creating functions - this goal will require further digging since I could get the parse args function working | |
# 3. How to get and parse command line arguments - I was able to parse the arguments and use them | |
# 4. How write output to the display | |
# 5. How to set color for output on the display | |
# 6. How to read data from a file | |
# 7. How to write data to a file | |
# 8. How to do condition logic - if, gt, lt and -and and -or |
This file contains hidden or 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
g++ --std=c++11 myprogram.cpp -o myprogram | |
./myprogram |
This file contains hidden or 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 cheat sheet highlights some important c++11 but not all of them | |
//To dig deeper I recommend this article | |
//https://www.codeproject.com/articles/570638/ten-cplusplus11-features-every-cplusplus-developer | |
//Also look into constexpr and noexcept | |
//Here is another link | |
//https://www.w3schools.in/cplusplus11-tutorial/noexcept-keyword/ | |
#include <iostream> | |
#include <vector> | |
#include <array> | |
#include <string> |
This file contains hidden or 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
// ParsingCsvDemo.cpp : This file contains the 'main' function. Program execution begins and ends there. | |
// | |
#include <iostream> | |
#include <string> | |
#include <fstream> | |
#include <sstream> | |
#include <vector> | |
using namespace std; |
This file contains hidden or 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
/////////////////////////////////////////////////////////////// | |
// CsvLine.h | |
#ifndef CSVLINE_H | |
#define CSVLINE_H | |
#include <string> | |
#include <sstream> | |
#include <vector> |
This file contains hidden or 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
//First comment | |
//#include<...> to include libraries | |
//#include "myfile.c" to include your own headers | |
#include <stdio.h> //for printf and such | |
#include <stdlib.h> //for many definitions TODO more examples | |
#include <string.h> //for copying strings | |
#include <ctype.h> //for toupper | |
//preprocesor directives | |
//contitional define by using #ifndef and ending with #endif |
This file contains hidden or 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
//demolinkedlist.cpp | |
#include <iostream> | |
template <class N> | |
class Node{ | |
public: | |
N data; | |
Node<N> *next; | |
}; | |
template <class T> |
OlderNewer