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
xi p(xi) xi yi p(xi, yi) | |
-------------- --------------------- | |
a 0.06 t h 0.037 | |
e 0.09 t s 0.000 | |
j 0.00 t r 0.012 | |
q 0.01 | |
t 0.07 | |
z 0.00 |
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 <iostream> | |
#include <vector> | |
int main() { | |
// In the standard library, a std::vector is an array with automatic size. | |
// Let's make a vector of ints and loop over the contents. | |
// The syntax for std::vector<> is discussed further in the lecture on template types. | |
std::vector<int> int_list; | |
int_list.push_back(1); |