Test file: say Lecture 1
It is MUCH easier to edit the table of contents in the SUMMARY.md file
Test for writing pseudo-code, like Insertion-Sort in 203
for j = 2 to A.length
key = A[j]
// Insert A[j] into the sorted sequence A[1...j-1]
i = j - 1
while i > 0 and A[i] > key
A[i + 1] = A[i]
i = i - 1
A[i + 1] = key
Latex works too
$$\sum_{i = 0}^{k} x = y$$
Test for C++ main code
#include <iostream>
using namespace std;
int latex() {
int one = 1;
int sum = one;
cout << sum << endl;
}
int main() {
cout << "Hellow, my nayem is Vladimir." << endl; //also do comments
latex();
return 0;
}
// Some code from eecs 183 copied from OneNote
#include <iostream>
using namespace std;
void openFile(ifstream &ins) {
string fileName;
cout << "Enter filename: " ;
cin >> fileName;
ins.open(fileName);
while (!ins) { // check to see if it opened
ins.clear();
cout << "Error in opening file";
cout<< "Enter filename: " ;
cin >> fileName;
ins.open(filename); // open the file a 2nd time, standard procedure
}
}
If there is trouble exiting a code block before an image, open up preview mode and type something in between.
Or just do command + enter
You can also import images