You are on page 1of 1

Homework 1

Xi Chen

//
// Homework 1
// Created by Xi Chen on 9/2/15.
//
//
# include <cstdlib> // useful functions from c
# include <iostream>
# include <iomanip> // output manipulator for formatting th eprinted output
using namespace std;
int main(int argc, char* argv[]){
// flag = 1;
while(1) {
if (argc == 3) {
cout << "Hello World from " << argv[1] << " " << argv[2] << "."
<< endl;
break;
};
}
}
Xis-MacBook-Pro:705 Bill$ ./HW1 Bill CX
Hello World from Bill CX.

You might also like