Once again, I've done all of these things... well, hand is an array, not a class because I'm too lazy, but... yeah.
What I want is someone to shed light on how I might determine the value of a...
Type: Posts; User: 809AreaCode
Once again, I've done all of these things... well, hand is an array, not a class because I'm too lazy, but... yeah.
What I want is someone to shed light on how I might determine the value of a...
Yep, it all has to do with virtual methods. Since your vtable points to B::yay(), you get a "1" when you call valp->yay(). This is just the nature of polymorphism.
If you want to call A's yay(),...
I've already created a main function and set retVal to a null filled string. The whole thing works as expected.
cCompare accepts pointers... I guess because I just felt like using pointers. It's...
Well... here I am, making a Card class, thinking I'll make yet another useless poker game or something. Making a card class is easy. Just put a couple of variables in there, some accessors, and throw...
Not a question, just thought I would share it. I've been using C for cgi programming for a while, I'm just now getting a real grip on C++. Anyway, I'm working on a "page" class, with methods that...
Thanks for the speedy answer. It works!
Having trouble reading from STDIN using fread(). The environment variable CONTENT_LENGTH is used to tell the program the length of the input in bytes. I can use atoi(getenv("CONTENT_LENGTH")) just...
Actually, I forgot to mention... struct ord was rewritten:
struct ord{
char dan[512];
}ords[ORDNUMMER]; //no eng words here for simplicity
Hey, I'm trying to write a program that teaches you basic Danish vocabulary. Anyway, I originally had an array of structs with const chars for the dan word and eng word like so...
struct ord{...