|
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. 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.
|
# ¿ Mar 29, 2008 18:04 |
|
|
# ¿ Apr 29, 2024 19:23 |