First of all, I would like to ask if anyone knows a decent site that explains operator overloading pretty well. It's a very confusing topic.. I can't seem to understand. And there seems to be...
Type: Posts; User: Excalibur XP
First of all, I would like to ask if anyone knows a decent site that explains operator overloading pretty well. It's a very confusing topic.. I can't seem to understand. And there seems to be...
Thanks guys.. I'm still really bad at Classes, since I learned them about 5 days ago.
And my book is useless... the author has a hard time explaining C++ in "simple" terms. Thats why we never...
Ok.. yet another homework.. hope I'm not bugging you guys out too much.
"Make a program that processes computer orders. There are two ways computers can be ordered. Either in 3 packages (A, B,...
Thanks Hammer, that really helps a lot.
Me and my stupid errors. :)
Well, now I can finally get some well needed Zzz..
I got this far..
#include<iostream.h>
I have a more specific question... How am I suppose to use the bool isOpen() to determine if the combo is correct or not if bool isOpen() does not accept any input?
Ugh so confused.. here's my attempt.
class Lock
{
public:
void setCode(int newCode);
void dialCode(int combo);
bool isOpen();
I'm confused.. here's the homework;
Note: all of this has to be done in classes.
Part I
Define the class Lock. The data members should be private so that the codes may only be altered via the...