Forum: C Apr 8th, 2007 |
| Replies: 16 Views: 4,159 wow. so beautiful *wipes tear* ;)
I tried the flow chart portrait but ran out of room in the word document, but thanks.. your's does look better :)
for Java i use NetBeans so that's all... |
Forum: C Apr 8th, 2007 |
| Replies: 16 Views: 4,159 I've attached a pretty little flow chart (badly drawn i know) showing where i want stuff to go.
Isn't it already in a while loop? as while total < 21 it goes to turn function, which sends it to... |
Forum: C Apr 6th, 2007 |
| Replies: 16 Views: 4,159 I've posted my C code below for a card game (yep, i'm still on it). Now the neg() function is called from the turn() function. so using return; sends it back there, but i want it to go back to the... |
Forum: C Mar 25th, 2007 |
| Replies: 13 Views: 2,382 I would go back and edit my previous posts but there's no edit button at the bottom (where i saw it before).
I'm using it through the command prompt and just want it to stop, but yeah i know... |
Forum: C Mar 24th, 2007 |
| Replies: 13 Views: 2,382 when i complied it before, the error came back as total was not an interger data type, or something similar, so i thought that would convert it. :-|
how come i can't go back and edit my previous... |
Forum: C Mar 22nd, 2007 |
| Replies: 13 Views: 2,382 ok, that makes sense. so i need to use the return keyword to change the original value (up date it)
int draw(int total, int other)
{
srand(time(NULL));
int card3=(rand()%13)+1;
printf("next... |
Forum: C Mar 22nd, 2007 |
| Replies: 13 Views: 2,382 I moved those three lines an it worked! except the first two numbers totaled 23 so it went straight out.. guess i should get to work on the switch statements eh? thanks for the help :)
Aia, a... |
Forum: C Mar 22nd, 2007 |
| Replies: 13 Views: 2,382 thanks, i moved the variables, and put everything into one files so it looks like this:
#include <stdio.h>
#include<time.h>
int main()
{
int card1; int card2; int card3; |
Forum: C Mar 21st, 2007 |
| Replies: 13 Views: 2,382 I got this code (written when sleepy, sorry for lack of "expertness")
#include <stdio.h>
#include<time.h>
int card1; int card2; int card3;
int total;
int other;
srand(time(NULL));... |
Forum: C Mar 15th, 2007 |
| Replies: 6 Views: 1,830 ok i got:
int main()
{ char name[50];
char mood;
printf("hey there, .. whats your name?\n");
gets(name);
printf("%s is it? Well how are you today?\n a.Good\n b.Ok\n c.Bad\n", name);... |
Forum: C Mar 14th, 2007 |
| Replies: 6 Views: 1,830 that screwed it up completly. now the first menu doesn't even work.
printf("%s is it? Well how are you today?\n a.Good\n b.Ok\n c.Bad\n", name);
getchar(); while (getchar() != '\n');
... |
Forum: C Mar 14th, 2007 |
| Replies: 6 Views: 1,830 i'm wrting a basic C program which the user "talks" to the program, you know the sort. well my main menu looks like this:
int main()
{ char name[50];
char mood;
printf("hey there, ..... |