Search:

Type: Posts; User: merike

Search: Search took 0.01 seconds.

  1. That's it! I had i++ before do-while while...

    That's it! I had i++ before do-while while statement that checked for *(number+i)!='\n' but whenever the loop reached \n it replaced it with \0 then incremented i and checked whether next character...
  2. I probably should have explained better. What I...

    I probably should have explained better. What I meant with "it doesn't work" was that when I simply run it, then it won't go any further than this check, but it doesn't hang either.
    When I compile...
  3. comparing character in a string to anothr character

    I wanted to use:

    if((*(number+i)=='\n'))
    number being declared as char number[15].
    It doesn't work though and I can't understand why.
    Using:

    if((*(number+i)-'\n'))
    works but it doesn't do...
  4. Replies
    2
    Views
    1,366

    writing pointer value into array

    I'm reading a file to get some times into array. During debugging I found that pointer value is correct at the moment when I want to save it, meaning it is something xx:xx, x-es being numbers.

    I'm...
  5. Beginner question: passing values between functions

    I'm trying to read in values with one function and then do a simple calculation and print the result using second function. In the end the program is going to be more complicated but that's what I...
Results 1 to 5 of 5