November 12th, 2010 03:58 AM
Have you thought of using the string comparison operators?
November 10th, 2010 03:42 AM
Yup :)
If they get destroyed, then anything pointing to them will now be invalid.
November 10th, 2010 03: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...