Register a SA Forums Account here!
JOINING THE SA FORUMS WILL REMOVE THIS BIG AD, THE ANNOYING UNDERLINED ADS, AND STUPID INTERSTITIAL ADS!!!

You can: log in, read the tech support FAQ, or request your lost password. This dumb message (and those ads) will appear on every screen until you register! Get rid of this crap by registering your own SA Forums Account and joining roughly 150,000 Goons, for the one-time price of $9.95! We charge money because it costs us money per month for bills, and since we don't believe in showing ads to our users, we try to make the money back through forum registrations.
 
  • Post
  • Reply
ndb
Aug 25, 2005

Extremely similar to another person, but one time, in a program assignment that converted an infix expression to a postfix expression in C++, I had to convert every digit 1-9 to a integer from a string and put that on a stack. Thankfully, there was only digits 0-9 used.

The day after I turned it in, I remembered the atoi() function and how it would've made my life easier. :doh:

Also, when I was first learning VB 6 (when I was 15 or 16 or so), I made a text adventure game without knowing anything about classes, inheritance, or anything remotely Object-Oriented.

Each room was in a very long array of strings, and each restriction on the room had to be manually coded in. Items in an array of strings as well, and their use depended on their number in the array. Arrays and hardcoding were used a lot.

I actually wish I still had the source code. Might be fun to take a look at.

Adbot
ADBOT LOVES YOU

  • 1
  • 2
  • 3
  • 4
  • 5
  • Post
  • Reply