Search:

Type: Posts; User: DominicTrix

Page 1 of 5 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    3
    Views
    1,410

    Thank you Zach, will have a look at the GCC...

    Thank you Zach, will have a look at the GCC documentation and will look at those GUI thangs.
  2. Replies
    14
    Views
    4,780

    Also, though I dont think this is what you have,...

    Also, though I dont think this is what you have, in your implementation make sure you dont have:



    ~SomeClass(); { }


    The semicolon would make it appear as another definition.
  3. Replies
    7
    Views
    1,007

    As pseudo code I cant see anything wrong with it....

    As pseudo code I cant see anything wrong with it. But were you thinking in terms of the actually coding and did you mean something like this (more readable and easier to edit):



    const int...
  4. Replies
    3
    Views
    1,410

    C++ and Macs

    Hi there, Im working on a project at the moment that, if possible, I want to make available for mac, linux and PC. So far I have just been coding the 'back-end' and have used no platform specific...
  5. Sry for no reply, been busy. Thanks guys

    Sry for no reply, been busy. Thanks guys
  6. reading and writing more than just chars to fstreams

    This is a common question for a noob I guess, but I don't seem to be able to find the answer anywhere.

    The question is:

    I wish to write a fixed sequence of ints, floats, strings etc. etc. to...
  7. Replies
    28
    Views
    3,407

    Hmmm, but surely any text written on one system...

    Hmmm, but surely any text written on one system and then opened in the other (with different char set will be displayed incorrectly?
  8. Replies
    4
    Views
    912

    Good guess Shakti :) Thankyou. And thanks Brain...

    Good guess Shakti :) Thankyou. And thanks Brain (using MSVC++ 6.0 to)

    dt
  9. Replies
    28
    Views
    3,407

    another thought... does it really matter if you...

    another thought... does it really matter if you overstep the alphabet in the encryption? the encrypted "string" is merely an array of integers and reversing the "algorithm" would give you correct...
  10. Replies
    4
    Views
    912

    string class

    hi there, probably a very dealt with subject but I cant find it anywhere.

    I found the rather useful string class while surfing the info super highway and the documentation said to simply #include...
  11. Replies
    4
    Views
    1,499

    brilliant, ty

    brilliant, ty
  12. Replies
    4
    Views
    1,499

    Oh really, well I stumbled across a pretty dirty...

    Oh really, well I stumbled across a pretty dirty method using the DOS command ATTRIB and using ::system("attrib -r \"filename.txt\"") etc. I'm using Windows XP and I'm hoping that'll work across all...
  13. Replies
    4
    Views
    1,499

    Read Only files

    A new headache:

    Is there any way to set the read-only property of a file from within one's program? Or indeed to write to a read only file?

    Help would be hugely appreciated


    dt
  14. Replies
    9
    Views
    2,566

    many thanks again, after not being able to find...

    many thanks again, after not being able to find f' all on stat() I eventually stumbled on _access(), which you can use on a file or directory. It's in io.h and works v nicely indeed.


    dt
  15. Replies
    9
    Views
    2,566

    lol, needed a "quick and easy" solution for a...

    lol, needed a "quick and easy" solution for a tiny program :p

    While your here, I've already spent long enuff finding the answer to this one;

    How can I check to see whether a directory exists or...
  16. Replies
    9
    Views
    2,566

    Well indeed nothing. But I had problems using my...

    Well indeed nothing. But I had problems using my CString object that contained the path string. I've just this minute discovered I needed to use ReleaseBuffer() on it. Doh

    tx for you help tho

    dt
  17. Replies
    9
    Views
    2,566

    ofstream and the default path

    Hi there I am using an ofstream object to write to files and I want to know if there is a method in which I can change the default path from the app location.

    i.e.

    My app is at C:\app\app.exe...
  18. Replies
    3
    Views
    1,045

    Brilliant thankyou (couldnt find it when I looked)

    Brilliant thankyou (couldnt find it when I looked)
  19. Replies
    3
    Views
    1,045

    String Table Question

    A quick question:

    Is there a maximum number of characters for a string in a string table or is that just a MSVC string editor constraint?

    Many thanks

    DT
  20. Replies
    5
    Views
    1,276

    http://www.cplusplus.com/doc/tutorial/ another...

    http://www.cplusplus.com/doc/tutorial/ another good'n, very clear.
  21. Replies
    15
    Views
    3,360

    If your going to use the hybrid (and I'm not sure...

    If your going to use the hybrid (and I'm not sure why you would), then why not use the yet again more efficient:



    return static_cast<float>(wins) / (float)(wins + losses) * 100;
    ...
  22. Replies
    6
    Views
    1,588

    Thanks guys :)

    Thanks guys :)
  23. Replies
    6
    Views
    1,588

    Having problems referring to the global in it's...

    Having problems referring to the global in it's namespace. If I use:



    using namespace myNameSpace;


    The compiler quite rightly doesn't recognise the namespace (as it's in the .cpp and not...
  24. Replies
    6
    Views
    1,588

    Ahhahhh, thankyou. So would this be right? ...

    Ahhahhh, thankyou. So would this be right?




    #file1
    ...
    namespace myNameSpace
    {
    MyClass myObject(34);
  25. Replies
    11
    Views
    1,484

    Well if it's code that's worked before I've no...

    Well if it's code that's worked before I've no idea. But if you have declared readme as a pointer you'd want:



    readMe->seekg(1).



    dt
Results 1 to 25 of 120
Page 1 of 5 1 2 3 4