Search:

Type: Posts; User: rebel

Search: Search took 0.01 seconds.

  1. Replies
    22
    Views
    27,854

    That's got it - cheers for your help. Before...

    That's got it - cheers for your help. Before tried deleting const and adding static, not putting static before const

    Thanks again
  2. Replies
    22
    Views
    27,854

    Sorry to be a pain! But another error - just...

    Sorry to be a pain!

    But another error - just when you think you are sorted:

    - ISO C++ forbids initialization of member `NUM_ROWS'

    Here
    const int NUM_ROWS = 3;

    and
  3. Replies
    22
    Views
    27,854

    "An access violation (Segmentation fault) raised...

    "An access violation (Segmentation fault) raised in your program"

    Mean anything to anyone?
  4. Replies
    22
    Views
    27,854

    Cheers for the idea corned bee, but still just...

    Cheers for the idea corned bee, but still just jumps out. My complier hates me! :-(
  5. Replies
    22
    Views
    27,854

    Ta Guys, Tried running it in dos, but all it...

    Ta Guys,

    Tried running it in dos, but all it does it wait about a second and then just jumps back to the original command prompt...
  6. Replies
    22
    Views
    27,854

    By jumping-out I mean the program compiles, but...

    By jumping-out I mean the program compiles, but just shows a black dos box and then it just disappears after about a second. No errors though?
  7. Replies
    22
    Views
    27,854

    Thanks, Bit further on now: Trouble I have...

    Thanks,

    Bit further on now:

    Trouble I have no errors and despite changing the code ValidMove function which I think was a problem it just loads a blank screen and then jumps out:

    tictactoe
  8. Replies
    22
    Views
    27,854

    Agggh! I understand now! Thanks guys ...

    Agggh! I understand now!

    Thanks guys

    Trouble is I get get me program to compile, but it does absolutely nothing. Displays a blank screen quickly then disappears!

    Can anyone please advise...
  9. Replies
    22
    Views
    27,854

    Thanks Guys, Fixed the first error: But...

    Thanks Guys,

    Fixed the first error:

    But still don't understand the second totally, are you guys saying in the cpp file I can't use (int r, int c) and (int symbol)?

    Thanks
  10. Replies
    22
    Views
    27,854

    Constructor problem

    Hi Guys,

    With my TicTac Toe game i'm creating I think i'm nearly there, but have a problem with my constructor.

    When I try and run my program I get the message:

    return type specification...
  11. Thread: function trouble

    by rebel
    Replies
    4
    Views
    14,360

    Hi Guys, Thanks for your help - much...

    Hi Guys,

    Thanks for your help - much appreciated!

    Think i'm getting somewhere now, but am a little stuck. Here's what I have done so far:



    // TICTACTOE.H
    // A Program to run the...
  12. Replies
    2
    Views
    928

    Agggh, Cheers Zuk!

    Agggh,

    Cheers Zuk!
  13. Replies
    2
    Views
    928

    Lining up results?

    Hi Guys,

    Have a program which works, and uses a two-dimensional array to calculate and output marks for a course - and also calculate the average.

    Now got it to work, but the columns are...
  14. Thread: function trouble

    by rebel
    Replies
    4
    Views
    14,360

    function trouble

    Hi Guys,

    Trying to create a tictactoe game, and am working on a function for getting one of the two users playing to see what the outcome of the game is. So far I have got it as follows:


    ...
  15. Replies
    10
    Views
    3,927

    Cheers Guys, I'm there now - thanks for your...

    Cheers Guys,

    I'm there now - thanks for your advice
  16. Replies
    10
    Views
    3,927

    Hi Guys, Last question on this if I may? ...

    Hi Guys,

    Last question on this if I may?

    Tried to take your points on board and looked around and now have my program working that works out the lowest number, highest number, mean and sum. ...
  17. Replies
    10
    Views
    3,927

    Cheers SlyMaelstrom, Array's seems to go over...

    Cheers SlyMaelstrom,

    Array's seems to go over my head totally. I'm pretty good and understand most of the basics but arrays just goes over my head and struggle to take it in.

    Anyone know of a...
  18. Replies
    10
    Views
    3,927

    Largest number program

    Hi Guys,

    I'm trying to build a program to get the largest number of 20 numbers put in a program and the largest number is outputted on the screen:

    Here's my code;

    values3.h


    //...
  19. Replies
    7
    Views
    2,552

    Aggh, I see thanks for your help! Just one...

    Aggh,

    I see thanks for your help!

    Just one last thing. When it comes to outputting what has been spent it does not output it to 2 decimal places, even though I have made total_present_price...
  20. Replies
    7
    Views
    2,552

    Thanks guys, Got it working now apart from...

    Thanks guys,

    Got it working now apart from entering decimal places.

    Say I enter a whole number it works fine, but if I enter 3.50 for example, it throws a wobbily!

    I set double...
  21. Replies
    7
    Views
    2,552

    Program calculation problems?

    Hi Guys,

    Wondering if anyone can help. Trying to create a simple program which:

    - Inputs the price of presents bought

    Now when the user has finished entering the price of all the presents...
  22. Replies
    2
    Views
    875

    Can't get my C++ program to run!

    Hi Guys,

    Tried to take on the points everyone has passed onto me and have come up with the following that:

    I Been asked to create a SIMPLE program with an array that holds values from 0 - 100....
  23. Replies
    1
    Views
    1,356

    Libraries question

    Hi Guys,

    I'm working on Dev C++ and I know this program has slightly different libraries to Borland C++, which I have been working on. Does anyone know of a website they can point me in showing...
  24. Replies
    4
    Views
    2,002

    Cheers jlf029, just me being stupid declaring my...

    Cheers jlf029, just me being stupid declaring my functions as void() and not int().

    The thing i'm not sure about are these two functions:



    void values::get_sum_number()
    {
    total=0;
    ...
  25. Replies
    4
    Views
    2,002

    help with functions and array please

    Hi Guys,

    Very new with C++ so please bear with me ;-)

    Been asked to create a SIMPLE program with an array [20] that holds values from 0 - 100. I then need to write functions to calculate:

    -...
Results 1 to 25 of 25