Search:

Type: Posts; User: littlerunaway

Search: Search took 0.00 seconds.

  1. Replies
    9
    Views
    1,441

    thanx Salem. I think you just solved my problem....

    thanx Salem. I think you just solved my problem. although I had to add '*' before Mydict in the strcpy function.
  2. Replies
    9
    Views
    1,441

    I don't quite understand why I need malloc. don't...

    I don't quite understand why I need malloc. don't I already assign the memory in the struct definition when I define the dict0 points to 5 characters long array?
  3. Replies
    9
    Views
    1,441

    struct and pointers

    I have a variable (Mydict) which is struct type, which includes a pointer (dict0) to an array of chars (5 of them). now I want to assign a word to that array and can't figure out how to do it.
    I...
  4. Replies
    2
    Views
    863

    what am I doing wrong?

    I'm writing this program for yet another home work and I'm stuck on a very small part of it. I wrote a short separate program that includes my problem. I added the program and what I get when I run...
  5. Replies
    12
    Views
    2,839

    working on it. it doesn't come to me as easy as...

    working on it. it doesn't come to me as easy as you may think.
  6. Replies
    12
    Views
    2,839

    yeah, 12a34 is a complete failure, I need to...

    yeah, 12a34 is a complete failure, I need to print an error, trow the whole thing away and check the next number.
  7. Replies
    12
    Views
    2,839

    so if scanf fails because of a character, I can...

    so if scanf fails because of a character, I can get rid of that character with getchar()? did I understand correctly?
    so if I have 12a34, scanf fails with the 'a', getchar() takes it away, the next...
  8. Replies
    12
    Views
    2,839

    "scanf(%d) stops at the first character which...

    "scanf(%d) stops at the first character which isn't a number and leaves that character (in your example 'a') in the input stream.
    Thus if you try to use scanf(%d) another time (at your next...
  9. Replies
    12
    Views
    2,839

    that's why I got an infinite loop. I see. I can't...

    that's why I got an infinite loop. I see. I can't really use those methods to get rid of the unwanted data cuz they don't really let us use things we haven't learnt in class yet.

    I actually wrote...
  10. Replies
    12
    Views
    2,839

    scanf and EOF

    hey
    I'm new to c and programming in general and there's something I can't figure out. I was hoping you could help me.

    I'm writing a program (home work) that supposed to receive a list of 5 digit...
Results 1 to 10 of 10