:oops: What a silly mistake, I really should have realized that... Ran it, works perfectly! I see what you mean about this-> That seems like a good idea to distinguish variables, I just did it and it makes the code much more readable than I thought it would! Plus it'll keep me close to Python's s...
If you want the binaries with all of the data, it's here: http://dl.dropbox.com/u/3701354/TicTacToe%20Binaries.zip After running the program, check the bottom of the ErrorLog.log file for an outline of the array and its positions. Your code seems to have an issue with linking on my c...
What it does is fill a collection, in this case a simple array of int. Really interesting! Sort of just like a for loop to fill the array, but it can be used for any container? Sorry the code is pretty messy and not very well documented! The main functions/methods that have to do with the board arr...
Thanks for the quick reply :) I tried your example, and you're right, it does do what I originally intended to do! If you'd like to check all of my code out it's here: (only about 350 lines of total code :P) http://dl.dropbox.com/u/3701354/TicTacToe.zip I just don't know if I'm passi...
Hey guys, haven't been on in a bit. I'm trying to make a game of Tic-Tac-Toe using SDL and C++, and I'm using an array to store the "board". It's a nine-slot array, a 0 means unoccupied, 1 means user-occupied, and 2 means AI-occupied. The problem is that the array doesn't get modified corr...
To me, from a noob standpoint, it would be useful to have a mentor so he can "show me the way" at times. Because sometimes, I progress and progress, then I think to myself, "Now what? What next?" There's such a vast amount of paths you could take that it becomes really confusing ...
Thank you guys! This just goes to show how little (none?) I know about C++, i decided to just make it do the standard "dir" without any options Now I'm going to start seriously learning C++ and maybe somewhere along the road I'll look back on this and say "Doh!"
I tried writing a replacement for "dir" because I'm so accustomed to using "ls". I wrote it successfully in Python, but wanted it to be faster so I decided to write it C++, which I have very limited knowledge in. Here's my code: #include <iostream> #include <string> u...