I don't know if I've mentioned this here before, but I've been working on a scrabble cheater. I know you're probably thinking "aren't there scrabble cheaters on the internet for free?" I've seen some of them myself and they're mediocre. I hope to make one that's fast an organized. I want the user to just be able to enter the characters available and for the program to output all possible words that can be made from in those letters in order of least to greatest word size.
The Array

Well, I just disocovered a very important aspect of c++. I didn't know this before but you can actually access a string in an array and access a specific character in that string with a 2-dimensional array. Here's some source code to illustrate:
include string
string Array[4] = {"dog", "cat", "house", "iguana"};
cout Array[0][0];
cout Array[0][0];
The code above would output the first character in first element in the array of strings (e.i. 'd')
cout Array[1][0];
The code above would output the first character in the second element in the array of strings (e.i. 'c')
No comments:
Post a Comment