homework 1

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.

Upload: xi-chen

Post on 12-Dec-2015

215 views

Category:

Documents


0 download

DESCRIPTION

Homework

TRANSCRIPT

Page 1: Homework 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 CXHello World from Bill CX.