Thanks for the replies, much appreciated
Im a newbie to c++ and so havent done vectors, pointers yet, just the basics and 2d and 3d arrays...covered structs a little bit but not in much detail
will...
Type: Posts; User: newy100
Thanks for the replies, much appreciated
Im a newbie to c++ and so havent done vectors, pointers yet, just the basics and 2d and 3d arrays...covered structs a little bit but not in much detail
will...
Hi
I am making a simple text based game, basically, it is a 20x20 board and i am keeping track of the player with 2 integers (x and y). I describe the terrain at each turn using a 20x20 character...
thanks alot :)
sorted
for (int q = 0; q < 2; q++)
{
for (int p = 0; p < 3; p++)
{
if (Board[q][p] = true)
{
Board[q][p] = 'X';
cout << Board[q][p];
}
Hi
I am trying to get the code below displayed as X values where true, and O where false... so for the character array below, im trying to get it to output
X X X
X X O
I have tried a few things...
thanks everyone...really appreciated :)
sorted
Hi
Thanks for replies...have been playing around with:
cin.ignore(numeric_limits<int>.max(),'\n');
but cant get it to work.......my code is below....the original problem still is there, where if...
Hi
I was wondering how to prevent someone from typing in more than the set number of characters in an array...i have been using:
cin.getline (name, 50)
but it enters a continious loop if more...
Thanks for the quick reply, wasnt expecting one that fast!!
I have taken it out (dunno why i had it there to start with ??) and it does loop twice, but the name Steve will be on the second loop...
Hi
Started c++ at uni (doing games programming) 5 weeks ago....its way tougher than i expected !!!
Anyway....been on with this for ages and i cant get it to work....i have 2 names stored in a...