As a fellow newbie in the realm of C (I've dabbled since '94), I would recommend you download a tarball with a simple game. A DIKU based MUD (Multi User Dungeon) game is one way to go. DIKU itself...
Type: Posts; User: slartie
As a fellow newbie in the realm of C (I've dabbled since '94), I would recommend you download a tarball with a simple game. A DIKU based MUD (Multi User Dungeon) game is one way to go. DIKU itself...
After compiling, type Ex1001.exe and prepare to be amazed at how far technology has come.
Found some more gibberish
note_ptr = newchar[seq_len]; //allocate some memory depending on sequence length
note_freq_ptr = newint[seq_len]; //To hold notes converted to frequencies...
Ah, I learned something new then. Bonus!
To be quite honest, I find that I learn more from these messed up homework assignments people are throwing in here, than anything I've read in the books so...
While I'm still new at C++, two things strike me:
constunsignedshort C = 523L; //C5 frequency in Hz
That doesn't make a whole lot of sense.
I'm guessing it should be:
I'm new to C++ and I consider myself a complete dunce when it comes to this language, but curiosity got the better of me and decided to give this a go, (even though I guess this will do the homework...