Search:

Type: Posts; User: jkgoose937

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    44
    Views
    2,522

    Why does it take 12 posts to finally get...

    Why does it take 12 posts to finally get somewhere?

    I have been more than upfront about my lack of understanding here.

    I have lost all respect and faith in this forum.

    People here may be...
  2. Replies
    44
    Views
    2,522

    so if i'm understanding: a:...

    so if i'm understanding:

    a: sscanf(buffer,"%[^,], %[^,], %[^,]", get_info.user_ID, get_info.pass_word, get_info.user_flag, *, *, *,) == 3);
    or
    b: sscanf(buffer,"%[^,], %[^,], %[^,], *, *, *",...
  3. Replies
    44
    Views
    2,522

    yeah, that doesn't help. there again no...

    yeah, that doesn't help. there again no information on what i'm trying to do. no examples, nothing!
    ...
  4. Replies
    44
    Views
    2,522

    i do have C the complete reference 4th edition,...

    i do have C the complete reference 4th edition, but it's vague or moot on what i'm trying to do here.

    there is a bit more online:
    Sample C I/O: Student Records | 911 programming

    but again not...
  5. Replies
    44
    Views
    2,522

    i know i'm trying to do what...

    i know i'm trying to do what "http://911programming.wordpress.com/2010/05/15/sample-c-io-student-recods/" is doing.
  6. Replies
    44
    Views
    2,522

    so because i only really need the first 3...

    so because i only really need the first 3 variables it should be:

    sscanf(buffer,"%[^,], %[^,], %[^,]", get_info.user_ID, get_info.pass_word, get_info.user_flag) == 3);

    so if the above is true,...
  7. Replies
    44
    Views
    2,522

    sscanf(buffer,"%[^,], %[^,], %[^,], %[^,],...

    sscanf(buffer,"%[^,], %[^,], %[^,], %[^,], %[^,]", get_info.user_ID, get_info.pass_word, get_info.first_name, get_info.last_name, get_info.user_flag) == 1

    sscanf: is reading within the file by...
  8. Replies
    44
    Views
    2,522

    Could you expand on your answer? Really I...

    Could you expand on your answer?

    Really I could type in random stuff into my code to what I think it is, but that's not going to help me.

    Had I been given information like on page 2 from the...
  9. Replies
    44
    Views
    2,522

    I was fortunate to get an extension on this part,...

    I was fortunate to get an extension on this part, so i don't have to the time to invest or investigate into why this is not working.

    My logic states it should work but I cant see why it's not. ...
  10. Replies
    44
    Views
    2,522

    thank you for all your help thus far, but really...

    thank you for all your help thus far, but really i'm out of time on this
    project, but really it is what it is... nothing more..

    i may revisit this at a later time and take time to do the baby...
  11. Replies
    44
    Views
    2,522

    user.pwd file: 17556, yellow, S, happy, feet...

    user.pwd file:

    17556, yellow, S, happy, feet
    402636, black, U, hello, world
    22140, blue, U, dustin, trans
    171820, purple, S, justin, moore
  12. Replies
    44
    Views
    2,522

    ok i haven't given up yet but still need help...

    ok i haven't given up yet but still need help i've been given the suggestion to "bring in" strings via a struct.

    i think this is how to do it but really seems weird. i know i'm over my head here...
  13. Replies
    44
    Views
    2,522

    this project is going to be too hard for me to...

    this project is going to be too hard for me to do, i may have to give up on it. the help so far at this forum has be been ambiguous at best.

    my hope from this forum was more instruction on how...
  14. i didn't mean to do your work for you, but think...

    i didn't mean to do your work for you, but think about what's going on there. your grabbing [stdin] and placing into '&[memory]' the [memory] then gets placed it into "%s".
  15. Try starting off with just the basics of the...

    Try starting off with just the basics of the program like:



    #include <stdio.h>

    int main ()
    {
    char first_name[20];
    char second_name[20];
  16. Replies
    44
    Views
    2,522

    I haven't been able to make any head way on this....

    I haven't been able to make any head way on this. I can enter the userid and password then the program vomits and dies.

    any other suggestions?



    void auth_user()
    {
    char password;
    ...
  17. Replies
    44
    Views
    2,522

    yeah, i know, that's why we're doing this...

    yeah, i know, that's why we're doing this exercise... sink or swim!

    thank you deeply. i have something to work.
  18. Replies
    44
    Views
    2,522

    yeah, i know, that's why we're doing this...

    yeah, i know, that's why we're doing this exercise... sink or swim!

    thank you deeply. i have something to work.
  19. Replies
    44
    Views
    2,522

    how would i extract the 'int'? aka userid from...

    how would i extract the 'int'? aka userid from the file?
  20. Replies
    44
    Views
    2,522

    here's the entire function: #include...

    here's the entire function:




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

    #define FNAME1 "user.pwd"
  21. Replies
    44
    Views
    2,522

    i know i'm using the functions wrong and don't...

    i know i'm using the functions wrong and don't know how to properly use them and maybe even going about this the wrong way but this is what i have so far:



    else
    {
    user_db_file...
  22. Replies
    44
    Views
    2,522

    any one have any thoughts as to how to help get...

    any one have any thoughts as to how to help get this to work?
  23. Replies
    44
    Views
    2,522

    my biggest problem here is i just don't have a...

    my biggest problem here is i just don't have a clue on how to use strcmp or fscanf or fgets.

    i'm not asking for anyone to write code for me, but really more example of how to modify this so i...
  24. Replies
    44
    Views
    2,522

    so does this look like i'm on the right track...

    so does this look like i'm on the right track here?



    ...
    else
    {
    user_db_file = fopen(FNAME1, "r");

    while(fgets(file_string,50,user_db_file) != NULL)
  25. Replies
    44
    Views
    2,522

    ok so this is kinda where i'm going with this and...

    ok so this is kinda where i'm going with this and really need help understanding how this works.

    please help.



    char password;
    char get_pswd
    int userid;
    int get_ID
Results 1 to 25 of 34
Page 1 of 2 1 2