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.
#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;
}