* File > Journal Properties is really wacky now.
http://img390.imageshack.us/img390/6859/propertieshg1.jpg
My journal is one entry, 3 words "A new entry."
* Divorcing on calendar asks me...
Type: Posts; User: steve_demaio
* File > Journal Properties is really wacky now.
http://img390.imageshack.us/img390/6859/propertieshg1.jpg
My journal is one entry, 3 words "A new entry."
* Divorcing on calendar asks me...
Ahh, thank you. That's much clearer now. Here is one scenario though.
Take this function:
double Complex::realPart() const{
cout << *this << endl;
return rp;
}
What does *this mean, I haven't seen it before?
I just looked up mutable. Basically, anti-const.
I was reading my C++ book for class, but it didn't tell how, or why const was used in this case:
bool String:: operator!() const {
return length == 0;
}
Thanks!
No problem, I've had to do a number of programs where random values are necessary for my uni coursework so I've refined my approach quite a bit. Even though it is still very simple.
#include <iostream>
#include <ctime>
using namespace std;
int main() {
int a;
srand( time(0) ); // this seeds the rand function
a = 1 + rand() % 100; // modify as follows
...
Hehe, I abhor those types of errors, so simple yet alter the program totally.
Ahh, ok. Thanks!
Yeah, dunno why I hit an O. I'm still half asleep.
And it was helpful just because if for some reason the while loop didn't copy over the '\0' then it would insert a new '\0' at the end of the...
I have to copy one string from
const char s2[] to
char s1[]
All this is to be done without using the uber elite
<cstring> library. So no
strcpy(). This is to be done within a function,...
Thanks for the replies. I'll learn ASM after I get C++ finished off and perhaps Java.
Hmm, the way I thought it worked was the compiler takes the code down into machine code. And while the program itself may not recognize it is code. There is still recoverable code from the file...
Is there such a thing, I have a really ancient game that I'd like to decompile and see if I can't fix a few problems with it.
Anyone know where to get one?