LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 04-04-2008, 12:05 AM   #1
manish jain
LQ Newbie
 
Registered: Oct 2007
Posts: 8

Rep: Reputation: 0
help me


hi all
i have installed linux fedora 8 and tried a simple program involving only two cout and once cin statement .while compiling it gives me these errors.i have no idea how to figure it out .
please help me how to do modifications
mk.cpp:In function 'int main()'
mk.cpp:7:error:'cout' was not declared in this scope
mk.cpp:8:error:'cin'was not decalred in this scope
mk.cpp:9:error:'cout'was not declared in this scope
 
Old 04-04-2008, 12:26 AM   #2
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
Usually this means you either need to use, for example, "std::cout" or add the line "using namespace std;" under your include directives.

In future please use thread titles that describe the problem you're having and not titles like "help me". You are told about this when you post a thread.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 11:51 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration