![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#11 | |||
|
Newbie
Join Date: Feb 2005
Location: Singapore
Posts: 13
Rep Power: 0
![]() |
Quote:
Quote:
Quote:
![]() Last edited by ian; Feb 22nd, 2005 at 8:37 PM. Reason: Typo. |
|||
|
|
|
|
|
#12 |
|
Newbie
Join Date: Feb 2005
Location: Singapore
Posts: 13
Rep Power: 0
![]() |
Question: Sub-Arrays.
Okay, I have another question. If I want a array of strings, in other words, I'd need to have a char 2D array, right?
I need an array of 6 values, each value with 3 characters, so would it be 1) char someStrings[3][6]; or 2) char someStrings[6][3]; . I know Java uses almost the same syntax, but I'm not getting the results I want in a test program I'm currently doing (I found out it was related to the array). Also, I apologise if there's another thread here that mentions this already, thanks for the help. :o |
|
|
|
|
|
#13 |
|
I eat cake for breakfast.
![]() ![]() ![]() ![]() Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 9
![]() |
It's the second one.
|
|
|
|
|
|
#14 |
|
Expert Programmer
|
As a first line of defence though you may want to consider making these changes in your source code (if and when that is applicable)..
1) Optimize for file size... usually /Os compiler argument, this will make your file output considerably smaller in most cases, some compilers default for /O2 which is a speed optimization which does not care about output file size (though there is an ever ongoing debate that smaller files mean faster execution anyway)... 2) Make sure you are stripping all of your debug code out. In linux you run strip to remove debug information from your output files, in Windows you tell your compiler not to generate debug information, this means line numbers, stack information, and so forth... 3) Dynamically link as many libraries as you possibly can! Some compilers give you the option to dynamically or statiscally link runtime libraries, Borland for instance gives you this ability, while statically linking libraries I find is more convenient it does greatly enlarge the file size... 4) Do not use RTTI, RTTI causes your files to become CONSIDERABLY larger... 5) Use generics instead of templates, templats cause code and compile explosions, while most optimizers may be able to work around the results of code explosion I can promise they will likely not be very effective at it...
__________________
Clifford Matthew Roche <geek@cliffordroche.com> Web Hosting: http://www.crd-hosting.com Consulting: http://www.crdev-consulting.com |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|