Skip to content

Instantly share code, notes, and snippets.

View superfunc's full-sized avatar
🎟️
play dodonpachi

superfunc

🎟️
play dodonpachi
View GitHub Profile
@superfunc
superfunc / examreview.md
Last active August 29, 2015 14:07
EECS 168 Exam Review

EECS 168 Exam I Review

Variables

A variable declaration has three basic parts.

TYPE NAME = VALUE;
template <typename T>
auto makeSomething(T& t) -> decltype(t.makeSomething()) {
auto thing = t.makeSomething();
// edit thing's properties
return thing;
}
for(vector<int>::iterator itr = people.begin(); itr != people.end(); itr++) {
// do something
}