[Dev-C++] easy start program for beginners that works.....
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Nexus <nne...@ya...> - 2001-08-13 20:19:22
|
here is a very easy starter app
that will run from windows or the command line...
run it from both to see the differce.
Nexus
#include <stdio.h>
#include <iostream.h>
#include <stdlib.h> //needed for system("cls"); to work
int main(int argc, char *argv[])
{
int fleas;
system("cls"); //clears the screen of junk you typed before
cout << "\t\tHow many fleas does your Dog have? ";
cin >> fleas;
cout << "\t\tWell thats " << fleas << " to many\n";
cin.get(); //keeps window open when run rom inside windows
cin.get();
return 0;
}
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.265 / Virus Database: 137 - Release Date: 7/18/01
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com
|