anybody have an idea on how to do this?
here is my code
#include <cstdlib>
#include <iostream>
using namespace std;
main()
{
int n = 0;
int made = 0;
int total = 0;
cout << "Enter number:" << endl;
cin >> n;
if (n==1)
{
made == made++;
total == total++;
cout << " You are " << made << " of " << total << endl;
}
else
{
total++;
cout << " You are " << made << " of " << total << endl;
}
system ("pause");//i know im not supposed to use this but my program wont stay open without it.
cin.get();
}
Thanks again for all the help
Zartek Galicia
This post has been edited by zartek: 12 August 2008 - 09:49 PM

New Topic/Question
Reply




MultiQuote





|