Search:

Type: Posts; User: blanny

Search: Search took 0.01 seconds.

  1. Replies
    4
    Views
    3,204

    Hi, Thanks for the infomation. I think I...

    Hi,

    Thanks for the infomation. I think I have enough to solve the problem. I'll report back.

    Matt
  2. Replies
    4
    Views
    3,204

    fgets, fflush, strcpy...

    Hi,

    Can anyone tell me if they see any glaring mistakes in this piece of code?


    void vGetString(char szString[], int iMax)
    {
    char szTmpBuf[STRING_BUF]; // set temp buffer...
  3. Thread: validation

    by blanny
    Replies
    9
    Views
    2,154

    Here's how I'm trying to implement it: ...

    Here's how I'm trying to implement it:



    while (valid != 1)
    {
    printf("\tcategory\t: ");
    while (getchar() != '\n');
    ...
  4. Thread: validation

    by blanny
    Replies
    9
    Views
    2,154

    Hammer, can you briefly explain what your code is...

    Hammer, can you briefly explain what your code is doing here?



    int main(void)
    {
    validate('F', 'Z');
    validate('N', 'M');
    validate('Z', 'Z');
    return(0);
  5. Thread: validation

    by blanny
    Replies
    9
    Views
    2,154

    Thanks man. Can you take a look at this beast? ...

    Thanks man. Can you take a look at this beast?


    char ch1 = toupper(cat1);
    char ch2 = toupper(cat2);
    while (toupper(char1, != 'F') && (ch1 != 'N') &&...
  6. Thread: validation

    by blanny
    Replies
    9
    Views
    2,154

    validation

    Hi, can someone tell me what's wrong with this code?



    while ((num <= 1) && (num >= 9999)) {
    printf("\n");
    printf("\tinventory number: ");
    scanf("%d", &num);...
Results 1 to 6 of 6