I am down to 24 errors.
i:\game\button.h(32) : error C2447: missing function header (old-style formal list?)
i:\game\concent.cpp(40) : error C2612: trailing '<Unknown>' illegal in base/member...
Type: Posts; User: thatdude
I am down to 24 errors.
i:\game\button.h(32) : error C2447: missing function header (old-style formal list?)
i:\game\concent.cpp(40) : error C2612: trailing '<Unknown>' illegal in base/member...
I still can't get this thing to compile. I have tried making som changes but it just seems to get worse. Can anyone help me out?
TIA
Here are some of the errors.
i:\game\button.h(14) : error C2144: syntax error : missing ',' before type 'int'
i:\game\button.h(25) : error C2065: 'MtText' : undeclared identifier...
It won't compile. I am getting a ton a errors.
I am stuck. I don't even know if I am headiing in the right direction. Does any of this even look like it will work.
Ok ... so I am writing this little program to play a game. Basically what I want to do is draw a 6 x 6 grid on the screen. Initially I want all the squares to be blank. Behind each square I would...
I have been playing arounf with this and I think I need to make a change somewhere in this piece of code.
bool DateClass::Read(istream & InFile)
/* Reads a date from InFile. Input is assumed to...
How would I go about doing that?
It takes a two digit year. I am trying to get it to use a four digit year so it knows 12/10/03 is 2003 and not 1903
I am trying to make this accept a 4 digit year. Here is the code I have so far.
using namespace std;
DateClass::DateClass()
: Month(0), Day(0), Year(0)
{
}
I made some changes to correct some of the errors I was getting during the compile. I read the code that was posted but I still can't figure out what I am doing wrong. Here is the new code
...
Here is the code I was trying to use to copy the file.
#include <iostream.h>
#include <fstream.h>
int main()
{
Does anyone know if there is a function in the fstream.h library that will allow me to copy the contents of one file to another one with just a different file name?
Thanks for the help. Those options are a much better way I think. Mine was kind of the extra long way.
I am trying to write a function that will take input from the user and compare it to a list of valid entries.
#include <iostream.h>
char GetChoice(const String, &LegalChoices);
/*Forces...
Am I doing something wrong with the random function? It keeps generating the same bumbers all the time.
I put that in but I am still getting errors. If I use it as #include <iostream.h> it works ok. I have no Idea what I am doing wrong. I still can't get it to actually give out random numbers, it...
No I didn't remember that part. I will try that. I am sure it is obvious that I am new to this. Thanks for pointing it out
I tried removing the ".h" from the iostream but then I get a whole bunch of errors. I didn't realize I left the random.h in there. thank you for pointing it out.
Here is my new code. The problem is the break statement. Am I using it improperly?
#include <iostream.h>
#include "random.h"
int main()
{
int die1, die2, dietotal, pointstaken,...
I made more changes and now I am down to just 2 errors. An error still in the break line somewhere and one in the second else line. It says illegal else without if so I am guessing it has something...
Well I am down to 5 errors now. I seem to have a problem with the break statement. And something with the first if statement.
#include <iostream.h>
#include "random.h"
int main()
{...
Can someone tell me what I am doing wrong. I have so many errors I dont know where to begin.
#include <iostream.h>
#include "random.h"
int main()
{
int die1, die2, dietotal,...
I am trying to use the randomize function but I don't seem to have the random.h library. I am using Visual Studio 6.0. Can someone tell me where I could download this library so I can utilize this...
I got it all working thanks for all your help