That's got it - cheers for your help. Before tried deleting const and adding static, not putting static before const
Thanks again
Type: Posts; User: rebel
That's got it - cheers for your help. Before tried deleting const and adding static, not putting static before const
Thanks again
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
"An access violation (Segmentation fault) raised in your program"
Mean anything to anyone?
Cheers for the idea corned bee, but still just jumps out. My complier hates me! :-(
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...
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?
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
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...
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
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...
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...
Agggh,
Cheers Zuk!
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...
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:
...
Cheers Guys,
I'm there now - thanks for your advice
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. ...
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...
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
//...
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...
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...
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...
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....
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...
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;
...
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:
-...