Search:
Type: Posts; User: TheRogue
Search:
Search took 0.07 seconds.
-
November 12th, 2010, 04:58 AM
Have you thought of using the string comparison operators?
-
November 10th, 2010, 04:42 AM
Yup :)
If they get destroyed, then anything pointing to them will now be invalid.
-
November 10th, 2010, 04:16 AM
TColl::TColl ()
{
_TOccV<DBE> *p;
TOcc1 s1;
p = &s1;
_list.push_back(p);
TOcc2 s2;
-
November 3rd, 2010, 09:34 AM
Its because you are trying to instantiate an object of type A.
A is an abstract class, so cannot be instantiated.
-
November 3rd, 2010, 09:07 AM
What about making Fast_String contain String instead, even going so far as to use pimpl ?
All changes would then be via calls to Fast_String and thus len could be maintained.
edit: not strictly...
-
November 2nd, 2010, 03:44 AM
Is the header that defines "ICommDlgBrowser2" included ?
-
October 29th, 2010, 02:30 AM
I would suggest you go with the string for all "strings".
use #include <string> //string.h isn't a C++ header.
then use std::string (string is part of the std namespace)
std::string...
-
October 27th, 2010, 10:22 AM
Wouldn't it be easier to pass a reference to stuff into the object requiring access to stuff ?
I think the address of a reference the same as the address of what it refers to - if so, would this...
-
October 26th, 2010, 03:04 AM
-
October 25th, 2010, 11:12 AM
You still have two main() functions.
-
October 25th, 2010, 05:10 AM
3.9.1 lists "int" as one of the five standard signed integer types.
-
October 25th, 2010, 04:12 AM
I've seen compilers that offer "default char to unsigned" as an option, but I havent seen "int to unsigned".
-
October 22nd, 2010, 03:38 AM
You should probably read the "choice" before switching on it, rather than reading after you have switched.
-
September 20th, 2010, 06:28 AM
A Singleton is unique to a process.
You need pay special attention if you have a multithreaded envirnoment, see the section Singleton_pattern - Implementation
-
September 20th, 2010, 04:46 AM
You should have a look at the Singleton Pattern.
-
September 17th, 2010, 06:04 AM
'O' 'n' 'e' '/0' == 4 * char
'T' 'w' 'o' '/0' == 4 * char
Each comma is separating an array of characters.
could be written as
char name[] = "Sam" ;
-
September 17th, 2010, 05:58 AM
Would something like this be what you're looking for ?
template< typename T >
class base {
protected:
static T the_data ;
} ;
-
August 26th, 2010, 02:25 AM
References need to be initialised in the constructor for their containing class.
-
August 20th, 2010, 05:20 AM
if (URL_Mine->ReadyState == WebBrowserReadyState::Loaded) {
if (URL_Mine->ReadyState == WebBrowserReadyState::Loading) {
this->URL_Mine->Visible = false;
} else {
...
-
August 16th, 2010, 02:31 AM
There are going to be many ways to do this :)
I would suggest you change your cards from an int to a class that has a member variable indicating which player owns it.
You would then only need one...
-
July 31st, 2010, 04:42 AM
Looks like Ref and ArrayRef are templates.
The code is createing variables based on the indicated types.
-
a quick google come up with this.
-
It is made private so you can't copy it.
As Lindley said, there is no sense in having two ostreams.
What use would there be in having two items doing the same job ?
How would they sort out which...
-
June 28th, 2010, 07:26 AM
Objects are constructed in the order they are declared, so could you do:
Game() : computerPlayer(theBoard) {
}
Or alternatively, have an initialisation function that takes a Board ?
-
June 17th, 2010, 03:30 AM
You might want to remove the cin.get() - its eating your first character.
|
Click Here to Expand Forum to Full Width
|