Search:
Type: Posts; User: seventhirty
Search:
Search took 0.05 seconds.
-
You're right, I still don't have that habit..
So you're saying that a comment inside the class body, listing all the nonmember functions will suffice ?
This example is kind of short, but what about...
-
Hello everybody
I am writing a Vector3D class( like you've never seen that one before.. : ) ) and I am providing it with some overloaded operators.
class Vector3D
{
public:
-
November 24th, 2009, 03:58 PM
thanks a lot for the replies : )
-
November 24th, 2009, 02:51 PM
Hello, everybody : )
Is there something wrong with two functions calling each other untill one of them calls exit() or some similarto exit function?
example 1:
#include <iostream>
void...
-
November 20th, 2009, 05:15 PM
Hello everybody : )
I have a question about defining a conversion operator. Everywhere I look, there's an example of operator int() and I can't quite figure it out how it works for more complex...
-
November 15th, 2009, 11:27 AM
I'm not sure how to answer your first question.. generally, you should try to avoid using global variables..
It doesn't matter. You can use them both. Structs are basically classes.
There...
-
November 12th, 2009, 08:18 AM
Hello, everybody! : )
I have a question regarding a using declaration inside a body of a derived class.
I tried compiling the following, thinking that it would result in a compile-time error, but...
-
September 21st, 2009, 09:03 AM
Yeah! : )
10x
Ok, I have another question on the same topic:
"If we provide no element initializers for an array of class type, then the default constructor is used to initialize each element....
-
September 21st, 2009, 07:53 AM
Hi everybody! : )
I'm having a hard time answering an exercise question from "C++ Primer 4th ed.", here it is:
Exercise 13.2: The second initialization below fails to compile. What can we infer...
-
July 24th, 2009, 09:35 AM
Thanks for the answers.
Lindley, if I use the second approach that you mention, the one with the function getInstance, does that mean that everytime the user of the class wants to use some...
-
July 23rd, 2009, 06:11 AM
Hi : )
Last night a had a really hard time trying to understand the singleton pattern for a class which has a data member, with the same type as the class itself:
class Singleton
{
public:
-
July 19th, 2009, 10:15 AM
thanks again, things are starting to become clearer. : )
-
July 19th, 2009, 08:44 AM
thanks : )
Just to make sure I got it right :
virtual declaration in the base class matters only when calling the virtual function through a pointer or reference to an object ( no matter if...
-
July 19th, 2009, 07:13 AM
Yes I read this just before posting..and in the book i'm reading and in several other articles.. It's all the same..
please tell me in the code above, am I overloading the function or redefining...
-
July 19th, 2009, 06:54 AM
Hi everybody : )
I have a C++ theory question:
The purpose of a virtual function of a given class is to let the derived class to be able to redefine it right?
I've tried something here:
...
-
thanks a lot, removed the using declaration and added the std:: prefix and now it compiles.. didn't know that using declarations in a .h file is not a good idea..
what you mentioned about...
-
hi everybody : )
I am trying to create a music sampling application with VC++ 6.0 and SDL, but I have a strange issue in designing one of the classes. here's my header file code:
#include...
-
April 9th, 2009, 04:40 AM
Thanks a lot to you all, your answers were very helpful : )
To make sure i got it right:
When I substract two pointers, the expression yields the distance between them, but when I substract or...
-
April 8th, 2009, 02:27 PM
Ok , so:
1. As it is written in the book I'm reading on C++ - Primer 4th edition the division operator / has a higher precedence than the remainder operator %.
So if I write the expression
...
-
January 9th, 2009, 09:08 AM
Hi
I have two questions that are not answered in the book I'm learning c++ from:
1. Is it a good idea everytime when I define a class to put all its methods in its body (inline), including the...
-
January 7th, 2009, 06:22 PM
I found it after reading more carefully.. (please excuse me for not doing it before posting...)
It's not double buffering (it is a concern only for applications in full screen mode), its the lack...
-
December 24th, 2008, 08:26 AM
Hi code gurus!
I'm currentlu trying to make a tetris game, using MS Visual C++ 6.0 and SDL. My OS is Windows XP. I'm reading "Accelerated C++ " by Koeing and "Focus on SDL" by Pazera (both really...
-
November 11th, 2008, 01:23 PM
when i create a program that outputs a lot of lines i cannot see them all in the console..
cin >> R;
for (int x = -R; x <=R ; x++)
for (int y=-R; y<=R; y++)
if ( sqrt(x*x + y*y)...
-
November 8th, 2008, 06:41 AM
thanks for the advice, i was ablo to execute the program when i made the matrix smaller..
now it does nothing after i input a number...
maybe i'll stab myself now.. or start learning.. will...
-
November 8th, 2008, 06:16 AM
In MS Visual Studio 6:
Build >> Start Debug >> Go" is that what you are talking about? it says : ".. stack overflow"
|
Click Here to Expand Forum to Full Width
|