Search:

Type: Posts; User: Chinfrim

Search: Search took 0.01 seconds.

  1. Replies
    2
    Views
    5,900

    Oh.. Dumb Me.. Thanks, it compiles now and...

    Oh.. Dumb Me..

    Thanks, it compiles now and all, had to use some strcmp's to get it working.

    Now to define the algorithm for factorial numbers. (n!)
  2. Replies
    2
    Views
    5,900

    Reading a Whole Word in C

    SOLVED!!


    Hello, I cannot seem to find a way to get my program to read a WHOLE word and then so something according to that word.

    Basically, my program needs to ask the user about 3 options,...
  3. Replies
    4
    Views
    1,360

    printf("Please enter a single digit number:");...

    printf("Please enter a single digit number:");
    scanf("%f",&num1);


    That's one error that popped right up, You must save the scanf to the adress, not the variable itself.

    Also, you're much...
  4. Replies
    29
    Views
    2,654

    I can't get it to work, I simply can't, It's...

    I can't get it to work, I simply can't,

    It's starting to annoy me, I don't know how to read only the client database, I don't know how to write new info only inside the client database, I know...
  5. Replies
    29
    Views
    2,654

    Very well, the only thing I'm having trouble at,...

    Very well, the only thing I'm having trouble at, is the following, to be 100% sure of what to do:

    I wanted to know if I can, find the starting tag of <clients>, copy all the data to a list, up to...
  6. Replies
    29
    Views
    2,654

    Actually, I need to do that, it's using the...

    Actually, I need to do that, it's using the struct, and the pointer to the next struct, the problem seems to be writing with the tags. Which I seem to have some troubles at.
  7. Replies
    29
    Views
    2,654

    Okay, you told me to malloc() a Buffer, I'd guess...

    Okay, you told me to malloc() a Buffer, I'd guess tomorrow morning, I'll do some research on that.

    Supposedly, I would want to malloc() something bigger than the original file, that's why I would...
  8. Replies
    20
    Views
    4,130

    I had Ubuntu 7.10 ( It's a Linux Thingie)...

    I had Ubuntu 7.10 ( It's a Linux Thingie) Installed here, pureply for programming, and I use the text editor that comes with it, it's Gedit.

    It's really good, gives you neat stuff like, quick...
  9. Replies
    29
    Views
    2,654

    Okay, so I can just.. scanf("%d", *save it to a...

    Okay, so I can just.. scanf("%d", *save it to a vector here?*)

    And for the other doubt, it's the following,

    They want the customers to have a Company ID Number.

    So, imagine there's two...
  10. Replies
    29
    Views
    2,654

    Yep, mostly it's whats happening, I think that...

    Yep, mostly it's whats happening, I think that what I have written makes sense, but, I don't know if it will go well.

    And can I save the numbers to a vector string like that?

    And that cycle...
  11. Replies
    29
    Views
    2,654

    Can I just use: struct client { int...

    Can I just use:


    struct client {
    int id_client;
    char name_client;
    int cont_client;
    struct client *next;
    };
  12. Replies
    29
    Views
    2,654

    Very well, I shall use your idea then, I will...

    Very well, I shall use your idea then, I will come back after lunch and some more frustrated tries!!
  13. Replies
    29
    Views
    2,654

    Well, thing is, I don't know how to pick it up, ...

    Well, thing is, I don't know how to pick it up,

    I have a xml file, I'll write part of it:


    <pos>
    <company>Company X</company>
    <tax>1.21</tax>

    <suppliers>
  14. Replies
    29
    Views
    2,654

    Well, considering, I don't know how to exactly...

    Well, considering, I don't know how to exactly read from a file, and write in it, how to make dynamic structs, and this project is all about that, I have a long way to go.
  15. Replies
    29
    Views
    2,654

    Meh, it's too much to learn in one week, while...

    Meh, it's too much to learn in one week, while studying for another subjects, I guess I'll fail.. sigh.
  16. Replies
    29
    Views
    2,654

    Okay, but still I need to create the...

    Okay, but still I need to create the "interface.h" file and write the:


    #include "interface.h"

    Where interface.c would have, for example, function A, which would create the menu, B which would...
  17. Replies
    29
    Views
    2,654

    Okay, thanks a lot, MacGyver, guess I'll have to...

    Okay, thanks a lot, MacGyver, guess I'll have to study a bit more of file reading/writing,

    Specially the part where the function finds a line and write in a specific spot.
  18. Replies
    29
    Views
    2,654

    Okay, I never heard of this in College, so.. I...

    Okay, I never heard of this in College, so.. I can just make a file, say "read_xml.c" and make a read_xml.h file?

    Well, considering I have, numbers, and characters to write/replace/read, if I just...
  19. Replies
    29
    Views
    2,654

    How to Link Various Files

    So, I have this college project, and I need to make a POS application.

    My POS (Point of Sale) has two working modes, as the supervisor, and as an employee.

    To make it simpler, me and my...
Results 1 to 19 of 19