Search:

Type: Posts; User: $l4xklynx

Page 1 of 5 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    5
    Views
    1,384

    If you decide to use codeblocks with mingw Here's...

    If you decide to use codeblocks with mingw Here's a link on how to set it up I'm using codeblocks with mingw.
  2. Replies
    18
    Views
    2,270

    Good to hear it's working fine.. now you can go...

    Good to hear it's working fine.. now you can go ahead and refine your code. don't forget to follow the code snippet that I provided to you in the link, that removes the unnecessary character input.
  3. Replies
    18
    Views
    2,270

    I know that it will not work according to the...

    I know that it will not work according to the code that you posted.

    I don't see the relation of the 2 scanf() input to the goal of your program which is to print chars to a new line by line....
  4. Replies
    18
    Views
    2,270

    Were you able to enter a string using gets()? if...

    Were you able to enter a string using gets()? if not, then the string will not be printed. Prior to input string using gets you have 2 scanf()'s, I presume, that you won't be able to input any value...
  5. Replies
    18
    Views
    2,270

    Or you could just use isalpha() to capture all...

    Or you could just use isalpha() to capture all alpha characters from the input and disregard those non-alpha characters.
  6. Replies
    18
    Views
    2,270

    You could try to use the idea about using fgets...

    You could try to use the idea about using fgets right here
  7. Replies
    6
    Views
    1,485

    I see... I guess I'll just stick with my log-in...

    I see... I guess I'll just stick with my log-in name... :D thanks
  8. Replies
    4
    Views
    1,261

    I still have a TC compiler if you need it I may...

    I still have a TC compiler if you need it I may send it to your e-mail... pm me if so..
  9. Replies
    20
    Views
    8,439

    whew!!! thanks everybody... I have now a bug free...

    whew!!! thanks everybody... I have now a bug free input... I'll be posting again next time...
  10. Replies
    20
    Views
    8,439

    ok, I've tried all the example that was provided...

    ok, I've tried all the example that was provided and I truly appreciate it a lot. I applied laserlight's last code.



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

    char...
  11. Replies
    20
    Views
    8,439

    Yes I'm sorry, I forgot to change the code to...

    Yes I'm sorry, I forgot to change the code to it's original state for I was playing with it earlier.
  12. Replies
    20
    Views
    8,439

    Yes.. I modified the code and applied...

    Yes.. I modified the code and applied sebastiani's code:




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

    char *getString( char *buffer, size_t size, FILE* input );
  13. Replies
    20
    Views
    8,439

    Excess buffer using fgets

    Hi to all... I checked the FAQ and some tutorials over the net regarding not use
    scanf or gets just use fgets to control buffer. I created this code for a test but it seems
    like the excess buffer...
  14. Replies
    7
    Views
    1,517

    And those objects that were created in the client...

    And those objects that were created in the client code will send a message to the class and perform whatever behavior the object requested?
  15. Replies
    18
    Views
    3,389

    If you want experts here to help you properly try...

    If you want experts here to help you properly try to help them as well to understand your code properly. Indent it, divide the processes using functions.
  16. Replies
    7
    Views
    1,517

    As to my understanding, The header file is a...

    As to my understanding, The header file is a different file: graphics.h and a library I presume is a different file as well: graphics.lib... if the pointer to a structure is in the graphics.lib...
  17. Replies
    7
    Views
    1,517

    I understand most of the answers that you...

    I understand most of the answers that you provided but this one. let's say:




    |Library | <-- where the pointer to a structure is etc.
    struct A {
    //statement....
    };
    typedef A *alibrary;
  18. Replies
    12
    Views
    1,316

    I tried to use your code using codeblocks with...

    I tried to use your code using codeblocks with mingw and it worked... I wonder what error you're encountering.?


    edit: nevermind it's now resolved :D...
  19. Replies
    7
    Views
    1,517

    Information Hiding

    I somehow understand what a library is in computer programming.
    Library is a collection of subroutines or classes to provide services on creating an application.

    I read these paragraphs and...
  20. Replies
    6
    Views
    1,485

    Change log-in name...

    hi, is there anyway I can change my log-in name? I can't see it in "User CP"..
  21. Replies
    10
    Views
    1,818

    The string "char string[40]" doesn't contain...

    The string "char string[40]" doesn't contain valid things, though, that's why it's not printing out the string that you want.

    Since "char string[ 40 ]" doesn't contain valid things, This code...
  22. Replies
    21
    Views
    2,785

    sorry but this made me laugh..... :D

    sorry but this made me laugh..... :D
  23. Thread: Whats wrong?

    by $l4xklynx
    Replies
    24
    Views
    2,616

    I see, but why put fgets as an expression in the...

    I see, but why put fgets as an expression in the if condition?



    yes they can but it's wrong in C, that's what I meant... But in his program I don't think that he needs to initialize the array.
  24. Thread: Whats wrong?

    by $l4xklynx
    Replies
    24
    Views
    2,616

    I agree, it would be better if you could provide...

    I agree, it would be better if you could provide us the output that you're having for the people around to see what's actually happening.

    btw, fgets is also including the newline in your string...
  25. Replies
    13
    Views
    26,173

    laserlight means that you're having problem with...

    laserlight means that you're having problem with getline.

    Compare your getline to the getline documentation right here
Results 1 to 25 of 116
Page 1 of 5 1 2 3 4