Programming Forums
User Name Password Register
 

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

Reply
 
Thread Tools Display Modes
Old Feb 22nd, 2005, 7:35 PM   #11
ian
Newbie
 
Join Date: Feb 2005
Location: Singapore
Posts: 13
Rep Power: 0 ian is on a distinguished road
Quote:
Originally Posted by Ooble
Run your application through it before you go in then.
We create the programs on-the-spot. :eek:
Quote:
Originally Posted by tempest
Last time i entered one of those types of competitions they simply allowed us to keep submitting programs one t at a time, wipe the disk and then put a new one on there. I'm sure the competition is more interested in your ability to program the programs than the ability to put 6 of them on a single disk... don't worry about it too much man.
Thanks.
Quote:
Originally Posted by Berto
complain that in this day and age you should be able to use cdrw's?

Last edited by ian; Feb 22nd, 2005 at 7:37 PM. Reason: Typo.
ian is offline   Reply With Quote
Old Feb 22nd, 2005, 7:44 PM   #12
ian
Newbie
 
Join Date: Feb 2005
Location: Singapore
Posts: 13
Rep Power: 0 ian is on a distinguished road
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
ian is offline   Reply With Quote
Old Feb 23rd, 2005, 10:47 AM   #13
Ooble
I eat cake for breakfast.
 
Ooble's Avatar
 
Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 9 Ooble is on a distinguished road
It's the second one.
__________________
Me :: You :: Them
Ooble is offline   Reply With Quote
Old Feb 23rd, 2005, 11:45 AM   #14
kurifu
Expert Programmer
 
kurifu's Avatar
 
Join Date: Jul 2004
Location: Halifax, Nova Scotia (Canada)
Posts: 784
Rep Power: 5 kurifu is on a distinguished road
Send a message via ICQ to kurifu Send a message via MSN to kurifu
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
kurifu 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




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

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