本文介绍了编译时出错:cout未声明的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 29岁程序员,3月因学历无情被辞! 新问题。我在尝试编译时得到以下内容: 函数''int main()'' ''cout''未声明(首先使用此函数) (每个未声明的idnetifier只报告它出现的每个函数一次。) ''cin''未声明(首先使用此函数) 在函数 '' USHORT DER(USHORT,USHORT,USHORT,USHORT) '' ''(((int)的系数)*((int)的Y)) '' 不能使用作为一个函数 我的代码(我改了一下)是: 展开 | 选择 | 换行 | Line数字 解决方案 使用缩进,希望这有助于阅读代码。如果缩进是错误的,请把我所有想要的东西放下来,我要求的只是请教我!感谢 展开 | 选择 | 裹 | 行号 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 functionMy 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 Numbersbeast1945-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未声明的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云!