Search:

Type: Posts; User: IceBall

Page 1 of 3 1 2 3

Search: Search took 0.02 seconds; generated 46 minute(s) ago.

  1. Replies
    45
    Views
    10,711

    unsigned char is ok, but LED[0] would not...

    unsigned char is ok, but

    LED[0]
    would not work, since this will access the first byte of LED - you want to access the first bit

    try something like this to set the first bit to 1

    *LED = *LED...
  2. Replies
    45
    Views
    10,711

    Using a pointer would be a good idea, i guess. ;-)

    Using a pointer would be a good idea, i guess. ;-)
  3. Thread: Help Beginner

    by IceBall
    Replies
    13
    Views
    1,895

    yeah MK27 thats correct i was reffering to...

    yeah MK27 thats correct
    i was reffering to b-k24's code --> an opening-brace requires always a closing-brace.
  4. Thread: Help Beginner

    by IceBall
    Replies
    13
    Views
    1,895

    it's missing a } at the end If "i" is an int...

    it's missing a } at the end
    If "i" is an int too, you would not need to use x - you can use i instead.
  5. Thread: Help Beginner

    by IceBall
    Replies
    13
    Views
    1,895

    the loop i posted will run 6 times - i will be 0...

    the loop i posted will run 6 times - i will be 0 the first time (since it's initialized by i = 0; ) and incremented by 1 every run (i++; )

    So you will be able to use target[i] inside of the loop...
  6. Thread: Help Beginner

    by IceBall
    Replies
    13
    Views
    1,895

    you want to use a for-loop for(i = 0; i < 6;...

    you want to use a for-loop


    for(i = 0; i < 6; i++) {
    // your code here
    }
  7. Replies
    4
    Views
    1,273

    i'm using lccwin32 most of the time. an other...

    i'm using lccwin32 most of the time. an other famous one would be MS visual studio of course...
  8. Replies
    10
    Views
    3,350

    localtime( ) will return a struct tm* struct...

    localtime( ) will return a struct tm*

    struct tm is defined as


    struct tm {
    int tm_sec; /* seconds */
    int tm_min; /* minutes */
    int tm_hour; /* hours */
    ...
  9. Replies
    18
    Views
    2,371

    a long long int contains 64bit so there is a...

    a long long int contains 64bit so there is a number range of 9223372036854775807 to -9223372036854775807.
    13 digits shouldn't be problem for long long int.
  10. Replies
    9
    Views
    3,287

    pasted it into my ide - works fine for me (result...

    pasted it into my ide - works fine for me (result is -997 in a random matrix setup like yours)
  11. Replies
    9
    Views
    3,287

    can you tell us what u are expecting and what u...

    can you tell us what u are expecting and what u are getting..?
  12. Replies
    9
    Views
    3,287

    :confused: so my best guess is that theres...

    :confused: so my best guess is that theres something wrong with matrix[currentR,currentC] <- i'm not sure about that. i'd have used somthing linke &matrix[currentR][currentC]
  13. Replies
    9
    Views
    3,287

    hm.. is...

    hm..

    is matrix[currentR][currentC].bestFromStart already filled at this line?
    expecting "value" is a positive number - i would say this statement is never true when...
  14. Replies
    7
    Views
    1,395

    You have to call your function after the...

    You have to call your function after the "scanf-line" - thats the main point, why it's not working ;) .
    The call should look like this: time(time, &hours, &mins...
    "&hours" represents the adress of...
  15. Replies
    7
    Views
    1,396

    you have to reset i to 0, before running into...

    you have to reset i to 0, before running into theloop :)
  16. Replies
    7
    Views
    1,396

    you could also use strcpy to copy the new string...

    you could also use strcpy to copy the new string into the old buffer.

    char *strcpy(char *str1, const char *str2);


    edit: argh.. too slow
  17. Replies
    3
    Views
    947

    maybe they did so, because in assembler the dest...

    maybe they did so, because in assembler the dest also stands on the left side?
  18. Replies
    3
    Views
    31,454

    this statement would be true: since 0x7 = 0111...

    this statement would be true:
    since 0x7 = 0111 bin
    and 0x2 = 0010 bin

    -> the result of the & operation is 0x2
    and this is not 0, so its True :)
  19. Thread: multithreading

    by IceBall
    Replies
    5
    Views
    1,488

    hmm cant find the code.. but it looked like this:...

    hmm cant find the code.. but it looked like this:

    int thread2() {..}

    int thread1() { clone(..., thread2,...);...}

    int main() {clone(..., thread1,...); ...}
  20. Thread: multithreading

    by IceBall
    Replies
    5
    Views
    1,488

    thank you for the replys. i already used the...

    thank you for the replys.
    i already used the posix threads one day after my first post. So i have no more problems with multithreading.

    But i'm still interestet in the fac, why the 2. clone call...
  21. Thread: multithreading

    by IceBall
    Replies
    5
    Views
    1,488

    multithreading

    hi everybody. :)

    im playing around with the clone() syscall to implement multithreading. My problem now is, that every time i try to clone() a thread out of another clone()d thread the program...
  22. Replies
    9
    Views
    2,514

    Poll: for windowed apps i really like this method:...

    for windowed apps i really like this method:
    http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winsock/winsock/wsaasyncselect_2.asp
  23. Replies
    8
    Views
    1,285

    isn't isalpha() a standard function -> i guess...

    isn't isalpha() a standard function -> i guess ctype.h
  24. Replies
    7
    Views
    1,594

    you can access the elements of a struct with this...

    you can access the elements of a struct with this "->" operater, if there is just a pointer to the struct.
  25. Replies
    6
    Views
    1,859

    i guess you need to have a look at functions with...

    i guess you need to have a look at functions with variable number of arguments
Results 1 to 25 of 57
Page 1 of 3 1 2 3