Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Jul 18th, 2006, 3:51 PM   #31
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
My gosh, Kruptof, I called your attention to it and narrowed down the time frame; I have to search it for you, too? What time did you want me to fix your dinner?
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code.
Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers
DaWei is offline   Reply With Quote
Old Jul 18th, 2006, 3:57 PM   #32
Prm753
Professional Programmer
 
Prm753's Avatar
 
Join Date: Oct 2005
Location: United States
Posts: 447
Rep Power: 4 Prm753 is on a distinguished road
Send a message via AIM to Prm753 Send a message via MSN to Prm753
DaWei, don't forget to walk his dog and wash his car, too. :p

Only kidding with ya, Kruptof.
__________________
The world's first athletic computer geek!
The home of PrProgramsStudios
How not to post a question: <-- Please don't reply
Prm753 is offline   Reply With Quote
Old Jul 18th, 2006, 7:44 PM   #33
Cerulean
Professional Programmer
 
Cerulean's Avatar
 
Join Date: Apr 2005
Location: London, England
Posts: 459
Rep Power: 4 Cerulean is on a distinguished road
Quote:
I'm used to the C++ they had way back when. Before it was standardized.
Why? Make your life easier:
std::string s = "hello";
s += " more";
s += " and even more";
// s is now "hello more and even more"
Cerulean is offline   Reply With Quote
Old Jul 18th, 2006, 11:19 PM   #34
lectricpharaoh
SEXY SHOELESS GOD OF WAR!
 
lectricpharaoh's Avatar
 
Join Date: Jun 2005
Location: Wet west coast of Canada
Posts: 1,197
Rep Power: 5 lectricpharaoh will become famous soon enough
Quote:
Originally Posted by Dragon_Master
I had to. I have a 1 gb hard drive.
Ouch.
Quote:
Originally Posted by Cache
Stroustrup's page seems a good place to start. I'm really thinking this guy didn't look before asking. Another reference page is here; I've found it to be good for a quick reference (though it's rather bare-bones to learn from).
__________________
And once again, Probability proves itself willing to sneak into a back alley and service Drama as would a copper-piece harlot.
- Vaarsuvius, Order of the Stick
lectricpharaoh is offline   Reply With Quote
Old Jul 19th, 2006, 1:58 PM   #35
Dragon_Master
Programmer
 
Dragon_Master's Avatar
 
Join Date: Jan 2006
Location: Some where
Posts: 74
Rep Power: 3 Dragon_Master is on a distinguished road
Quote:
Why? Make your life easier:
Because I'm not entirely sure that STL's std:tring works with windows. Besides I like it hard. I also discovered recently that "new" can only allocate up to 1024 elements. Darn. I used a file instead. Which really is a better choice.

Quote:
Stroustrup's page seems a good place to start. I'm really thinking this guy didn't look before asking. Another reference page is here; I've found it to be good for a quick reference (though it's rather bare-bones to learn from).
Um, we would be hear if that wasn't true
I'll learn, though.

@Marvin - I have the win32 tutorial listed there. I got it like a year ago. GUI toolkits lag on my computer, I have a very old one.
Dragon_Master is offline   Reply With Quote
Old Jul 19th, 2006, 2:47 PM   #36
Jimbo
Battle Programmer
 
Jimbo's Avatar
 
Join Date: Feb 2006
Location: Bellevue, WA, USA
Posts: 770
Rep Power: 3 Jimbo is on a distinguished road
Quote:
Originally Posted by Dragon_Master
Because I'm not entirely sure that STL's std:tring works with windows.
It does. It's just written in C++ and doesnt (AFAIK) depend on any external libraries (it would be odd if it did).
Quote:
Originally Posted by Dragon_Master
Besides I like it hard.
Use assembly :p
Quote:
Originally Posted by Dragon_Master
I also discovered recently that "new" can only allocate up to 1024 elements.
Where'd you find this? It's news to me, and now I have to find out why my code doesn't break from that...
Quote:
Originally Posted by Dragon_Master
Darn. I used a file instead. Which really is a better choice.
I doubt it, but then again, I don't know what you're writing :o
Jimbo is offline   Reply With Quote
Old Jul 19th, 2006, 3:08 PM   #37
linxis
Programmer
 
Join Date: May 2006
Location: USA
Posts: 52
Rep Power: 0 linxis has a little shameless behaviour in the past
Send a message via ICQ to linxis
The reason is is that a string can only hold so much. Eventualy strcat will place to much into a string and depending on the compiler it will say overflow

if you are using a loop or many strcat commands
__________________
Get programming and game creation tutorials and discuss apon you peers at
http://s14.invisionfree.com/tsoft
We also accept custom software requests and new mods will be needed soon
linxis is offline   Reply With Quote
Old Jul 19th, 2006, 3:40 PM   #38
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
Quote:
Because I'm not entirely sure that STL's std:tring works with windows. Besides I like it hard. I also discovered recently that "new" can only allocate up to 1024 elements. Darn. I used a file instead. Which really is a better choice.
This is just so much puerile bullshit that I had to go puke before I responded. Don't put this crap on your resume'.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code.
Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers
DaWei is offline   Reply With Quote
Old Jul 20th, 2006, 3:48 AM   #39
Soulstorm
Hobbyist Programmer
 
Soulstorm's Avatar
 
Join Date: Jan 2006
Location: Menidi, Athens, Greece
Posts: 243
Rep Power: 3 Soulstorm is on a distinguished road
Quote:
Originally Posted by Dragon_Master
Because I'm not entirely sure that STL's std:tring works with windows.
Why not? What makes you think that it won't work with windows properly? It surely does work, and that's why most devs on Windows use it extensively.

Quote:
I also discovered recently that "new" can only allocate up to 1024 elements. Darn. I used a file instead. Which really is a better choice.
I doubt that using a file for such operations is easier than using the 'new' operator. As for the allocation limit... You can allocate as much memory as your computer can give. If your computer doesn't have enough free memory for the allocation, a runtime exception will happen (which you must handle).
__________________
Project::Soulstorm (personal homepage)
Soulstorm is offline   Reply With Quote
Old Jul 20th, 2006, 3:11 PM   #40
Dragon_Master
Programmer
 
Dragon_Master's Avatar
 
Join Date: Jan 2006
Location: Some where
Posts: 74
Rep Power: 3 Dragon_Master is on a distinguished road
Quote:
This is just so much puerile bullshit that I had to go puke before I responded. Don't put this crap on your resume'.
If your going to fill the boards with your flames, then you can have a chat with the admin. I really don't have any more time for your attitude. It doesn't work with my new computer, and I just got it yesterday. BTW, I was refering to windows programming. If your going to act like a 16 year old go back to high school. I'm sick of talking to people like you. BTW, don't bother responding. You can say whatever you want to Kyle.
Dragon_Master is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
When to use the new keyword in C++? titaniumdecoy C++ 28 Mar 16th, 2006 1:36 PM
Which area of memory does new use? aznluvsmc C++ 11 Nov 5th, 2005 8:37 AM
Question about multidimensional arrays of strings aznluvsmc C 8 Oct 15th, 2005 11:20 PM
Pointers in C (Part II) Stack Overflow C 2 Apr 29th, 2005 11:39 AM
Pointers in C (Part I) Stack Overflow C 4 Apr 28th, 2005 8:03 PM




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 8:08 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC