Search:

Type: Posts; User: newy100

Search: Search took 0.01 seconds.

  1. Replies
    4
    Views
    1,575

    Thanks for the replies, much appreciated Im a...

    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...
  2. Replies
    4
    Views
    1,575

    Having problems with 2d arrays

    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...
  3. Replies
    7
    Views
    1,576

    thanks alot :) sorted

    thanks alot :)
    sorted
  4. Replies
    7
    Views
    1,576

    for (int q = 0; q < 2; q++) { for (int p...

    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];
    }
  5. Replies
    7
    Views
    1,576

    Boolean in a character array

    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...
  6. Replies
    6
    Views
    1,978

    thanks everyone...really appreciated :) sorted

    thanks everyone...really appreciated :)
    sorted
  7. Replies
    6
    Views
    1,978

    Hi Thanks for replies...have been playing around...

    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...
  8. Replies
    6
    Views
    1,978

    Question about cin.getline

    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...
  9. Replies
    4
    Views
    1,863

    Thanks for the quick reply, wasnt expecting one...

    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...
  10. Replies
    4
    Views
    1,863

    Comparing Character Arrays problem...

    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...
Results 1 to 10 of 10