Search:

Type: Posts; User: eleceng16

Search: Search took 0.01 seconds.

  1. Replies
    6
    Views
    1,799

    Is there any way I can make sure the buffer is...

    Is there any way I can make sure the buffer is cleared? I have used it before but somehow now its now working...

    EDIT : *problem solved* - laserlight thanks for your help!!! I used %*c%[^\n]%*c...
  2. Replies
    6
    Views
    1,799

    I tried it but it's still not working... it's not...

    I tried it but it's still not working... it's not letting me enter an input :/
  3. Replies
    6
    Views
    1,799

    Reading a space character using scanf

    Hi, I've been trying to read to a string with spaces using the following


    scanf("%[^\n]%*c", student->name);

    However, it is not working since it doesn't let me input any thing and just moves...
  4. Replies
    7
    Views
    1,471

    ahhh sorry i misunderstood, thanks!

    ahhh sorry i misunderstood, thanks!
  5. Replies
    7
    Views
    1,471

    @claudiu .. what is an alternative to malloc? ...

    @claudiu .. what is an alternative to malloc?

    Hi, I'm trying to print the items in the list (a continuation from code above) however its not working..


    void printList(listCode* startPtr){...
  6. Replies
    7
    Views
    1,471

    I did as you said but now it gave me these errors...

    I did as you said but now it gave me these errors
    1. warning C4090 =' : different 'const' qualifiers
    2. error C2106: '=' : left operand must be l-value
    I have no idea what they mean?
  7. Replies
    7
    Views
    1,471

    Linked List Error

    Hi, I'm new to C programming and I'm trying to create code ( it's part of a larger program) which creates linked list of country codes. Basically I'm getting the country codes inputted from the user...
Results 1 to 7 of 8