how do i fix this error i have no precompiled headers and everything i have tried has not worked
here is all my code
#include "Cardgame.h "
#include<isotre am>
using namespace std;
Cardgame::Cardg ame(int p)
{
players = p;
totalparticipan ts += p;
cout << " players have started a new game. there are now" << totalparticipan ts >> " players in total." << endl;
}
Cardgame::~Card game(void)
{
}
_______________ _______________ _______________ ______________
#pragma once
class Cardgame
{
int players;
static int totalparticipan ts;
public:
Cardgame(int p);
~Cardgame(void) ;
};
_______________ _______________ _______________ _______________ ________
#include "Cardgame.h "
int Cardgame::total participants = 0;
int main()
{
Cardgame *bridge = 0;
Cardgame *blackjack = 0;
Cardgame *solitaire = 0;
Cardgame *poker = 0;
bridge= new Cardgame(4);
blackjack= new Cardgame(8);
solitaire= new Cardgame(1);
delete blackjack;
delete bridge;
poker= new Cardgame(5);
delete solitaire;
delete poker;
return 0;
}
_______________ _______________ _______________ ______________
and i keep getting this error
1>------ Build started: Project: game2, Configuration: Debug Win32 ------
1> Cardgame.cpp
1>c:\documents and settings\wigund lach\my documents\visua l studio 2010\projects\g ame2\game2\card game.cpp(2): fatal error C1083: Cannot open include file: 'isotream': No such file or directory
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
please help
here is all my code
#include "Cardgame.h "
#include<isotre am>
using namespace std;
Cardgame::Cardg ame(int p)
{
players = p;
totalparticipan ts += p;
cout << " players have started a new game. there are now" << totalparticipan ts >> " players in total." << endl;
}
Cardgame::~Card game(void)
{
}
_______________ _______________ _______________ ______________
#pragma once
class Cardgame
{
int players;
static int totalparticipan ts;
public:
Cardgame(int p);
~Cardgame(void) ;
};
_______________ _______________ _______________ _______________ ________
#include "Cardgame.h "
int Cardgame::total participants = 0;
int main()
{
Cardgame *bridge = 0;
Cardgame *blackjack = 0;
Cardgame *solitaire = 0;
Cardgame *poker = 0;
bridge= new Cardgame(4);
blackjack= new Cardgame(8);
solitaire= new Cardgame(1);
delete blackjack;
delete bridge;
poker= new Cardgame(5);
delete solitaire;
delete poker;
return 0;
}
_______________ _______________ _______________ ______________
and i keep getting this error
1>------ Build started: Project: game2, Configuration: Debug Win32 ------
1> Cardgame.cpp
1>c:\documents and settings\wigund lach\my documents\visua l studio 2010\projects\g ame2\game2\card game.cpp(2): fatal error C1083: Cannot open include file: 'isotream': No such file or directory
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
please help
Comment