![]() |
|
#1
|
||||
|
||||
Quick Looping QuestionWould
CPP / C++ / C Code:
CPP / C++ / C Code:
I don't think it would, but I just added saving and loading into a game I'm writing, and a major hangup is saving the 100x200 maps. Is there a way to speed up this process, maybe some way to compress the data first? Gamer_2k4 |
|
#2
|
||||
|
||||
Re: Quick Looping QuestionI don't think how you do the loops is your real question. It's how to save the maps effectively.
How do you declare the map? Structure? Matrix? You might want to consider outputting the entire map in one output command. __________________
Got a cough? Go home tonight and eat a whole box of Ex-Lax. Tomorrow, you'll be afraid to cough. -- Pearl Williams |
|
#3
|
||||
|
||||
Re: Quick Looping QuestionThat's a good idea. My map is a 100x200 array, but I can write a program to generate the cout statement. That might be the best way. Thanks.
__________________
Gamer_2k4 |
|
#4
|
||||
|
||||
Re: Quick Looping QuestionYou don't use cout to save the map. That's for displaying the map. You need file I/O
__________________
Got a cough? Go home tonight and eat a whole box of Ex-Lax. Tomorrow, you'll be afraid to cough. -- Pearl Williams |
|
#5
|
||||
|
||||
Re: Quick Looping QuestionRight, that was a mistake on my part. "cout <<" and "saveFile <<" are similar statements, since the syntax is the same. I merely mixed up the two in my response.
__________________
Gamer_2k4 |
Recent GIDBlog
Python ebook by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| win32 api message box quick question | Tomb332 | C++ Forum | 3 | 11-Aug-2006 17:10 |
| real quick crash question | kangol848 | Computer Software Forum - Windows | 1 | 02-Aug-2006 01:53 |
| a quick question | ap6118 | C++ Forum | 5 | 30-Jan-2006 22:54 |
| Merge and Heap...which is really faster | silicon | C++ Forum | 0 | 10-May-2005 14:46 |
| non-member function question | crq | C++ Forum | 1 | 03-Feb-2005 22:59 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The