Cout was not declared at this scope

So,i started a text-based video game,made some header files and included them,and when i try to compile it says cout was not declared at this scope. i run win7 codeblocks with minGW.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#include<iostream>
#include"STRUCT ENEMY.h"
#include"STRUCT PLAYER.h"
#include"Shopping.h"
int main (){
cout<<"     DEADLY SPLENDER     "<<endl;
cout<<"     Made by DiamondHelm  "<<endl<<endl<<endl;
cout<<"Dr.Alex:Hi,I'm Dr.Alex.I found you sleeping in the"<<"forest.Good,I saved you from those Splenders!!!";
cout<<"Johny:Splenders!?What...what is that?";
cout<<"Dr.Alex:Evil Creatures of the night!!!"<<endl<<"What's your name???";
cout<<"Johny:I don't remember.";
cout<<"Dr.Alex:You may have amnesia.."<<"However, I will give you equipment and we cloud start"<<"preparing for the attack";
cout<<"What attack???";
cout<<"I try to attack Spleders in the Splendy Forest,but"<<"I never Suceed because I'm alone,now with you"<<"WE WILL SUCEED!!!!";
struct player Johny;
Johny.life=20;
Johny.attack=2;
Johny.money=15;
}
Last edited on
std::cout << ...
I FORGOT NAMESPACE STD; XD
Topic archived. No new replies allowed.