Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers DBPro Corner / my first program

Author
Message
CrAzKiDd55
20
Years of Service
User Offline
Joined: 15th Sep 2004
Location: UK
Posted: 7th Oct 2004 06:54 Edited at: 7th Oct 2004 06:55
hi , i was a complete n00b and now i have finally made my first program. It is very basic and i would like to know what other people think about it.



thanks
PoHa!84
20
Years of Service
User Offline
Joined: 2nd Oct 2003
Location: To your left.
Posted: 7th Oct 2004 08:05 Edited at: 7th Oct 2004 08:07
looks nice, for a first time thingie...

but for optimization purposes, you should think about replacing


with:



and it should do the exact same thing

/edit OH yeah... when i ran it, i came across an error that pointed towards line with the save array. not sure why, though.

something
CrAzKiDd55
20
Years of Service
User Offline
Joined: 15th Sep 2004
Location: UK
Posted: 7th Oct 2004 16:30
ok i have made small changes to the code, maybe now it will work better:

PoHa!84
20
Years of Service
User Offline
Joined: 2nd Oct 2003
Location: To your left.
Posted: 8th Oct 2004 01:36
I've played around with your code some more, and made it shorter.
Also, I don't know about your screen, but mine only displays a maximum of 30 lines, so I could never see the 3rd option, so I changed that some



also, I stilll received the error that I recieved before, pointing towards the save array line, so I rem'd it out.

something
CrAzKiDd55
20
Years of Service
User Offline
Joined: 15th Sep 2004
Location: UK
Posted: 8th Oct 2004 02:19
ok it looks good
i just need to know how to shorten it by myself, without help.

thanks
PoHa!84
20
Years of Service
User Offline
Joined: 2nd Oct 2003
Location: To your left.
Posted: 8th Oct 2004 02:33
How to shorten it by yourself? Well make sure you're not doing something repetitively, cause cpu's are good about doing repetition. Looking at your code, I just couldn't stand the fact that you had individual print commands for each product's sell, buy, and profit. I was also trying to call your attention to the "for-next" commands at the same time, and the "do-loop" is usually a good thing. Just some basics that will help.


But I gotta say, its nice to see someone new to DB not trying to make some grand spectre of a game for their first program.

something

Login to post a reply

Server time is: 2024-09-23 02:23:06
Your offset time is: 2024-09-23 02:23:06