I have a program which generates random cards from deck but when I run it, it says the same every time!
How can this be?
Type: Posts; User: jonnyfb
I have a program which generates random cards from deck but when I run it, it says the same every time!
How can this be?
Ok I have used that to help me change the 1st line to blue background but I cant figure out how to change the rest of the background back to black.
Hello. How can i change the color of text or the background?
I cant seem to find the answer anywhere on the internet but I know it can be done.
Jon
Hey thanks, I'll remember that!
Ok I changed it to [4][13] but I'm still getting the same error. I only had it as [3][12] because I thought arrays started at 0.
What do you mean by:
and how do I fix that?
Jon
Hey, I have made an array for a pack of cards:
char card[3][12] ={{"A",2,3,4,5,6,7,8,9,"T","J","Q","K"},
{"A",2,3,4,5,6,7,8,9,"T","J","Q","K"},
{"A",2,3,4,5,6,7,8,9,"T","J","Q","K"},...
Ah ok i think it was because I wasnt using this:
using std::string;
using std::cout;
I'll try it and see,
Thanks,
Hi, I have recently started using Visual C++ 6.0 but I have a problem. I want to define a string so I added string.h to the headers directory and included it. The problem is that when I compile it,...
Ok thanks I am going to use visual C++ 6 but also, in my original post I asked:
"I would like to know how to make my program wait before executing the next line so that I can give the effect of...
Ok, I have something called Microsoft Visual C++ 6.0 on a CD. Is that what I need?
I just checked in the header directory but it doesnt have conio. Also it didnt give me a warning, only the error I told you about before. I think I am definitely going to get a new compiler!
What...
Yes but isnt that a C++ compiler?
Hello, I want introduce color to my programs and I have tried using this:
textcolor(YELLOW);
But my compiler thinks YELLOW is a variable and says: line 23: variable 'YELLOW' not found. Is it...
Thankyou
What? Im just asking if there is a way to copy a clipboard value to a variable
Eg.
char i[1024] = getclipboard();
Something like that. Surely you can be of more assistance than that.
I dont...
Is there a way to access the clipboard using c?
Thankyou,
Jon