Skip to content

Commit

Permalink
CS161 stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
gigatexal committed Apr 4, 2016
1 parent fc5fbed commit 1510658
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 0 deletions.
Binary file added CS161/sandbox/a.out
Binary file not shown.
26 changes: 26 additions & 0 deletions CS161/sandbox/pointers.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
/*****************
* name: Alex N
* purpose: template
* date: 4/3/2016
* etc
* ****************/

#include <iostream>
#include <string>

int main() {
int *p;
int q;

q = 10;
p = &q;
std::cout << q << std::endl;
std::cout << &p << std::endl;
*p = (*p)++;
std::cout << q << std::endl;
std::cout << &p << std::endl;


return 0;
}

16 changes: 16 additions & 0 deletions CS161/sandbox/templates/template.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
/*****************
* name: Alex N
* purpose: template
* date: 4/3/2016
* etc
* ****************/

#include <iostream>
#include <string>

int main() {
std::cout << "Hello world" << endl;

return 0;
}

0 comments on commit 1510658

Please sign in to comment.