Search:

Type: Posts; User: frodonet

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    0
    Views
    1,413

    Thanks Guys...

    I want to say thank you to many of you...

    such as elycia and matxp and most of you who help me in my programming. i managed to completed it and solve almost all problems.

    thanks guys...

    i...
  2. Replies
    2
    Views
    870

    URGENT HELP NEEDED - One small problem

    fin = fopen("C:\\LANVIN.TXT", "r");
    while( fgets(line_buffer,sizeof(line_buffer),fin) != NULL )
    {
    sscanf(line_buffer,"%s %s %s...
  3. Replies
    5
    Views
    1,312

    i did this and doesn't work why.... .........

    i did this and doesn't work why....



    ......

    checkpw();

    ......
  4. Replies
    5
    Views
    1,312

    How do i create this code into a function?

    Hi Guys,

    so sorry to create a new thread.

    But just wondering...

    how do i create a function of checkpw() with this bunch of codes...
  5. Replies
    64
    Views
    8,901

    in which part i don tell the compiler to quit???

    in which part i don tell the compiler to quit???
  6. Replies
    64
    Views
    8,901

    ok i have remove the new line though... but...

    ok i have remove the new line though...

    but after scanf...it seems it still close the program...i don know why....

    argghhghghgh
  7. Replies
    64
    Views
    8,901

    hahah...i remove the '&' and the output came...

    hahah...i remove the '&' and the output came correct, one question though...

    why i did a printf on my password entered...it has a coma in front it? why?
  8. Replies
    64
    Views
    8,901

    but earlier before i do scanf i have put these...

    but earlier before i do scanf i have put these command.



    fpassword = fopen("C:\\PASSWD.TXT", "r");
    if (fpassword == NULL) printf("File doesn't exist\n");


    but if it can't open in the first...
  9. Replies
    64
    Views
    8,901

    while(...

    while( fgets(line_buffer,sizeof(line_buffer),fpassword) != NULL ) /* read from file while still data available */
    {
    char ftemp[20], fpass[20], fuser[20];
    ...
  10. Replies
    64
    Views
    8,901

    Guys, this is the latest development i did on my...

    Guys, this is the latest development i did on my program.

    i compiled it in bloodshed C++..no warnings or whatsoever...

    but still the line buffer has more than 3 fields...which i think causing...
  11. Replies
    64
    Views
    8,901

    how to add a debug print? can show me how?

    how to add a debug print? can show me how?
  12. Replies
    64
    Views
    8,901

    i don know....when i compile there are no errors...

    i don know....when i compile there are no errors or warnings.

    now added string.h already, the problem still persist...

    it seems the linebuffer parsing more than 3 fields....i don know why is...
  13. Replies
    64
    Views
    8,901

    i don understand one thing... since i declared...

    i don understand one thing...

    since i declared the array size of the inputted user name is the same as the username inside the file...would that be a problem why would i need BUFSIZE?
  14. Replies
    64
    Views
    8,901

    i would appreciate an example...a simple one....

    i would appreciate an example...a simple one. there's no way a beginner can understand a c code just by sentences.
  15. Replies
    64
    Views
    8,901

    so how do i use it to check name and password??...

    so how do i use it to check name and password?? :confused:
  16. Replies
    64
    Views
    8,901

    checking the name and password inputted or...

    checking the name and password inputted or checking name and password with the file?

    any examples?? this BUFSIZ is really new to me... :confused:
  17. Replies
    64
    Views
    8,901

    i have changed my pass[5] into pass[20]... ...

    i have changed my pass[5] into pass[20]...




    how do i do this??? how to validate??
  18. Replies
    64
    Views
    8,901

    #include main( ) { FILE...

    #include<stdio.h>

    main( )
    {
    FILE *fpassword;
    char c, line_buffer[100], user[20], pass[5];
    fpassword = fopen("C:\\PASSWD.TXT", "r");
    if (fpassword == NULL) printf("File...
  19. Replies
    64
    Views
    8,901

    i have put breaks...it still the same...

    i have put breaks...it still the same thing....:rolleyes:
  20. Replies
    64
    Views
    8,901

    sorry to made you so mad. it's just that i'm...

    sorry to made you so mad.

    it's just that i'm kind of dumb. please forgive me, i knew i asked so many questions.

    so sorry...
  21. Replies
    64
    Views
    8,901

    what should i declare x and y and i??

    what should i declare x and y and i??
  22. Replies
    64
    Views
    8,901

    eh...the problem still persist :(

    eh...the problem still persist :(
  23. Replies
    64
    Views
    8,901

    The loop is reading the data from the file....but...

    The loop is reading the data from the file....but i don think it's looping cause i have entered the user id and password before the loop...

    so then the loop can check one time for the user ...:p ...
  24. Replies
    64
    Views
    8,901

    ehh...kind of weird, when i put a...

    ehh...kind of weird,

    when i put a printf("username not found") outside the loop, it seems whether i entered the correct username/password or false one, it still shows username not found.

    but...
  25. Replies
    64
    Views
    8,901

    i mean if i type in the correct/false user id and...

    i mean if i type in the correct/false user id and password...

    it should show "User Authorized/User not authorized"...but it's not showing at all...it's just close the program...

    have done 2...
Results 1 to 25 of 45
Page 1 of 2 1 2