编译时出错:cout未声明 [英] Error at compile time: cout undeclared

查看:178
本文介绍了编译时出错:cout未声明的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

新问题。我在尝试编译时得到以下内容:


函数''int main()''

''cout''未声明(首先使用此函数)

(每个未声明的idnetifier只报告它出现的每个函数一次。)

''cin''未声明(首先使用此函数)

在函数 '' USHORT DER(USHORT,USHORT,USHORT,USHORT) ''

''(((int)的系数)*((int)的Y)) '' 不能使用作为一个函数


我的代码(我改了一下)是:

<跨度类= codeLink 的onclick = 模糊(此,this.parentNode.parentNode,的getChildren(本),TRUE);>展开 <跨度类= codeDivider> | < /跨度> <跨度类= codeLink 的onclick = 全选(本);>选择 <跨度类= codeDivider> | <跨度类= codeLink 的onclick =自动换行(这个);>换行 | Line数字

解决方案

使用缩进,希望这有助于阅读代码。如果缩进是错误的,请把我所有想要的东西放下来,我要求的只是请教我!感谢

<跨度类= codeLink 的onclick =模糊(此,this.parentNode.parentNode,的getChildren(本) ,true);>展开 | 选择 | <跨度类= codeLink 的onclick = 自动换行(在此);>裹 <跨度类= codeDivider> | <跨度类=codeLink onclick =LineNumbers(this);>行号


beast1945-


因为这是一个新问题,我我把它放在自己的线程中。



beast1945-


因为这是一个新的问题,我把它放在自己的线程中。



好​​的谢谢。有一秒钟,我以为我做了另一个论坛......不会是个好主意。但是现在你说你做到了,谢谢。


New problem. I get the following when trying to compile:

in function ''int main()''
''cout'' undeclared (first use this function)
(Each undeclared idnetifier is reported only once for each function it appears in.)
''cin'' undeclared (first use this function)
In function ''USHORT der(USHORT,USHORT,USHORT,USHORT)''
''(((int)coefficient)*((int)y))'' cannot be used as a function

My code (i changed it a bit) is:

Expand|Select|Wrap|Line Numbers

解决方案

With the indentations, hope this helps in reading the code. If the indentation is wrong, put me down all you want, all I ask is please teach me! thanks

Expand|Select|Wrap|Line Numbers


beast1945-

As this is a new question, I am putting it in its own thread.


beast1945-

As this is a new question, I am putting it in its own thread.

Ok thanks. For a second I thought I had made another forum.. would not have been a good idea. But now that you say you did it, thanks.


这篇关于编译时出错:cout未声明的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆