From 009b88b68380dc7cfd73bef77ddc86afe363d5cd Mon Sep 17 00:00:00 2001 From: RossTheRoss Date: Wed, 27 Mar 2019 12:54:31 -0500 Subject: More lab --- ee1301/wk5/lab4/pOc.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 ee1301/wk5/lab4/pOc.cpp (limited to 'ee1301/wk5/lab4/pOc.cpp') diff --git a/ee1301/wk5/lab4/pOc.cpp b/ee1301/wk5/lab4/pOc.cpp new file mode 100644 index 0000000..93dbb06 --- /dev/null +++ b/ee1301/wk5/lab4/pOc.cpp @@ -0,0 +1,12 @@ +#include +using namespace std; + +int main(int argc, char* argv[]) { + + int i; + cout << "You typed the following on the command line:" << endl; + for (i = 0; i < argc ; i++) { + cout << argv[i] << ", "; + } + cout << endl; +} -- cgit v1.2.3