Search:

Type: Posts; User: monkey_C

Search: Search took 0.01 seconds.

  1. Thread: Graphical C

    by monkey_C
    Replies
    4
    Views
    2,111

    Thanks to you both. I played around with the...

    Thanks to you both. I played around with the googlemeister and found that there was an API for Win32 programs in C. I had no idea this was possible but you can rest assured I'll be spending the...
  2. Thread: Graphical C

    by monkey_C
    Replies
    4
    Views
    2,111

    Graphical C

    Hello all,

    Having been programming in C for over a year, I am finally becoming comfortable with the development process. I am currently working on a database to track animal histories. I...
  3. Thread: Too easy?

    by monkey_C
    Replies
    19
    Views
    2,382

    Re: Re: you'll need to specify the full path.

    'fraid not quzah. When dealing with user input, ANSI C compilers will treat incoming text as the literal text. It won't do any interpretation of the backslashes as escape characters. Since when...
  4. Replies
    3
    Views
    2,002

    I used scanf under the auspices that my error...

    I used scanf under the auspices that my error checking would make up for its shortcomings.




    This code is only to be used for one of my assignments in my current class. I will obviously...
  5. Replies
    9
    Views
    5,083

    code:...

    code:
    --------------------------------------------------------------------------------
    printf ("Enter new employee ID no.:");
    scanf("%d", &i_temp);
    validateID(i_temp, emp, empfPtr);
    ...
  6. Replies
    7
    Views
    2,312

    could be wrong here, but I'm not. atof() is used...

    could be wrong here, but I'm not. atof() is used to go from ASCII to a double, not a float. Like I said, I could be wrong, but I'm almost certain that's the way atof works. Check out your...
  7. Replies
    3
    Views
    2,002

    rewritten scanf for floats

    Hello all,
    I am currently working on a library of functions that I will be able to use in place of scanf(), simply because scanf() is unbelievably stupid. Anyways, I have code written for...
  8. Replies
    8
    Views
    1,256

    Re: Re: faulty while loop

    This function displays a menu to the user then prompts for input, validating the input information and repeating the menu until the info IS valid. Option 9 will eventually be used to exit the...
  9. Replies
    8
    Views
    1,256

    faulty while loop

    I swear this is my last one for the night. This while loop should be presenting the menu until a valid option is selected. Right now it just repeats the menu even after a valid option is selected. ...
  10. Replies
    8
    Views
    2,392

    I'm sorry, I made two mistakes, first of all I...

    I'm sorry, I made two mistakes, first of all I should have mentioned I was specifically trying to avoid array syntax. Secondly, it is not passed into this function as a const, I was looking at a...
  11. Replies
    8
    Views
    2,392

    OK, wDeck was originally declared in main() as ...

    OK, wDeck was originally declared in main() as

    int deck [4] [13] = {0};

    and was passed into the function containing my problematic line as

    const int wDeck[][13]

    but...
  12. Replies
    8
    Views
    2,392

    How do you mean that it would depend on how I...

    How do you mean that it would depend on how I declared wDeck? I'm not sure I understand.
  13. Replies
    7
    Views
    1,928

    Thank You Magos! I knew that formula existed I...

    Thank You Magos! I knew that formula existed I just couldn't figure it out. Again thanks!
  14. Replies
    8
    Views
    2,392

    illegal operand

    Does anybody see anything wrong with this code?
    I keep getting an "illegal operand" error in my MetroWerks CodeWarrior compiler.

    Your help is appreciated.

    code


    /*wDeck is a two...
  15. Replies
    5
    Views
    951

    Obviously, since main is a function just like...

    Obviously, since main is a function just like anything else, it has a return type. Yes, "return 0;" just tells the system that main compiled fine.


    Of course, this only makes a difference if...
  16. Replies
    7
    Views
    1,928

    Pointer Syntax

    I've got a card dealing program and I want to convert all the array syntax into pointer syntax. Whereas in array syntax I would just use the element's subscript (i.e. arr[3] ) in pointer syntax I...
Results 1 to 16 of 16