Thank you Zach, will have a look at the GCC documentation and will look at those GUI thangs.
Type: Posts; User: DominicTrix
Thank you Zach, will have a look at the GCC documentation and will look at those GUI thangs.
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.
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...
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...
Sry for no reply, been busy. Thanks guys
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...
Hmmm, but surely any text written on one system and then opened in the other (with different char set will be displayed incorrectly?
Good guess Shakti :) Thankyou. And thanks Brain (using MSVC++ 6.0 to)
dt
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...
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...
brilliant, ty
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...
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
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
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...
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
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...
Brilliant thankyou (couldnt find it when I looked)
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
http://www.cplusplus.com/doc/tutorial/ another good'n, very clear.
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;
...
Thanks guys :)
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...
Ahhahhh, thankyou. So would this be right?
#file1
...
namespace myNameSpace
{
MyClass myObject(34);
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