364,036 Members | 5273 Browsing Online
Community for Developers & IT Professionals
Bytes IT Community

: fatal error C1083: Cannot open include file: 'isotream': No such file or directory

Phillis2013
P: 14
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<isotream>
using namespace std;

Cardgame::Cardgame(int p)
{
players = p;
totalparticipants += p;
cout << " players have started a new game. there are now" << totalparticipants >> " players in total." << endl;
}


Cardgame::~Cardgame(void)
{
}
__________________________________________________ _________
#pragma once
class Cardgame
{
int players;
static int totalparticipants;
public:
Cardgame(int p);
~Cardgame(void);
};

__________________________________________________ __________________
#include "Cardgame.h"
int Cardgame::totalparticipants = 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\wigundlach\my documents\visual studio 2010\projects\game2\game2\cardgame.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
Jan 30 '12 #1

✓ answered by Mariostg

Phillis, isotream is not the same as iostream... :). You want iostream.
Share this Question
Share on Google+
4 Replies


Mariostg
100+
P: 304
What about #include<iostream>. Read again what you wrote.

Phillis, there is no reason to double posts. You will not get more answers.
Jan 30 '12 #2

Phillis2013
P: 14
Sorry for the double post didn't know how to edit last one and wanted to put the code in it but was on my iPad and I don't know what to do about the include isotream it keeps on saying the same thing and If I take it out it has errors with undefined identifiers
Jan 30 '12 #3

Mariostg
100+
P: 304
Phillis, isotream is not the same as iostream... :). You want iostream.
Jan 30 '12 #4

Phillis2013
P: 14
Ok thanks it looks like isotream on the totourial I was using but that is probably the problem thank
Jan 30 '12 #5

Post your reply

Help answer this question



Didn't find the answer to your C / C++ question?

You can also browse similar questions: C / C++ c++