Search:

Type: Posts; User: multielements

Search: Search took 0.01 seconds.

  1. Replies
    27
    Views
    2,732

    haha - your code tags still are not working - I...

    haha - your code tags still are not working - I notice you have an opening code tag but no closing. At the end of your code make sure you add [/CODE]
  2. Replies
    16
    Views
    2,358

    Its SOOOOO increadbly easy to make small syntax...

    Its SOOOOO increadbly easy to make small syntax errors and logical errors like that. Even for intermediate and expert programmers - and you end up bashing your head off your keyboard trying to figure...
  3. Replies
    15
    Views
    2,123

    just type using namespace std; right below your...

    just type using namespace std; right below your headers and you will no longer have to use std::cout
    and you can use system("cls"); on xp - iv tried it lol
  4. Replies
    9
    Views
    13,161

    You might want to check your code again - I am...

    You might want to check your code again - I am running win xp myself and calling system("cls"); works great...
  5. Replies
    8
    Views
    1,216

    Try this... #include #include...

    Try this...


    #include <iostream>
    #include <fstream>
    #include <windows.h>

    using namespace std;

    int main()
  6. Replies
    16
    Views
    2,358

    You are using the equality operator instead of...

    You are using the equality operator instead of the assignment...
    gold == 45 // wrong...
    gold = 45 // right

    The reason why it shoots strange numbers because it is trying to see if it equals 45 as...
  7. Thread: CPU hog

    by multielements
    Replies
    16
    Views
    2,214

    Hahahaha nice illistration. (speaking of cookies...

    Hahahaha nice illistration. (speaking of cookies im going to have some brownies soon!)
    I never really realized that the CPU is runing at max. I came with my own theory that when data was available...
  8. Replies
    27
    Views
    2,732

    Ok - when I compile it all I get is 0.0000000...

    Ok - when I compile it all I get is 0.0000000
    I'v narrowed it down to something..
    If you declare your Curr_Conv_Factor as int and then get that value - it will work. But if your leave it float it...
  9. Replies
    16
    Views
    4,210

    Hmm, if you remember all characters are really...

    Hmm, if you remember all characters are really numbers. Like null = 0 , a = 97, b = 98. (NOTE: goto msdn library and search for ASCII, microsoft provides the codes - hex, dec, and char values). So...
  10. Replies
    27
    Views
    2,732

    If you just select the code and then press the...

    If you just select the code and then press the little # button on the editor pallet it will auto-insert code tags around your code.
    Nice function! :-D
  11. Replies
    27
    Views
    2,732

    Do you think you could give us a sample of how...

    Do you think you could give us a sample of how data is structured in your file... I know its csv but still visuals make it easier for the rest of the board.
    One way to advance is to select a certain...
  12. Replies
    27
    Views
    2,732

    haha - use code tags bud... what compiler are...

    haha - use code tags bud...
    what compiler are you using?
    The reason I ask this is because there is a serious bug with Visual C++ 6 Enterprise. I ended up having to change compilers to Dev-cpp to do...
  13. Thread: CPU hog

    by multielements
    Replies
    16
    Views
    2,214

    Hey dougdbug that anology was very well put...

    Hey dougdbug that anology was very well put actually. I can see your point. I suppose that the CPU is always querying hardware and filling buffers. What I ment was when you look at the processor...
  14. Thread: CPU hog

    by multielements
    Replies
    16
    Views
    2,214

    Thats exactly what I needed! I was looking on the...

    Thats exactly what I needed! I was looking on the msdn library about that function but microsoft always makes things seem much more complicated with documentation. Blah. I understood the timeframe...
  15. Thread: CPU hog

    by multielements
    Replies
    16
    Views
    2,214

    Ohh my goodness - it worked this time. Holy crap...

    Ohh my goodness - it worked this time. Holy crap - last time I tried Sleep it did didily squat.
    Ill work on that select statement a lil - still a little confused - but if I reread it a few times it...
  16. Replies
    6
    Views
    3,392

    well right now no - not the 100s and 1000s - but...

    well right now no - not the 100s and 1000s - but maybe in the future... hehe
  17. Thread: CPU hog

    by multielements
    Replies
    16
    Views
    2,214

    Actually I had code like the for while - but then...

    Actually I had code like the for while - but then it slows down keyboard input time - haha.
    I'm such a problem aint I :-p.
    Ohh and the redundant FD_SET is necessary because if I hadnt set it - then...
  18. Thread: CPU hog

    by multielements
    Replies
    16
    Views
    2,214

    Yea I have seen many posts on this board saying...

    Yea I have seen many posts on this board saying to use the sleep() funciton. But I never really liked the idea of my program sleeping. Really I just want it to wait for certain incoming data without...
  19. Thread: CPU hog

    by multielements
    Replies
    16
    Views
    2,214

    haha sure - it might be a little strange. Its a...

    haha sure - it might be a little strange. Its a small chat relay that I have devoloped. If you need more code let me know...

    while(recent != 1)
    {
    if(_kbhit())
    {
    sendbuf[sendx] =...
  20. Thread: CPU hog

    by multielements
    Replies
    16
    Views
    2,214

    CPU hog

    I have created a non blocking socket recv checker and keyboard checker. As you could imagain its using a loop to keep testing. But the problem is it bugs the CPU down majorly - how could I avoid...
  21. Replies
    6
    Views
    3,392

    Ohh ok - I was under the impression that select()...

    Ohh ok - I was under the impression that select() updated the values - even if they were zero and this in effect would not need the FD_SET().
    Thank you for your help. :-)
  22. Replies
    6
    Views
    3,392

    Ok I have done a whole ton of research and I made...

    Ok I have done a whole ton of research and I made a little headway. Now the only problem is that it will not receive data. Here is my code. Keep in mind count is initialized to {0,0} and I tried...
  23. Replies
    6
    Views
    3,392

    recv() blocks

    I recently asked about multithreading - thanks for you help and I ordered a book for more information.
    Now I have been working on my client-server architecture for a small chat relay. Well I have it...
  24. Replies
    10
    Views
    1,153

    haha, that little black box with the c:\> is dos....

    haha, that little black box with the c:\> is dos. Well an altered version of course from Microsoft called the command prompt. If it helps im using windows XP.
  25. Replies
    10
    Views
    1,153

    accept and work at same time

    I’m trying to create a small server/client tier architecture. You might think this should be posted under socket programming. But my question is of another kind.
    I have seen programs that are able...
Results 1 to 25 of 25