pcWife = (CWife *)pcFiancee;
-
Sian and I will be running the following this weekend: pcWife = (CWife *)pcFiancee; :rose: Any wise advice from fellow CP folks? :laugh: S
Sorry to bother you, but what does c mean in pcWife? I usually have it for copy pointers, so I got a bit shocked when I started thinking you were not monogam.:eek:
sometimes it helps to look at the IL generated code a MS guy on develop.com "answering" .NET issues
-
Congratulations. I holidayed in Boston several years back, so this is a tad out of date, but I really enjoyed going to the Museum of Fine Arts (or the MFA as it gets called). Some great Monets and a lovely place. Depends on your tastes of course. Also, the Faneuil (sp?) market is well worth a visit. Note: I was a tourist, so these may well be tourist-y places and the locals may come up with some alternatives, but I did enjoy both those places. Another tip: remember that your wife is *not* to be compared to a class instantiation and treat her like a human being, won't you??? :-O Contrary to what some people on this notice board may think we are actually of the same species... Debbie
-
Sian and I will be running the following this weekend: pcWife = (CWife *)pcFiancee; :rose: Any wise advice from fellow CP folks? :laugh: S
Congrats Sam and Sian! :rose: Sam Woodward wrote: Any wise advice from fellow CP folks? I wonder if you could get your vicar/etc to read special "geek" vows? Can anyone come up with some good ones using casting, pointers, and all that? ;P
David Wulff http://www.davidwulff.co.uk
Pro wrestling is entertainment for the unentertained unentertainable.
-
We will be honeymooning in New England. Is anyone here from the Boston area and if so can you recommend any "don't leave without seeing xyz..." type of things please? Thanks, S
Being from Connecticut, I get to Boston quite frequenttly. It's only an hour and a half drive for me. Here are a couple of things you should see. Touristy yes...but fun nonetheless. 1. Faneuil Hall (great place to get different kinds of food. It's like a food court on steroids) 2. Boston Aquarium 3. Museum of Science (lots of interactive exhibits) 4. Computer Museum (they have some really cool old computer stuff) 5. MIT 6. Harvard and Harvard Square 7. Cheers 8. Old North Church (actually, you can do the whole tour of the Revolutionary War era Boston. They have lines painted on the streets so you can follow them and see the sights). This should give you some things to do. Brigg Thorp Software Engineer Timex Corporation
-
Sorry to bother you, but what does c mean in pcWife? I usually have it for copy pointers, so I got a bit shocked when I started thinking you were not monogam.:eek:
sometimes it helps to look at the IL generated code a MS guy on develop.com "answering" .NET issues
I suspect everyone has their own querks and habits when it comes to naming. As for me, I use 'p' for pointer, 'c' for class (and then i for ints, etc. etc... ok so that breaks down with pointers to chars but...) Thus is my code: int *piVal; // would be a pointer to an int CString cName; // would be not be a pointer to a string! CWife *pcWife; // would be a pointer to an instance of class 'CWife' If I had a pointer to a pointer to a class it would be 'ppc' etc. I find that not only does this help with knowing the type of a variable, but also keeps them grouped more halpefully in the Class/Memebrs pane in VisualStudio. S
-
Sorry to bother you, but what does c mean in pcWife? I usually have it for copy pointers, so I got a bit shocked when I started thinking you were not monogam.:eek:
sometimes it helps to look at the IL generated code a MS guy on develop.com "answering" .NET issues
I suspect everyone has their own querks and habits when it comes to naming. As for me, I use 'p' for pointer, 'c' for class (and then i for ints, etc. etc... ok so that breaks down with pointers to chars but...) Thus is my code: int *piVal; // would be a pointer to an int CString cName; // would be not be a pointer to a string! CWife *pcWife; // would be a pointer to an instance of class 'CWife' If I had a pointer to a pointer to a class it would be 'ppc' etc. I find that not only does this help with knowing the type of a variable, but also keeps them grouped more helpfully in the Class/Memebrs pane in VisualStudio. S
-
We will be honeymooning in New England. Is anyone here from the Boston area and if so can you recommend any "don't leave without seeing xyz..." type of things please? Thanks, S
Sam Woodward wrote: Is anyone here from the Boston area and if so can you recommend any "don't leave without seeing xyz..." type of things please? I'm not from Boston (Sydney Australian actually) but visited head office in Cambridge in 1999 when I had a job. I recommend the Sunset Grill and Tap[^]. 112 beers on tap and 400 other beers available in bottles. What more can you ask for? Michael Martin Australia mjm68@tpg.com.au "I personally love it because I can get as down and dirty as I want on the backend, while also being able to dabble with fun scripting and presentation games on the front end." - Chris Maunder 15/07/2002
-
I suspect everyone has their own querks and habits when it comes to naming. As for me, I use 'p' for pointer, 'c' for class (and then i for ints, etc. etc... ok so that breaks down with pointers to chars but...) Thus is my code: int *piVal; // would be a pointer to an int CString cName; // would be not be a pointer to a string! CWife *pcWife; // would be a pointer to an instance of class 'CWife' If I had a pointer to a pointer to a class it would be 'ppc' etc. I find that not only does this help with knowing the type of a variable, but also keeps them grouped more helpfully in the Class/Memebrs pane in VisualStudio. S
Your naming convention seems real similar to mine. But I use a c_ for class and ch for characters and only Cstr for CString. I thin the big rhing is consistency of names though. Regardz Colin J Davies
Sonork ID 100.9197:Colin
You are the intrepid one, always willing to leap into the fray! A serious character flaw, I might add, but entertaining. Said by Roger Wright about me.
-
Congrats Sam and Sian! :rose: Sam Woodward wrote: Any wise advice from fellow CP folks? I wonder if you could get your vicar/etc to read special "geek" vows? Can anyone come up with some good ones using casting, pointers, and all that? ;P
David Wulff http://www.davidwulff.co.uk
Pro wrestling is entertainment for the unentertained unentertainable.
The obvious one do { sex --; love ++; }while(death_us_do_part) Michael "Time and tide melts the snowman." -- The Doctor (Doctor Who: Time and the Rani
-
I suspect everyone has their own querks and habits when it comes to naming. As for me, I use 'p' for pointer, 'c' for class (and then i for ints, etc. etc... ok so that breaks down with pointers to chars but...) Thus is my code: int *piVal; // would be a pointer to an int CString cName; // would be not be a pointer to a string! CWife *pcWife; // would be a pointer to an instance of class 'CWife' If I had a pointer to a pointer to a class it would be 'ppc' etc. I find that not only does this help with knowing the type of a variable, but also keeps them grouped more helpfully in the Class/Memebrs pane in VisualStudio. S
Your naming convention seems real similar to mine. But I use a c_ for class and ch for characters and only Cstr for CString. I thin the big thing is consistency of names though. Regardz Colin J Davies
Sonork ID 100.9197:Colin
You are the intrepid one, always willing to leap into the fray! A serious character flaw, I might add, but entertaining. Said by Roger Wright about me.
-
surely the full algorithm is pcWife = (CWife*)pcFiancee; pcWife->Balance += pcHusband->Balance; pcHusband->Balance = 0; :)
Stupidity dies. The end of future offspring. Evolution wins. - A Darwin Awards Haiku
Of course, if you don't do this check first, if (IsValidPtr(pcWife, CWife)) { ... } then you'll experience symptoms of pcWife occasionally going wild and vectoring off into unreasonable territory. At such times, a fault is imminent, and it will always be yours. :-D Chistopher Duncan Author - The Career Programmer: Guerilla Tactics for an Imperfect World (Apress)
-
Congratulations. I holidayed in Boston several years back, so this is a tad out of date, but I really enjoyed going to the Museum of Fine Arts (or the MFA as it gets called). Some great Monets and a lovely place. Depends on your tastes of course. Also, the Faneuil (sp?) market is well worth a visit. Note: I was a tourist, so these may well be tourist-y places and the locals may come up with some alternatives, but I did enjoy both those places. Another tip: remember that your wife is *not* to be compared to a class instantiation and treat her like a human being, won't you??? :-O Contrary to what some people on this notice board may think we are actually of the same species... Debbie
-
I suspect everyone has their own querks and habits when it comes to naming. As for me, I use 'p' for pointer, 'c' for class (and then i for ints, etc. etc... ok so that breaks down with pointers to chars but...) Thus is my code: int *piVal; // would be a pointer to an int CString cName; // would be not be a pointer to a string! CWife *pcWife; // would be a pointer to an instance of class 'CWife' If I had a pointer to a pointer to a class it would be 'ppc' etc. I find that not only does this help with knowing the type of a variable, but also keeps them grouped more helpfully in the Class/Memebrs pane in VisualStudio. S
I have the same naming habits as yours, except for strings. When I use String objects I prefix with "str", and when using character arrays I prefix by "lpsz" So I came to find To end up this way Feeling like I'm God Feeling there's no way KoRn
-
Michael P Butler wrote: do { sex --; love ++; }while(death_us_do_part) ummmmm surely that last line is: }while(!death_do_us_part) unless theres something ur not telling us :)
"... and so i said to him ... if it don't dance (or code) and you can't eat it either f**k it or throw it away"
biz stuff about meBugs are everywhere :) So I came to find To end up this way Feeling like I'm God Feeling there's no way KoRn
-
The obvious one do { sex --; love ++; }while(death_us_do_part) Michael "Time and tide melts the snowman." -- The Doctor (Doctor Who: Time and the Rani
Michael P Butler wrote: do { sex --; love ++; }while(death_us_do_part) ummmmm surely that last line is: }while(!death_do_us_part) unless theres something ur not telling us :)
"... and so i said to him ... if it don't dance (or code) and you can't eat it either f**k it or throw it away"
biz stuff about me -
Michael P Butler wrote: do { sex --; love ++; }while(death_us_do_part) ummmmm surely that last line is: }while(!death_do_us_part) unless theres something ur not telling us :)
"... and so i said to him ... if it don't dance (or code) and you can't eat it either f**k it or throw it away"
biz stuff about meThanks for the code review. :-O I can't code for shit without a debugger to hand :-D Michael "Time and tide melts the snowman." -- The Doctor (Doctor Who: Time and the Rani
-
Sian and I will be running the following this weekend: pcWife = (CWife *)pcFiancee; :rose: Any wise advice from fellow CP folks? :laugh: S
delete pcWife; ASSERT( pcWife ); Congradulations :-D --------------- Concentrating on Ideas http://www.edovia.com
-
I believe the other thing that is likely to happen to you soon is this->sexLife = NULL; Christian Hey, at least Logo had, at it's inception, a mechanical turtle. VB has always lacked even that... - Shog9 04-09-2002 During last 10 years, with invention of VB and similar programming environments, every ill-educated moron became able to develop software. - Alex E. - 12-Sept-2002
I don't follow your logic here. He'll be able to get some every now and then! He won't get a wide variety, but it is sex. :) -- Giles wrote: You Scandinavians invaded my home land, like 1500 (+-500) years ago, and kept coming back for more. You should be ashamed of yourselves. Viking Tour, England, 15th July 563. Ticket price: £10 Sold out!
-
Michael P Butler wrote: do { sex --; love ++; }while(death_us_do_part) ummmmm surely that last line is: }while(!death_do_us_part) unless theres something ur not telling us :)
"... and so i said to him ... if it don't dance (or code) and you can't eat it either f**k it or throw it away"
biz stuff about meYou should have some Sleep(28800) in the loop; otherwise the 'sex' variable will quickly go into negative area :) Tomasz Sowinski -- http://www.shooltz.com
*** Si fractum non sit, noli id reficere. ***
-
delete pcWife; ASSERT( pcWife ); Congradulations :-D --------------- Concentrating on Ideas http://www.edovia.com
VERIFY, not ASSERT. After all, they shouldn't spend their lives in debug configuration :) Tomasz Sowinski -- http://www.shooltz.com
*** Si fractum non sit, noli id reficere. ***