Home / utk / cs102 / fa16 / labd / code_snippets / arrays_lab_session2.cpp
Directory Listing
arrays_lab_session1.cpp
arrays_lab_session2.cpp
example.cpp
labD_pseudo_code.txt
switch_dowhile_example.cpp
switch_example.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//Example of Arrays... or something

#include <iostream>
#include <string>

using namespace std;

int main() {
	string thing[3];
	
	thing[0] = "This is a test";
	thing[1] = "asdf";
	thing[2] = "Tacos";

	for (int i = 0; i < 3; i++)
		cout << thing[i] << endl;
}