Thank You!!! that was it. I probably should have been able to fix the syntax, but I figured you had it right, so I didn't bother, but thanks for the followups
Type: Posts; User: Agent89
Thank You!!! that was it. I probably should have been able to fix the syntax, but I figured you had it right, so I didn't bother, but thanks for the followups
error C2143: syntax error : missing ';' before '*'
error C2501: 'm_pGameEngine' : missing storage-class or type
specifiers
error C2761: '__ctor' : member function redeclaration not allowed
...
I am getting a linking error:
FirstGame error LNK2001: unresolved external symbol "protected: static class GameEngine * GameEngine::m_pGameEngine" (?m_pGameEngine@GameEngine@@1PAV1@A)
Here is...
is there ANY way to access an all private class??
Homework question :P
#include <iostream.h> //Original Idea for question code By Jeremy Jones
#include "apstring.h"
#include <fstream.h>
#include <string.h>
int main()
{
char x;
char answer[20];
ifstream...
yeah, I'll post my code that works on thursday
I'm not really sure.
What I did was did a seperate infile.get and then I was able to strcmp them. I don't know exactly, it's at school, I'll let you know more tomorrow
thanks for all your guys' help, I got to work
YAY for me :D
sure did
when I did that, this is the errors I got:
"\readtxt.cpp(10) : error C2065: 'string' : undeclared identifier"
"\readtxt.cpp(10) : error C2146: syntax error : missing ';' before identifier...
I've tried strcat, but it wouldn't let me do it cause the 2nd peramiter needed to be a const char
I'm new to programming, can you give me an example on how to use strlen in my situation?
Thanks
//readtext.cpp
#include <iostream.h>
#include <fstream.h>
#include <string.h>
main()
Visual C++ 6.0
ok, I can include string.h, but not the others, but I still can't use +=, do you guys want to see my code?
I can't get the += to work
my compiler only wants =+, and that doesn't work with chars.
plus it won't let me declare a variable with string.
please help
thank you!
that's exactly what I was looking for :D
how do I take characters from a file and put them into a string so I can compare them??
your help is greatly appreciated
what do I need to include?
is there a way to change the text colors in the console
could somebody give me an example on how to do it with strcpy()
how do you read a text file from justa certain line???
Ex.
Question:
[question here]
Answer:
[answer here]
I got it going, thanks for the help :D
dice.h
#ifndef _DICE_H
#define _DICE_H
class dice{
public:
dice(int sides);
yeah, I did that :(