#include <cstdio>
#include <cstdlib>
#include <ctime>
#include <iostream>
using namespace std;
int main ( int nNumberofArgs, char* pszArgs[] )
{
srand ( ( unsigned ) time ( 0 ) );
const int a = rand() % 9 ;
const int b = rand() % 9 ;
const int c = rand() % 9 ;
const int d = rand() % 9 ;
const int e = rand() % 9 ;
const int f = rand() % 9 ;
const int g = rand() % 9 ;
const int h = rand() % 9 ;
const int i = rand() % 9 ;
const int j = rand() % 9 ;
const int k = rand() % 9 ;
const int l = rand() % 9 ;
const int m = rand() % 9 ;
const int n = rand() % 9 ;
const int o = rand() % 9 ;
const int p = rand() % 9 ;
const int q = rand() % 9 ;
const int r = rand() % 9 ;
{
char transactionType;
cout << "Press N to cancel, and Y to continue:\n " << endl;
cin >> transactionType;
if ( transactionType == 'x' ||
transactionType == 'X' )
{
break;
}
if ( transactionType == 'y' ||
transactionType == 'y' )
{
continue ;
}
}
{
cout << "abcdefghijklmnopqr";
}
}
Most of your program doesn't make any sense. Should I elaborate or do you wanna look at a newbie tutorial?
Last edited by iamthwee; Jun 22nd, 2008 at 4:04 pm.
Reputation Points: 1536
Solved Threads: 431
Posting Expert
Offline 5,865 posts
since Aug 2005