Search:

Type: Posts; User: jarvis

Page 1 of 2 1 2

Search: Search took 0.00 seconds.

  1. Replies
    13
    Views
    1,660

    what's that suppose to mean?

    what's that suppose to mean?
  2. Replies
    13
    Views
    1,660

    i originally declared it as char cNum; ...

    i originally declared it as



    char cNum;

    //but then i changed it to:
    char *cNum;

    //then there are no more syntax errors
  3. Replies
    13
    Views
    1,660

    i really think i'm getting close in solving this...

    i really think i'm getting close in solving this now..
    i really don't know what u meant by breakpoint but anyway, here is the code"


    fgets(cNum, sizeof(cNum), pFile); //line 1005
    ...
  4. Replies
    13
    Views
    1,660

    void loadDictionary(structWord aWords[], int...

    void loadDictionary(structWord aWords[], int nWordNumber, FILE *pFile)
    {
    int i, nChoice, j, k;
    char *p, temp[BUFSIZ];
    string50 strTemp;

    for(i = 0; i < nWordNumber;...
  5. Replies
    13
    Views
    1,660

    thanx a lot! i'll try to understand the code you...

    thanx a lot! i'll try to understand the code you gave!thanx again!
  6. Replies
    13
    Views
    1,660

    From File To Memory

    what i'm trying to basically do is copy a txt file to the memory but it's not working and i aint sure why..pls help me. thanx a lot.

    here is my struct:


    typedef char string7[8];
    typedef char...
  7. Replies
    7
    Views
    2,597

    by the way, thanks for all the peepz helping me...

    by the way, thanks for all the peepz helping me out here..

    here's the segment of the program i'm trying to do..




    scanf ("%c", &cAction);
    if (cAction=='H' || cAction=='h') //if hte player...
  8. Replies
    7
    Views
    2,597

    i'm sorry for the first one, forgot the & in...

    i'm sorry for the first one, forgot the & in there, yes i tried to compile it but the program just crash after i entered the character..

    i already tried the code above, that was my original idea...
  9. Replies
    7
    Views
    2,597

    Question With Nested If's

    scanf ("%c", i);

    if (i=='a')
    {
    printf ("the user enterered a thus it entered if");
    scanf ("%c", i);
    if (i=='a')
    {
    printf ("the user still...
  10. Replies
    9
    Views
    1,261

    i did test the code and when i enter a letter or...

    i did test the code and when i enter a letter or a string or a float, it becomes an endless loop
  11. Replies
    9
    Views
    1,261

    Questions With Comparison

    pls help me, i am making a do while loop which wont accept invalid inputs..

    these invalid inputs include outside the range of 1-100, negative numbers, and zero, also i would like my loop not to...
  12. Replies
    28
    Views
    2,903

    i understood the code, somewhow, but some parts...

    i understood the code, somewhow, but some parts of it were never taught yet, or i guess i wouldnt be taught to us, we have to research on our own, the arrays and buf parts things like that, i dont...
  13. Replies
    28
    Views
    2,903

    thank you for all the help. i just have to think...

    thank you for all the help. i just have to think of other ways do print that damn dealer card. i cant continue looking for bugs unless i knew how to solve this bug!

    thanks again.

    by the way,...
  14. Replies
    28
    Views
    2,903

    i didnt assign any expression to it cuz i just...

    i didnt assign any expression to it cuz i just need a variable to store whatever the switch would return.

    ur right, the example in my book put an expression in the return varibale, but that's...
  15. Replies
    28
    Views
    2,903

    i'm going to try learn arrays when all my bugs in...

    i'm going to try learn arrays when all my bugs in my program are gone lol! and right now there's a LOT! all are logical errors really, whew.



    /*BLACK JACK WITH FUNCTIONS*/

    #include <stdio.h>...
  16. Replies
    28
    Views
    2,903

    ok so i'm gonna try things out, imma try to bring...

    ok so i'm gonna try things out, imma try to bring nSuit=rand()%4+1; out of the function and see what happens, thanx for the help!
  17. Replies
    28
    Views
    2,903

    wait so how am i gonna print its value then? then...

    wait so how am i gonna print its value then? then use the function again to deal a card? i really hope i'm not bugging you
  18. Replies
    28
    Views
    2,903

    we havent studied functions yet so i really dont...

    we havent studied functions yet so i really dont know what i'm doing, i just followed the syntax on our book..wait...so u mean ..ah ok now i'm geting it, now what am i suppose to put it inside the...
  19. Replies
    28
    Views
    2,903

    nsuit is an integer, the formula that i did was...

    nsuit is an integer, the formula that i did was for suit function to generate a number from one to 4, but i dont need the number, what i need is the suit itself so i used switch. what i want to do is...
  20. Replies
    28
    Views
    2,903

    i didnt quite get what u mean...

    i didnt quite get what u mean...
  21. Replies
    28
    Views
    2,903

    i'm sorry. /*Function to Deal a card*/ ...

    i'm sorry.



    /*Function to Deal a card*/

    char DealCard (nDCard)
    { char cCard;

    nDCard=rand()%13+1;
  22. Replies
    28
    Views
    2,903

    someone?? pls pls pls pls

    someone?? pls pls pls pls
  23. Replies
    28
    Views
    2,903

    okay so here is the program flow..(this is a...

    okay so here is the program flow..(this is a blackjack game)

    1.deals one card to the dealer then prints it
    2. prints concealed as the second card of the dealer should be concealed.
    3. the next...
  24. Replies
    28
    Views
    2,903

    meaning.. nDCard1=DealCard(); printf...

    meaning..



    nDCard1=DealCard();
    printf ("%c", nDCard1);


    is a correct syntax for printing the first generated value?
  25. Replies
    28
    Views
    2,903

    Question With Functions

    hi! i have a question with functions!

    i created a function which deals a card, basically what i wanted to do is use the first return value again.

    i dunno how!

    example:


    DealCard();
Results 1 to 25 of 27
Page 1 of 2 1 2