Old 11-16-2007, 10:28 AM #17
Class 3R Laser
 
Join Date: May 2007
Posts: 2,277
Rep Power: 11780
Daedal has a reputation beyond reputeDaedal has a reputation beyond reputeDaedal has a reputation beyond reputeDaedal has a reputation beyond reputeDaedal has a reputation beyond reputeDaedal has a reputation beyond reputeDaedal has a reputation beyond reputeDaedal has a reputation beyond reputeDaedal has a reputation beyond reputeDaedal has a reputation beyond reputeDaedal has a reputation beyond repute
Daedal Daedal is offline
Class 3R Laser
 
Join Date: May 2007
Posts: 2,277
Rep Power: 11780
Daedal has a reputation beyond reputeDaedal has a reputation beyond reputeDaedal has a reputation beyond reputeDaedal has a reputation beyond reputeDaedal has a reputation beyond reputeDaedal has a reputation beyond reputeDaedal has a reputation beyond reputeDaedal has a reputation beyond reputeDaedal has a reputation beyond reputeDaedal has a reputation beyond reputeDaedal has a reputation beyond repute
Default Re: C++

Here's my source for C++...
http://www.cplusplus.com/

I've long ago stopped thinking in C++, I'm more into PHP and C# now though.

GL;
DDL


__________________
____________________________________________
Daedal Lasers... NEW LOWER PRICES... LPF Coupon = LPF10OFF
________________________________
CLICK ME -- LASORB is now available for immediate purchase
________________________________
Daedal is offline   Reply With Quote


















Old 11-16-2007, 10:41 AM #18
Class 3R Laser
 
Join Date: May 2007
Posts: 2,277
Rep Power: 11780
Daedal has a reputation beyond reputeDaedal has a reputation beyond reputeDaedal has a reputation beyond reputeDaedal has a reputation beyond reputeDaedal has a reputation beyond reputeDaedal has a reputation beyond reputeDaedal has a reputation beyond reputeDaedal has a reputation beyond reputeDaedal has a reputation beyond reputeDaedal has a reputation beyond reputeDaedal has a reputation beyond repute
Daedal Daedal is offline
Class 3R Laser
 
Join Date: May 2007
Posts: 2,277
Rep Power: 11780
Daedal has a reputation beyond reputeDaedal has a reputation beyond reputeDaedal has a reputation beyond reputeDaedal has a reputation beyond reputeDaedal has a reputation beyond reputeDaedal has a reputation beyond reputeDaedal has a reputation beyond reputeDaedal has a reputation beyond reputeDaedal has a reputation beyond reputeDaedal has a reputation beyond reputeDaedal has a reputation beyond repute
Default Re: C++

Have you tried using size_type variables instead of int? I know that it may cause problems sometimes depending on the compiler...

std::string temp = b;
std::string::size_type index = temp.find("hello",0);

while(index != std::string::npos)
{
temp.replace(index, 5, "hi", 2);
index = temp.find("hello",index);
}

GL;
DDL
__________________
____________________________________________
Daedal Lasers... NEW LOWER PRICES... LPF Coupon = LPF10OFF
________________________________
CLICK ME -- LASORB is now available for immediate purchase
________________________________
Daedal is offline   Reply With Quote
Old 11-16-2007, 10:45 AM #19
Class 3R Laser
 
Join Date: May 2007
Posts: 2,277
Rep Power: 11780
Daedal has a reputation beyond reputeDaedal has a reputation beyond reputeDaedal has a reputation beyond reputeDaedal has a reputation beyond reputeDaedal has a reputation beyond reputeDaedal has a reputation beyond reputeDaedal has a reputation beyond reputeDaedal has a reputation beyond reputeDaedal has a reputation beyond reputeDaedal has a reputation beyond reputeDaedal has a reputation beyond repute
Daedal Daedal is offline
Class 3R Laser
 
Join Date: May 2007
Posts: 2,277
Rep Power: 11780
Daedal has a reputation beyond reputeDaedal has a reputation beyond reputeDaedal has a reputation beyond reputeDaedal has a reputation beyond reputeDaedal has a reputation beyond reputeDaedal has a reputation beyond reputeDaedal has a reputation beyond reputeDaedal has a reputation beyond reputeDaedal has a reputation beyond reputeDaedal has a reputation beyond reputeDaedal has a reputation beyond repute
Default Re: C++

It's funny how I do most of my code thinking while away from the computer... ;D

I go away and start thinking in code... then come back with a little fix I had ignored somewhere...

--DDL
__________________
____________________________________________
Daedal Lasers... NEW LOWER PRICES... LPF Coupon = LPF10OFF
________________________________
CLICK ME -- LASORB is now available for immediate purchase
________________________________
Daedal is offline   Reply With Quote
Old 11-17-2007, 03:00 AM #20
Class 3R Laser
 
Join Date: Oct 2007
Location: Houston
Posts: 1,932
Rep Power: 463
spyrorocks has a reputation beyond reputespyrorocks has a reputation beyond reputespyrorocks has a reputation beyond reputespyrorocks has a reputation beyond reputespyrorocks has a reputation beyond reputespyrorocks has a reputation beyond reputespyrorocks has a reputation beyond reputespyrorocks has a reputation beyond reputespyrorocks has a reputation beyond reputespyrorocks has a reputation beyond reputespyrorocks has a reputation beyond repute
Send a message via AIM to spyrorocks
spyrorocks spyrorocks is offline
Class 3R Laser
 
Join Date: Oct 2007
Location: Houston
Posts: 1,932
Rep Power: 463
spyrorocks has a reputation beyond reputespyrorocks has a reputation beyond reputespyrorocks has a reputation beyond reputespyrorocks has a reputation beyond reputespyrorocks has a reputation beyond reputespyrorocks has a reputation beyond reputespyrorocks has a reputation beyond reputespyrorocks has a reputation beyond reputespyrorocks has a reputation beyond reputespyrorocks has a reputation beyond reputespyrorocks has a reputation beyond repute
Send a message via AIM to spyrorocks
Default Re: C++

PHP is awesome.
__________________
spyrorocks is offline   Reply With Quote
Old 11-22-2007, 09:29 PM #21
Class 3R Laser
 
Join Date: Oct 2007
Location: Houston
Posts: 1,932
Rep Power: 463
spyrorocks has a reputation beyond reputespyrorocks has a reputation beyond reputespyrorocks has a reputation beyond reputespyrorocks has a reputation beyond reputespyrorocks has a reputation beyond reputespyrorocks has a reputation beyond reputespyrorocks has a reputation beyond reputespyrorocks has a reputation beyond reputespyrorocks has a reputation beyond reputespyrorocks has a reputation beyond reputespyrorocks has a reputation beyond repute
Send a message via AIM to spyrorocks
spyrorocks spyrorocks is offline
Class 3R Laser
 
Join Date: Oct 2007
Location: Houston
Posts: 1,932
Rep Power: 463
spyrorocks has a reputation beyond reputespyrorocks has a reputation beyond reputespyrorocks has a reputation beyond reputespyrorocks has a reputation beyond reputespyrorocks has a reputation beyond reputespyrorocks has a reputation beyond reputespyrorocks has a reputation beyond reputespyrorocks has a reputation beyond reputespyrorocks has a reputation beyond reputespyrorocks has a reputation beyond reputespyrorocks has a reputation beyond repute
Send a message via AIM to spyrorocks
Default Re: C++

OK, I used your suggestion DDL, it doesn't crash now but for some reason the data gets messed up...
__________________
spyrorocks is offline   Reply With Quote
Old 12-13-2007, 05:37 AM #22
Member
 
Join Date: Dec 2007
Posts: 35
Rep Power: 0
tarek777 is on a distinguished road
tarek777 tarek777 is offline
Member
 
Join Date: Dec 2007
Posts: 35
Rep Power: 0
tarek777 is on a distinguished road
Default Re: C++

i do C++. haven't done it in a while. Not that good in it either. Haven't needed it enough to learn a lot.
tarek777 is offline   Reply With Quote
Old 06-09-2008, 01:43 AM #23
artix's Avatar
Class 2M Laser
 
Join Date: May 2008
Posts: 994
Rep Power: 16
artix is a jewel in the roughartix is a jewel in the roughartix is a jewel in the roughartix is a jewel in the rough
artix artix is offline
Class 2M Laser
artix's Avatar
 
Join Date: May 2008
Posts: 994
Rep Power: 16
artix is a jewel in the roughartix is a jewel in the roughartix is a jewel in the roughartix is a jewel in the rough
Default Re: C++

I've gotten a C+ before. o_0
artix is offline   Reply With Quote
Old 06-09-2008, 02:03 AM #24
Cereal Eater
 
Join Date: Dec 2007
Location: Argentina
Posts: 6,333
Rep Power: 9427
nikokapo has a reputation beyond reputenikokapo has a reputation beyond reputenikokapo has a reputation beyond reputenikokapo has a reputation beyond reputenikokapo has a reputation beyond reputenikokapo has a reputation beyond reputenikokapo has a reputation beyond reputenikokapo has a reputation beyond reputenikokapo has a reputation beyond reputenikokapo has a reputation beyond reputenikokapo has a reputation beyond repute
Send a message via MSN to nikokapo
nikokapo nikokapo is offline
Cereal Eater
 
Join Date: Dec 2007
Location: Argentina
Posts: 6,333
Rep Power: 9427
nikokapo has a reputation beyond reputenikokapo has a reputation beyond reputenikokapo has a reputation beyond reputenikokapo has a reputation beyond reputenikokapo has a reputation beyond reputenikokapo has a reputation beyond reputenikokapo has a reputation beyond reputenikokapo has a reputation beyond reputenikokapo has a reputation beyond reputenikokapo has a reputation beyond reputenikokapo has a reputation beyond repute
Send a message via MSN to nikokapo
Default Re: C++

Quote:
Originally Posted by artix
I've gotten a C+ before. o_0
Nominated for lamest quote of the year.
nikokapo is offline   Reply With Quote
Reply





Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

























Privacy Policy | Advertising Disclaimer | Terms of Use


 


All times are GMT. The time now is 06:30 AM.


Powered by: vBulletin
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO
Privacy Policy | Advertising Disclaimer | Terms of Use
Copyright (C) 2017 Laser Pointer Forums, LLC