// CONSOLE.cpp : main implementation file
//
// Copyright (c) XYZ Corporation, 2007. All Rights Reserved.
//
//


#include	<stdio.h>
#include    <iostream.h>

#ifndef _CONSOLE
#include <winio.h>
#endif
#ifdef  _WINIO
#include 	<string.h> // For strcpy
#endif

void main(int argc, char *argv[])

{
    /* for Win16 Console Applications, _WINIO is defined */
#ifdef _WINIO
    /* By default, Winio sets the title bar to the exe name, use winio_settitle to change it */
    winio_settitle(__hMainWnd,"CONSOLE");
    /* Your about box by default shows the exe name, you can change it by resetting __szModule
       and passing the reset value to winio_about */
    strcpy (__szModule,"CONSOLE");
    winio_about(__szModule);
#endif
    char a;
    int b=34567890;
    int c;
	printf("CONSOLE application.\n");
	printf("Write your code to do i/o here.\n");
	cout<<"test..."<<endl;
	cin>>a;
	cout<<a<<endl;
	cin>>c;
	cout<<b<<endl;
	cout<<c<<endl;
	system("pause");

	/* for Win32 Console Applications, _CONSOLE is defined */
#ifdef _CONSOLE
   {
    /* Print a prompt prior to exiting so that you can view output */
    int c;
    printf ("Press Return To Exit: ");
    c = getc(stdin);
   }
#endif
}
