Search:

Type: Posts; User: Bassglider

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    13
    Views
    3,143

    ok here is the program again, now producing no...

    ok here is the program again, now producing no errors but getting weird results (instead of card numbers I am getting other results when running it,)
    It's a blackjack game :)




    /* Filename:...
  2. Replies
    13
    Views
    3,143

    Gotcha, that fixed it :) Thanks Matsp now I...

    Gotcha, that fixed it :) Thanks Matsp now I understand
  3. Replies
    14
    Views
    5,889

    oh thanks, that fixed the warning :)

    oh thanks, that fixed the warning :)
  4. Replies
    13
    Views
    3,143

    Ok, yes that must be a typo in the book. The...

    Ok, yes that must be a typo in the book. The second one is fixed. that logic I understand.

    What I dont understand is what the first is attempting to do in this function:



    // This function...
  5. Replies
    13
    Views
    3,143

    I am still wondering about this error: ...

    I am still wondering about this error:

    (*numCards)-; // Says ERROR: syntax error before ';' token

    I also get the same error for int i = -;



    /* Clears everything on screen */
    void...
  6. Replies
    14
    Views
    5,889

    Ok, how does this look now? I know there are...

    Ok, how does this look now? I know there are different opinions of ways of indenting, but is this easy to read and done correctly?



    main()
    {
    int numCards; /* Equals 52 at...
  7. Replies
    14
    Views
    5,889

    Yeah, I know, I'm learning, I copied that...

    Yeah, I know, I'm learning, I copied that straight out of a book so I can type it out and learn what everything is doing.

    Do you have any suggested source I can learn flow and tabbing from to make...
  8. Replies
    13
    Views
    3,143

    Thank you pankaj

    Thank you pankaj
  9. Replies
    13
    Views
    3,143

    here is the program :) /* Filename:...

    here is the program :)


    /* Filename: BlakJack.c */

    #include <stdio.h>
    #include <time.h>
    #include <ctype.h>
    #include <stdlib.h>
  10. Replies
    13
    Views
    3,143

    Naw, that doesn't work either

    Naw, that doesn't work either
  11. Replies
    14
    Views
    5,889

    Are you saying that you replace main() with int...

    Are you saying that you replace main() with int main(void) { ?

    Even with that change the function I am working on does not get fixed, the main function is here and returns no errors or warnings...
  12. Replies
    14
    Views
    5,889

    Ohhh, ok gotcha, thanks for that clarification,...

    Ohhh, ok gotcha, thanks for that clarification, that compiler won't think its a nested function then correct?
  13. Replies
    12
    Views
    80,047

    Lol, no it wasn't a joke :) i wanted to know...

    Lol, no it wasn't a joke :)

    i wanted to know if there was a difference in using the | and &#166; in the purpose of writing the logical OR
  14. Replies
    14
    Views
    5,889

    I am closing my braces, does anything look off...

    I am closing my braces, does anything look off here?



    void playerGetsCard(int *numCards, int cards[52], int playerPoints[2])
    {
    int newCard;
    newCard = dealCard(numCards, cards);
    printf("You...
  15. Replies
    13
    Views
    3,143

    Syntax Error before ; token

    While doing an exercise out of this book I run into the syntax error after (*numCards)-;

    which is exactly what the book says, I know that the book can be wrong, what would be suggested to fix this...
  16. Replies
    14
    Views
    5,889

    XCode Nested Functions not supported

    I am doing an exercise out of a book which apparently has nested functions.

    I read on http://lists.apple.com/archives/xcode-users/2005/Nov/msg00271.html

    that xcode does not support them. The...
  17. Replies
    12
    Views
    80,047

    Cool thanks || it is

    Cool thanks || it is
  18. Replies
    12
    Views
    80,047

    I didn't know vertical/pipe/broken bar ( |, ¦ ) ...

    I didn't know vertical/pipe/broken bar ( |, &#166; ) those two equal the same thing?


    On the wiki page it says that Broken bar (&#166;) is a separate character from |

    Please clarify
  19. Replies
    12
    Views
    80,047

    The OR || on keyboard, where is it?

    I cannot find where the OR symbol is on the keyboard it looks like a || cut horizontally, but not a :
  20. Replies
    4
    Views
    3,218

    You are referring to prototypes correct? I am...

    You are referring to prototypes correct?

    I am also just about to order Pratas book C Primer Plus as a book to accompany K&R. I believe K&R would be a good way to expand upon the details of...
  21. Replies
    4
    Views
    3,218

    thanks

    thanks :)

    Do these new times == ANSI C?

    If so then why does K&R refer to their updated version as ANSI C?

    Thank you for the clarification

    Bassglider
  22. Replies
    4
    Views
    3,218

    Xcode Apple Compile

    When I compile a simple program with GCC I get no errors and it runs fine

    When I compole the same simple program with Xcode (Command Line C) I get these errors:

    Warning: return type defaults to...
  23. Replies
    153
    Views
    679,474

    Sticky: Accelerated C__

    I have read a beginners book in C so I think I have the foundation concepts in place. As for a first book for C++ would this be a good recommendation? I am fairly quick and intelligent and I read...
  24. Replies
    25
    Views
    2,310

    Ok, thanks, well I knew that CS wouldn't be all...

    Ok, thanks, well I knew that CS wouldn't be all about programming. I do wish to learn as much as I can about everything around it.

    When it comes to mathematics is any of it done on paper in...
  25. Replies
    25
    Views
    2,310

    this is a great community, I ask one question and...

    this is a great community, I ask one question and get 20 responses! I'm glad to be a part of this. I think the best option for me would be to finish this beginners book and then read the next C...
Results 1 to 25 of 32
Page 1 of 2 1 2