You could use arrays as well for your program. That would make it so you could loop your program. A few "endl"s to help space out your program would make it look more organized. Now, you could...
Type: Posts; User: luckygold6
You could use arrays as well for your program. That would make it so you could loop your program. A few "endl"s to help space out your program would make it look more organized. Now, you could...
Okay, thanks
That makes sense, thanks!
I've been reading about abstract classes and I can't figure out their purpose. Also, are they suppose to have member functions and data members?
Thanks in advance!
Nevermind, I figured it out.
Wow, that helps alot. Thanks!!!
Then is
fin >> cChar;
equivalent to
fin.get(cChar)
Can someone please explain this.
Thanks in advance!
I tried to replace
while(in.get(ch))
with
Hum... that'd be a good idea...
Thanks!
Can you please explain the purpose of
using namespace std;
Thanks!
I was reading the command line argument tutorial and I realized that I didn't know what command line arguments are. Can someone quickly explain that to me. And if possible, post an example so I can...
I just blocked the names for privacy reasons. I didn't want them to get angry at me for posting them on the internet. If you want to know though, I'm sure they wouldn't mind. Especially me... hehe.
...
Sorry, this was suppose to be part of another post. I hit new thread instead. My bad.
I just blocked it for privacy reasons. I didn't want them to get angry at me for posting them on the internet. If you want to know though, I'm sure they wouldn't mind. Especially me... hehe.
...
I found my error. I used the wrong type in my class. Thanks for all the suggestions!
I tried to use the = in one of my functions within my class. Oddly enough, it says thats theres an error assigning.
clase Name
{
public:
void setNumber(short iNumber)
{
itiNumber =...
Oddly enough, my improvements seems to make the game worse...?
Paragraph III:
...several turns searching for a portion of your ship, then try to locate the other...
Paragraph VI:
...I haven't encountered yet, but then again, the computer seems to always......
The strategy I use is actually really simple. Originally, I had actually made it so that the computer tries to locate one of your ships, then it attacks grids around it that would seem most likely...
Really!? Great, this makes my program more efficient since it doesn't need so many memory allocations when I send arrays to functions!
Thanks!
Using & would pass it as a pointer, how would I pass the arrays as a reference so I don't have to return them?
I'm just trying to ensure that it is returning the entire array, rather than just the values at those elements, (though the subsets are [0-7][[0-15][0-4]).
Sorry, I meant this code:
main()
{
siPlayerGrid[8][16][5] = setter(siPlayerGrid, siCompGrid, i, j);
}
setter(short siPlayerGrid[8][16][5], short siCompGrid[8][16][5], short i, short j)
I was wondering if I was doing this correctly. Does this line of code:
main()
{
siPlayerGrid[8][16][5] = setter(siPlayerGrid, siCompGrid, i, j);
}
setter(short siPlayerGrid, short...