 |
C++Talk.NET C++ language newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Adie Guest
|
Posted: Wed Jan 26, 2005 12:24 am Post subject: Dating |
|
|
Say i'm a pointer; a promiscuous one at that. And I have a girlfriend who's
a constant pain in the ass but I want to change her. I also have another
girlfriend who's constant but always changing and I want to make her
static. How would I do this?
Examples via code please.
|
|
| Back to top |
|
 |
Jonathan Turkanis Guest
|
Posted: Wed Jan 26, 2005 12:47 am Post subject: Re: Dating |
|
|
Adie wrote:
| Quote: | Say i'm a pointer; a promiscuous one at that. And I have a girlfriend
who's a constant pain in the ass but I want to change her. I also
have another girlfriend who's constant but always changing and I want
to make her static. How would I do this?
|
I see that your instructor hasn't followed the university sensitivity
guidelines.
Jonathan
|
|
| Back to top |
|
 |
alexmdac@hotmail.com Guest
|
Posted: Wed Jan 26, 2005 12:55 am Post subject: Re: Dating |
|
|
You can use const_cast to change your pointer. Beware though, going
through a core dump can be a painful experience.
Adie wrote:
| Quote: | Say i'm a pointer; a promiscuous one at that. And I have a girlfriend
who's
a constant pain in the ass but I want to change her. I also have
another
girlfriend who's constant but always changing and I want to make her
static. How would I do this?
Examples via code please.
|
|
|
| Back to top |
|
 |
Major_Small Guest
|
Posted: Wed Jan 26, 2005 12:02 pm Post subject: Re: Dating |
|
|
Adie wrote:
| Quote: | Say i'm a pointer; a promiscuous one at that. And I have a girlfriend
who's
a constant pain in the ass but I want to change her. I also have
another
girlfriend who's constant but always changing and I want to make her
static. How would I do this?
Examples via code please.
|
I'd say your problem is that you're only a pointer... even if you did
point to a girl, all you'd do is direct others to that girl... If I
were you, I'd define myself as a class with a pointer to another
(female) class, both derived from the same parent classes. that way,
you both are full human beings, and you are more than just a way to
contact the girl for others...
|
|
| Back to top |
|
 |
Adie Guest
|
Posted: Wed Jan 26, 2005 1:02 pm Post subject: Re: Dating |
|
|
Major_Small wrote:
| Quote: | Adie wrote:
Say i'm a pointer; a promiscuous one at that. And I have a girlfriend who's
a constant pain in the ass but I want to change her. I also have another
girlfriend who's constant but always changing and I want to make her
static. How would I do this?
Examples via code please.
I'd say your problem is that you're only a pointer... even if you did
point to a girl, all you'd do is direct others to that girl... If I
were you, I'd define myself as a class with a pointer to another
(female) class, both derived from the same parent classes. that way,
you both are full human beings, and you are more than just a way to
contact the girl for others...
|
Youre right, can I be a singleton as well? This infinite universe thing is
giving me an identity crisis.
|
|
| Back to top |
|
 |
Attila Feher Guest
|
Posted: Wed Jan 26, 2005 3:32 pm Post subject: Re: Dating |
|
|
Adie wrote:
[SNIP]
| Quote: | Youre right, can I be a singleton as well? This infinite universe
thing is giving me an identity crisis.
|
You can be anything you wanna be. As long as you have the right
citizenship.
--
Attila aka WW
|
|
| Back to top |
|
 |
Adie Guest
|
Posted: Wed Jan 26, 2005 4:32 pm Post subject: Re: Dating |
|
|
Attila Feher wrote:
| Quote: | Adie wrote:
[SNIP]
Youre right, can I be a singleton as well? This infinite universe
thing is giving me an identity crisis.
You can be anything you wanna be. As long as you have the right
citizenship.
|
Well like God, I'm an Englishmen, does that help?
|
|
| Back to top |
|
 |
Victor Bazarov Guest
|
Posted: Wed Jan 26, 2005 4:42 pm Post subject: Re: Dating |
|
|
Adie wrote:
| Quote: | Attila Feher wrote:
Adie wrote:
[SNIP]
Youre right, can I be a singleton as well? This infinite universe
thing is giving me an identity crisis.
You can be anything you wanna be. As long as you have the right
citizenship.
Well like God, I'm an Englishmen, does that help?
|
I think there is a contradiction in that statement. Or maybe not. Is
God plural (EnglishMEN)? I heard "We are the State" before. I heard,
"We, the Emperor" before. I never heard "I'm an Englishmen"...
|
|
| Back to top |
|
 |
Adie Guest
|
Posted: Wed Jan 26, 2005 6:14 pm Post subject: Re: Dating |
|
|
Victor Bazarov wrote:
| Quote: | Adie wrote:
Attila Feher wrote:
Adie wrote:
[SNIP]
Youre right, can I be a singleton as well? This infinite universe
thing is giving me an identity crisis.
You can be anything you wanna be. As long as you have the right
citizenship.
Well like God, I'm an Englishmen, does that help?
I think there is a contradiction in that statement. Or maybe not. Is
God plural (EnglishMEN)? I heard "We are the State" before. I heard,
"We, the Emperor" before. I never heard "I'm an Englishmen"...
|
Vic, me old mucker, I think you'll find there's provision for 'Englishman'
or 'Englishmen' in the C++ standard, therefore will you please take your OT
babble to alt.english.usage where it may or may not be found to be
interesting - I'm betting on the latter.
|
|
| Back to top |
|
 |
Victor Bazarov Guest
|
Posted: Wed Jan 26, 2005 6:24 pm Post subject: Re: Dating |
|
|
Adie wrote:
| Quote: | [...]
Vic, me old mucker, I think you'll find there's provision for 'Englishman'
or 'Englishmen' in the C++ standard, therefore will you please take your OT
babble to alt.english.usage where it may or may not be found to be
interesting - I'm betting on the latter.
|
*MY* OT babble?
|
|
| Back to top |
|
 |
Mike Wahler Guest
|
Posted: Wed Jan 26, 2005 7:05 pm Post subject: Re: Dating |
|
|
"Victor Bazarov" <v.Abazarov (AT) comAcast (DOT) net> wrote
| Quote: | Adie wrote:
Attila Feher wrote:
Adie wrote:
[SNIP]
Youre right, can I be a singleton as well? This infinite universe
thing is giving me an identity crisis.
You can be anything you wanna be. As long as you have the right
citizenship.
Well like God, I'm an Englishmen, does that help?
I think there is a contradiction in that statement. Or maybe not. Is
God plural (EnglishMEN)? I heard "We are the State" before. I heard,
"We, the Emperor" before. I never heard "I'm an Englishmen"...
|
I've heard a rumor that a certain Queen once uttered:
"We are not amused." Perhaps she was simply a schizophrenic,
or maybe there's some property of the English folk of which
I'm unaware.
:-)
-Mike
|
|
| Back to top |
|
 |
Mike Wahler Guest
|
Posted: Wed Jan 26, 2005 7:10 pm Post subject: Re: Dating |
|
|
"Mike Wahler" <mkwahler (AT) mkwahler (DOT) net> wrote
| Quote: |
"Victor Bazarov" <v.Abazarov (AT) comAcast (DOT) net> wrote in message
news:ZLPJd.39126$NC6.38505 (AT) newsread1 (DOT) mlpsca01.us.to.verio.net...
Adie wrote:
Attila Feher wrote:
Adie wrote:
[SNIP]
Youre right, can I be a singleton as well? This infinite universe
thing is giving me an identity crisis.
You can be anything you wanna be. As long as you have the right
citizenship.
Well like God, I'm an Englishmen, does that help?
I think there is a contradiction in that statement. Or maybe not. Is
God plural (EnglishMEN)? I heard "We are the State" before. I heard,
"We, the Emperor" before. I never heard "I'm an Englishmen"...
I've heard a rumor that a certain Queen once uttered:
"We are not amused." Perhaps she was simply a schizophrenic,
or maybe there's some property of the English folk of which
I'm unaware.
:-)
|
Hmm, was Alice (of "Looking Glass" fame) an Englishwoman?
That might explain this issue of 'self-image'.
But C++ doesn't have 'reflection', so I guess I'm OT now.
:-)
-Mike
|
|
| Back to top |
|
 |
Adie Guest
|
Posted: Wed Jan 26, 2005 8:30 pm Post subject: Re: Dating |
|
|
Victor Bazarov wrote:
| Quote: | Adie wrote:
[...]
Vic, me old mucker, I think you'll find there's provision for 'Englishman'
or 'Englishmen' in the C++ standard, therefore will you please take your OT
babble to alt.english.usage where it may or may not be found to be
interesting - I'm betting on the latter.
*MY* OT babble?
|
cout<<"Sorry Vic, this group's topic is C++, therefore please cease and
desist from usage of any language other than C++.n";
cout<<"THAT MEANS NO MORE ENGLISH FROM YOU!n";
|
|
| Back to top |
|
 |
Victor Bazarov Guest
|
Posted: Wed Jan 26, 2005 9:01 pm Post subject: Re: Dating |
|
|
Adie wrote:
| Quote: | Victor Bazarov wrote:
Adie wrote:
[...]
Vic, me old mucker, I think you'll find there's provision for 'Englishman'
or 'Englishmen' in the C++ standard, therefore will you please take your OT
babble to alt.english.usage where it may or may not be found to be
interesting - I'm betting on the latter.
*MY* OT babble?
cout<<"Sorry Vic, this group's topic is C++, therefore please cease and
desist from usage of any language other than C++.n";
|
Error: newline in string literal.
| Quote: | cout<<"THAT MEANS NO MORE ENGLISH FROM YOU!n";
|
|
|
| Back to top |
|
 |
Adie Guest
|
Posted: Wed Jan 26, 2005 10:00 pm Post subject: Re: Dating |
|
|
Victor Bazarov wrote:
| Quote: | Adie wrote:
Victor Bazarov wrote:
Adie wrote:
[...]
Vic, me old mucker, I think you'll find there's provision for 'Englishman'
or 'Englishmen' in the C++ standard, therefore will you please take your OT
babble to alt.english.usage where it may or may not be found to be
interesting - I'm betting on the latter.
*MY* OT babble?
cout<<"Sorry Vic, this group's topic is C++, therefore please cease and
desist from usage of any language other than C++.n";
Error: newline in string literal.
|
#include "stdafx.h"
int main()
{
std::cout<<"vic, don't be an arsen";
return 0;
}
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|