All pastes #265323 Raw Edit

Stuff

public text v1 · immutable
·published 2006-12-03 05:24 UTC
rendered paste body
//
//  template - provides a template to be used as the starting
//			   point
//
//  the following includes files define the majority of
// fuctions that any given program will need
#include <cstdio>
#include <cstdlib>
#include <iostream>
#include <windows.h>
using namespace std;

int main(int nNumberofArgs, char* pszArgs[])
{
	// your C++ code starts here

	cout << "Hello. . .\n";
	Sleep(1000);

	int age;
	cout << "Please, enter your age in this prompt:";
    cin >> age;

	
    cout << "Is your age:";
	cout << age << endl;
	
	int yes;
	cout << "Is that your age?:";
	cin >> yes;

	int no;
	cout << "Is it?:";
	cin >> no;
	
	if ( yes > no)
	{
		cout << "It is? Good!"
			 << endl;
	}
	else
	{
		cout << "Oh.. that's too bad."
			 << endl;
	}

	// wait til user is ready before terminating program
	// to allow the user to see program results
	system("PAUSE");
		return 0;
}