#include在代码编辑器中显示为灰色 [英] #include is grayed out in the code editor

查看:967
本文介绍了#include在代码编辑器中显示为灰色的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,

我刚刚下载了Visual Studio,然后创建了我的第一个程序 - HelloWorld。预处理程序指令显示为灰色(显示在屏幕截图中)。我检查了我的安装,实际上我下载并安装了所有与C ++相关的
Windows桌面配置。我查看了我的各个配置,并且相应的C ++位都在那里。我已经检查了论坛,并且还有其他关于此类问题的报告,但没有适合我的解决方案。

I just downloaded Visual Studio and went to create my first program - HelloWorld, of course. The preprocessor directives are grayed out (shown in screen shot). I checked my installation and in fact I downloaded and installed all of the C++ associated Windows Desktop configurations. I checked my individual configurations and the appropriate C++ bits are all there. I've checked the forum and there have been other reports of this type of problem, but no solutions that work for me.

建议请

PJ

抱歉没有屏幕截图,直到我的帐户被验证:(

sorry no screen shot until my account has been verified :(

该计划是:

#include <iostream>

#include "stdafx.h"

using namespace std;

int main()  {

   cout <<"Hello World!" << endl;

return 0;

}

推荐答案


预处理程序指令是灰色的

The preprocessor directives are greyed out

我已检查过论坛和其他有关此类问题的报告,但没有适合我的解决方案。

I've checked the forum and there have been other reports of this type of problem, but no solutions that work for me.

这样我们就不会浪费时间建议您已经尝试过的事情没有成功,w你不告诉我们你的尝试吗?



- Wayne

So that we don't waste our time suggesting things that you have already
tried without success, why don't you tell us what you've tried?

- Wayne

这篇关于#include在代码编辑器中显示为灰色的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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