summaryrefslogtreecommitdiff
path: root/6p26.cpp
blob: 8ad89da8e3d68865abf1d792fc7e4845d73581e5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#include <iostream>
#include <iterator>

/*
 *
 * 6.26
 *
 * Honestly not sure what i was meant to do for this exercise so
 * ill just print the arguments we give the program.
 */

int main (int argc, char **argv) {

	if(argc < 1) {
		return -1;
	}

	for(size_t i = 1 ; argv[i] != 0  ; i++) {
		std::cout << argv[i] << std::endl;
	}
	
	return 0;
}