Search:

Type: Posts; User: michaels-r

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    28
    Views
    4,988

    I would have thought that exceptions were one of...

    I would have thought that exceptions were one of the main features that would make C++ such a great language for writing an OS in - much easier to follow.
  2. Replies
    4
    Views
    2,649

    Have you looked at the MySQL libraries?

    Have you looked at the MySQL libraries?
  3. Replies
    6
    Views
    1,189

    I hate to point out the obvious (actually I...

    I hate to point out the obvious (actually I rather like it) but the way that the numbers are stored is more about helping the coputer to operate more efficiently than about you being able to play...
  4. Replies
    4
    Views
    1,431

    Just to be clear, when you say circular, do you...

    Just to be clear, when you say circular, do you mean that the last node points to the first?
    I am not quite clear what you are trying to do with your code... do you manage the garbage collection...
  5. Replies
    7
    Views
    1,656

    Have you considered that there are a lot of these...

    Have you considered that there are a lot of these around already? Microsoft Office, Star Office (if you don't want to pay) etc... This is a non-trivial task, although I would be tempted to take a...
  6. Replies
    4
    Views
    2,100

    I really don't see why that would be if the code...

    I really don't see why that would be if the code is written well... Copying from a register to memory would not cause a change... unless the type is coverted to a less precise vairable in the process...
  7. Replies
    4
    Views
    1,734

    Ummmm... you are still not there. Your for loop...

    Ummmm... you are still not there.
    Your for loop will fail (or at least it should do). the condition part is not valid, you are assigning the value 13... to (x*y) which you cannot do and don't want...
  8. Have you tried it wouout the l_str +="\n"; line?...

    Have you tried it wouout the l_str +="\n"; line?
    Irrespective of that, it works fine for me in FC4 64. There must be something odd going on in your system.
    Out of interest, why are you using printf...
  9. Replies
    3
    Views
    1,000

    I think you need to look at how boolean algebra...

    I think you need to look at how boolean algebra works in C and C++. Anything non zero is regarded as true (positive and negative values). Zero is regarded as false. Therefore, when applying boolean...
  10. Replies
    1
    Views
    825

    Hi - sounds like a fairly simple problem with a...

    Hi - sounds like a fairly simple problem with a number of solutions of varying complexity and elegance (always important).

    You could go with (output to stdout, although you can always change it to...
  11. Replies
    4
    Views
    1,438

    If you put the union in a class with a static...

    If you put the union in a class with a static member indicating the current bit rate, with suitable functions and operator overloading, you can then use variables of that type without having to think...
  12. Replies
    3
    Views
    1,971

    Thanks for the correction - teach me to answer...

    Thanks for the correction - teach me to answer questiosn late at night when my wife is telling me to leave the **** computer alone! :-)
  13. Replies
    3
    Views
    1,971

    You need to corece the type of the calloc: ...

    You need to corece the type of the calloc:
    (gBoardInfo *)(calloc ........)
    Alternatively and more C++ would be to use new and delete.
    IF you are new to C++ you might want to consider maing it a...
  14. Replies
    5
    Views
    1,017

    You are actually asking for all values of i which...

    You are actually asking for all values of i which are not divisible by 3, 5 or 7 which means that the first number you would not show is 21 (beyond your range). Perhaps you ment to use && instead?
  15. Replies
    2
    Views
    6,618

    Try looking for libraries in google... this is...

    Try looking for libraries in google... this is probably non-trivial as the standards are not all in the public domain. Good luck.
  16. Replies
    4
    Views
    1,590

    mysql++ is a c++ wrapper for the C API - sooooo...

    mysql++ is a c++ wrapper for the C API - sooooo much easier than the simple C approach. Using the standard C api just means that you have to write the C++ code yourself... Up to you though.
  17. Replies
    4
    Views
    1,590

    You need to use -lmysqlclient (I use it all...

    You need to use -lmysqlclient

    (I use it all the time with no problems)

    Have you looked at mysql++? Excellent libraries and they take all the work out of MySQL programming. You can find them on...
  18. Thread: File I/O?

    by michaels-r
    Replies
    5
    Views
    1,058

    How about using the >> opertor? You could even go...

    How about using the >> opertor? You could even go as far as to creat your own extractors if you have any odd data types (not that you do - they are all floats and a string).

    If that is too...
  19. Actually I meant to use fstream - that would be...

    Actually I meant to use fstream - that would be it. Late at night :o

    ios::in specifies that the file is capable of input
    ios::out specifies that the file is capable of output
  20. You could use the C++ method: #include...

    You could use the C++ method:



    #include <fstream>
    using namespace std;
    ...
    ifstream in("InFilename", ios::in | ios::binary);
    ifstream out("OutFilename", ios::out | ios::binary);
    char ch;
  21. Replies
    11
    Views
    6,066

    I just thought - are you using exit() in a...

    I just thought - are you using exit() in a constructor - to leave your application? That will skip the associated destructors... you may need to do something in atexit.
  22. Replies
    25
    Views
    3,161

    I can only think that this must be a low-level,...

    I can only think that this must be a low-level, os-specific call... the worst case I can think of is that you have to capture the screen image and work from that and the absolute mouse position......
  23. Replies
    11
    Views
    6,066

    Hi - I am not clear on why you are using...

    Hi - I am not clear on why you are using 'Destroy' to delete the classes... why not simply use new and delete? The class destructor really should take care of cleaning up when it executes.
    If you...
  24. Thread: New to C++

    by michaels-r
    Replies
    10
    Views
    1,270

    I wonder if using std::endl instead of "\n" would...

    I wonder if using std::endl instead of "\n" would sort the problem out, as ti would cause the buffer to be flushed immediately.

    Michael
  25. I told you it was a bad hair day - remove the...

    I told you it was a bad hair day - remove the inline and everything works :-)

    Thanks for the help everyone.

    Michael.
Results 1 to 25 of 29
Page 1 of 2 1 2