Search:
Type: Posts; User: sbrothy
Search:
Search took 0.22 seconds.
-
October 16th, 2003, 05:59 AM
If this is an assignment it is conceivable that your instructor hides from you the fact that you shouldn't derive from std::list. The easy way, as you have already discovered, is doing it anyway and...
-
October 16th, 2003, 04:45 AM
The concept of containment is simply that you include the class you would normally derive from as a member of the new class.
Hence:
The class A:
class A {
public:
int foo() const {...
-
October 16th, 2003, 03:52 AM
You're not deriving from std::list are you? If you are see this thread:
STL and derivation
Anyway, you could use containment:
class MyList
{
-
October 15th, 2003, 06:45 AM
It seems to me you're moving into muddy waters here. You store myObjs in a list and then make the individual objects responsible for deleting themselves and eachother from that list. I think there's...
-
October 14th, 2003, 05:13 AM
Here is a picture of a black hole:
Black Hole
-
October 14th, 2003, 05:09 AM
Your problem is that CompareName :: operator() takes as it's argument a const reference to a myObj and your myObj::getObjectName() method is not declared as const. Try changing it's signature to:
...
-
October 13th, 2003, 09:32 AM
This thread makes me nostalgic. I remember my first "computer" (sob!). A wonderful machine. Hacker's choice anno 1983:
MSX Toshiba HX-22.
-
October 13th, 2003, 07:45 AM
It seems the gluProject method maps object coordinates to window coordinates. It's C declaration is:
GLint gluProject ( GLdouble objX , GLdouble objY , GLdouble objZ , const GLdouble *model...
-
October 13th, 2003, 05:42 AM
I'm not sure what you're trying to accomplish, but you declare
SWinCoorX = new double [10000];
and then continually use this pointer a a an argument to the gluProject method. Altough it...
-
October 12th, 2003, 08:19 AM
Did you try std::string::c_str() method:
#include <cstdlib>
#include <string>
#include <iostream>
using namespace std;
-
September 19th, 2003, 05:49 AM
Check out ZLIB. It can compress data in-memory. The homepage has DLLs you can download.
-
September 9th, 2003, 08:36 AM
I know the following information is in italian and from an one of USENET more esoteric newsgroups, but the english information in there may provide you with a clue. I cannot gauge the validity of the...
-
September 9th, 2003, 05:57 AM
Uubz, I misread. Not qiote the same problem. Sorry.
-
September 9th, 2003, 05:56 AM
Seems this problem has been addressed before:
http://www.codeguru.com/forum/showthread.php?threadid=255351
-
July 18th, 2003, 04:55 AM
Try here:
http://www.codeproject.com/directx/Tetris.asp
-
July 18th, 2003, 04:45 AM
You should always check return codes. If GetOpenFileName returns FALSE you can obtain error information through:
DWORD CommDlgExtendedError(VOID).
It look suspicous that you set...
-
July 10th, 2003, 05:15 AM
I think the START command under Windows might help you especially the /B switch. Do:
start /?"
in a console to check it out.
If that doesn't satisfy you can write a simple launch program...
-
Why do you want to put your std::strings into an array? Why not use one of the STL container classes? Anyway, declaration number one will probably do the trick:
std::string ar[2];
...
-
I think you will have to post your code. Specifially, it would be interesting to know what you actually do to those poor CString instances :-). At a glance, it looks like your program crashes when...
-
Xeon said:
Now that is scary! Xeon with a sidekick?!
-
This should be fairly standard:
#include <sstream>
#include <algorithm>
#include <iostream>
template <class X> class K
{
-
Hi there! Just my two cents:
I think you could benefit from structuring your program better instead of just writing it as one big function. "Divide and conquer" as they say" :-). In other words:...
-
April 4th, 2003, 12:56 AM
Try
cd "Program Files"
or if there are no other folders starting with program you might try:
cd Program*
rgds,
S. Bro
-
March 12th, 2003, 06:24 AM
Use "%lf" as the format control string for fscanf as in:
[...]
double d;
fscanf(yourstream, "%lf", &d);
[...]
-
February 19th, 2003, 03:58 AM
Check out Microsoft's "Speech API" (SAPI) at http://www.microsoft.com/speech/
As far as I remember t's free and it enables you, amongst other things, to treat your computer as a dictaphone and...
|
Click Here to Expand Forum to Full Width
|