|
-
Apr 26th, 2001, 05:36 AM
#1
Thread Starter
Lively Member
chars and couts, easy kinda question.
Hi all,
I was wondering if anybody has any idea why my simple 'V' Graphic drawing program isn't work, it appears to be working but isn't diaplaying the v sybol on the screen. The way it works is you type in a smybol and it makes a v using that symbol/char. Quite simple but i can't get it to display properly, below is the code i made in vis c++...
#include <iostream.h>
//declare variables
char sim;
char vee [10] [20] = { {sim , ' ' , ' ' , ' ' , ' ' , ' ' , ' ' , ' ' , ' ' , ' ' , ' ' , ' ' , ' ' , ' ' , ' ' , ' ' , ' ' , ' ', sim , ' '},
{' ' , sim , ' ' , ' ' , ' ' , ' ' , ' ' , ' ' , ' ' , ' ' , ' ' , ' ' , ' ' , ' ' , ' ' , ' ' , ' ' , sim, ' ' , ' '},
{' ' , ' ' , sim , ' ' , ' ' , ' ' , ' ' , ' ' , ' ' , ' ' , ' ' , ' ' , ' ' , ' ' , ' ' , ' ' , sim , ' ', ' ' , 'V'},
{'V' , ' ' , ' ' , sim , ' ' , ' ' , ' ' , ' ' , ' ' , ' ' , ' ' , ' ' , ' ' , ' ' , ' ' , sim , ' ' , ' ', ' ' , 'V'},
{'V' , ' ' , ' ' , ' ' , sim , ' ' , ' ' , ' ' , ' ' , ' ' , ' ' , ' ' , ' ' , ' ' , sim , ' ' , ' ' , ' ', ' ' , 'V'},
{'V' , ' ' , ' ' , ' ' , ' ' , sim , ' ' , ' ' , ' ' , ' ' , ' ' , ' ' , ' ' , sim , ' ' , ' ' , ' ' , ' ', ' ' , 'V'},
{'V' , ' ' , ' ' , ' ' , ' ' , ' ' , sim , ' ' , ' ' , ' ' , ' ' , ' ' , sim , ' ' , ' ' , ' ' , ' ' , ' ', ' ' , 'V'},
{'V' , ' ' , ' ' , ' ' , ' ' , ' ' , ' ' , sim , ' ' , ' ' , ' ' , sim , ' ' , ' ' , ' ' , ' ' , ' ' , ' ', ' ' , 'V'},
{'V' , ' ' , ' ' , ' ' , ' ' , ' ' , ' ' , ' ' , sim , ' ' , sim , ' ' , ' ' , ' ' , ' ' , ' ' , ' ' , ' ', ' ' , 'V'},
{'V' , ' ' , ' ' , ' ' , ' ' , ' ' , ' ' , ' ' , ' ' , sim , ' ' , ' ' , ' ' , ' ' , ' ' , ' ' , ' ' , ' ', ' ' , 'V'}};
int col;
int row;
int main()
{
cout << "****** Welcome to the V Drawing Program!! ********\n" << endl;
cout << " Program By Ben Smith\n" << endl;
cout << "Please enter any symbol to create the graphic V: ";
cin >> sim;
for( row = 0; row = 10; row++)
{
for( col = 0; col = 20; col++)
{
cout << vee [row] [col];
}
}
return 0;
}
Any response will be greatly appreciated!!
Thanks
Regards,
Smithy.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|