-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcpp.json
More file actions
62 lines (57 loc) · 2.54 KB
/
Copy pathcpp.json
File metadata and controls
62 lines (57 loc) · 2.54 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
{
"boilerplate-cpp": {
"prefix": "Boilerplate for cpp file.",
"body": [
"/*******************************************************************************",
"NAME: Vin Gabriel Fillon 01/28/2022 CompSci-210",
"TITLE: Extra Credit Lab Assignment",
"IDE: Visual Studio Code",
"COMPILER: C/C++ extension -by Microsoft",
"DESCRIPTION:",
" program for ",
" ~uses nodes to calculate the totals and prints out receipts through loops",
"********************************************************************************/",
"#include <iostream> // IO like cin or cout",
"", //new lines for formatting
"using std::cin; ",
"using std::cout; ",
"using std::endl; ",
"using std::ios; //input output stream -also where print functions are. ",
"", //new lines for formatting
"#include <iomanip> //for setprecision ",
"using std::fixed; ",
"using std::setprecision; ",
"", //new lines for formatting
"#include <sstream> //to allow format control when converting numbers to strings ",
"using std::stringstream; ",
"", //new lines for formatting
"#include <fstream> ",
"using std::ifstream; // need this for file input ",
"using std::ofstream; // need this for file output ",
"", //new lines for formatting
"#include <string.h> //for char or C String ",
"", //new lines for formatting
"#include <string> ",
"using std::getline; //get line for input ",
"using std::string; //c++ string ",
"", //new lines for formatting
"#include <algorithm> ",
"using std::swap; //swap ",
"", //new lines for formatting
"#include <cctype> // for toupper and tolower ",
"using std::tolower; ",
"using std::toupper; ",
"", //new lines for formatting
"#include <time.h> //use for time",
"", //new lines for formatting
"//prototypes here ---------------------------------------------------",
"","",//new lines for formatting
"int main() {",
" "," "," "," "," "," ", //new lines -but it has the tab spaces.
"return 0; // returns 0 if programming is working correctly",
"}",
],
//description is a console log. -you will not actually see this
"description": "Boilerplate for cpp added."
}
}