Search:

Type: Posts; User: Spamtacus

Search: Search took 0.00 seconds.

  1. Replies
    12
    Views
    1,108

    Please explain why strcmp is opening with...

    Please explain why strcmp is opening with ingred[i] and not the filename?

    If I remember correctly the format for strcmp is
    strcmp(filename, "string")... or some sort of pointer...
  2. Actually something does change, you're now...

    Actually something does change, you're now getting a number instead of nothing....the question is..is the number what you're looking for..

    btw, I sent you a PM...
  3. Unfortunately, I do not know how to do what...

    Unfortunately, I do not know how to do what you're trying to do, like yourself, I'm a newbie at C as well...but I'd also like to know how to do that ...
    Question though...why do you have ! infront...
  4. Putting them in an array to read out on screen? ...

    Putting them in an array to read out on screen?

    First you have to print out the header, which I assume you would like to do?

    To print the header you use the fscanf with strings only (%s) and...
  5. With respect to your filename calling it should...

    With respect to your filename calling it should be something like this...


    printf("Please enter filename: ");
    scanf("%s", Your_Filename);


    Your_Pointer =...
  6. You have to ask the person to enter the file...

    You have to ask the person to enter the file name, using the printf and scanf statement...and when entering the file name you have to be sure to type "filename.txt" also making sure that the text...
  7. Did you type .txt at the end?

    Did you type .txt at the end?
  8. Replies
    16
    Views
    2,517

    Thanks man, it works!

    Thanks man, it works!
  9. Replies
    8
    Views
    5,900

    The problem was what ragarshi stated....include...

    The problem was what ragarshi stated....include the '\n' in the quotation marks after the %d and it'd work.
  10. Replies
    16
    Views
    2,517

    Can you give a sample code showing this? It's...

    Can you give a sample code showing this? It's still a bit unclear...
  11. Replies
    16
    Views
    2,517

    Yes there's a header (which reads fine), the...

    Yes there's a header (which reads fine), the file is attached in the previous post, and the function is going to be doing more than that once I can get the integers to read properly...and ok, I'll...
  12. Replies
    16
    Views
    2,517

    #include #include #include...

    #include <stdio.h>#include <stdlib.h>
    #include <string.h>
    #include <conio.h>




    #define text 200
    #define inti 200
  13. Replies
    16
    Views
    2,517

    Yep, I've fixed that in the code but it's still a...

    Yep, I've fixed that in the code but it's still a no go...the integers are still borked..
  14. Replies
    16
    Views
    2,517

    Well like I said before, everything BUT the...

    Well like I said before, everything BUT the integers (the date and numbers), are showing up properly.

    I've checked and can't seem to find anything....
  15. Replies
    16
    Views
    2,517

    Lol, possibly

    Lol, possibly
  16. Replies
    16
    Views
    2,517

    Help With Funny Integer Output

    Hi, I'm new to the forum, and really new to C, but I'd like to get better...

    I'm trying to read information from a text file with headers and info as well.

    The header is printing fine, but the...
Results 1 to 16 of 16