Search:

Type: Posts; User: netstar

Search: Search took 0.00 seconds.

  1. >>--host=i386-redhat-linux Well I'm not running...

    >>--host=i386-redhat-linux
    Well I'm not running Redhat. It seems that Debian's gcc are configured for a variety of languages.
    "--enable-languages=c,c++,java,f77,pascal,objc,ada,treelang"
    No wonder...
  2. quzah>> I'm aware of that but pa->name is not a...

    quzah>> I'm aware of that but pa->name is not a c++ string.

    salem>> Ok, things are getting freaky. You know aswell as I do that your previous posted code does not compile without fixing it. The...
  3. Thanks! Nice program you made there. But I...

    Thanks!

    Nice program you made there. But I have no problem with my program, I have a problem with qsort though. When you are in the compare() function wouldn't it be possible to output the...
  4. I really liked Salems idea so I decided to give...

    I really liked Salems idea so I decided to give it a try. I think I understand it in theory but it doesn't work very well when I try to implement it.
    Here are some code hopefully someone can correct...
  5. Replies
    5
    Views
    16,309

    If you haven't got the picture yet it's always...

    If you haven't got the picture yet it's always good to insert cout in your code so you know what's happening. Compile the code below and you will see what you have done wrong.



    #include...
  6. I do sort it when I input new Cd:s. But as I said...

    I do sort it when I input new Cd:s. But as I said in my first post I would also like to sort my list by any variabel in the struct (Artist etc.). And if my list is sorted by Artist the discID won't...
  7. That's really clever. But I guess it's a bit to...

    That's really clever. But I guess it's a bit to sophisticated for my little Cd database. But in a larger list it's definitely worth looking at. For the moment I'll implement the code in my previous...
  8. Ok so this is what you recommend? (Awful lot of...

    Ok so this is what you recommend? (Awful lot of function calls if you got a long list.)



    int compare(sCdPost *current, int sel)
    {
    if (sel == 1)
    return current->discID...
  9. Sort strings in double linked list. (Optimize code)

    I have a struct with different members and the ones I want to sort is int and string. The sorting will only affect one member of the struct and the hole linked list. As it is now I have one sorting...
  10. Replies
    4
    Views
    1,471

    I'll take a look at it thanks for the help.

    I'll take a look at it thanks for the help.
  11. Replies
    4
    Views
    1,471

    I've used getline for both 1 and 2. To convert to...

    I've used getline for both 1 and 2. To convert to integer I used:
    http://faq.cprogramming.com/cgi-bin/smartfaq.cgi?answer=1046996179&id=1043284385
    It works like a charm.

    I thought of Allegro and...
  12. Replies
    4
    Views
    1,471

    How to avoid buffer overflow at input?

    I'm trying to figure out how to do input to variables without overflowing them. I have string variables to hold strings and int for numbers.

    1. Is getchar() the most elegant way of taking care of...
  13. Replies
    10
    Views
    2,917

    >>Take a look at the WinLirc source code and see...

    >>Take a look at the WinLirc source code and see how it works.
    I realized that the winlirc code has to hold the answer, so I have already read the source. And I found out that winlirc does'nt use...
  14. Replies
    10
    Views
    2,917

    I'ts an 10 in 1 universal remote control from...

    I'ts an 10 in 1 universal remote control from Medion (Germany). Model: MD 4689, but I don't think i'm facing a hardware problem. As I said in my earlier post it does work with winlirc but I have to...
  15. Replies
    10
    Views
    2,917

    >>If you going to do it yourself, you'll need to...

    >>If you going to do it yourself, you'll need to read this article (several times): >>http://msdn.microsoft.com/library/d...msdn_serial.asp
    Well I read the above link and it was a good introduction...
  16. Replies
    10
    Views
    2,917

    I'm having difficulties finding information on...

    I'm having difficulties finding information on DCD(Data Carrier Detected). All I know is that it's a more sofisticated way in recieving data than using RX. The DCB structure does'nt have a member...
  17. Replies
    10
    Views
    2,917

    Nice code. I've tried your example code for...

    Nice code. I've tried your example code for reading one byte at a time, but it won't detect anything either.
    I've downloaded winlirc and I have to use Data Carrier Detected (DCD) to receive...
  18. Replies
    10
    Views
    2,917

    Remote control trough COM port.

    I'm trying to write a program that listens on the COM port. I have a remote control and an IR that connects to the COM port.
    I wonder if it's possible to use CreateFile() and ReadFile() for this.
    ...
  19. Replies
    2
    Views
    861

    Ok, I guessed it was something like that. But I...

    Ok, I guessed it was something like that. But I did'nt know that it could only be used within structs.

    Thanks and sorry for not reading the manual.
  20. Replies
    2
    Views
    861

    Variables deluxe.

    I would like to have pointed out what the code below means.




    int x:4;


    /Netstar
Results 1 to 20 of 20