cout 未在此范围内声明,即使我使用了正确的头文件并使用了命名空间 std

问题描述 投票:0回答:1

我的终端显示“cout 未在此范围内声明”,即使我包含 iostream 标头文件并且还使用命名空间 std

我尝试重新启动 vs code 但它不起作用我尝试复制一个 hello world 程序并尝试运行它但它仍然显示“cout 未在此范围内声明”我不知道有人告诉我的问题是什么我是初学者 Here's a screenshot of my problem

visual-c++
1个回答
0
投票

我也遇到同样的问题,你是怎么解决的?

© www.soinside.com 2019 - 2024. All rights reserved.