在C ++中使用follow语句需要做什么 [英] What do I need to do to use the follow statements in C++

查看:131
本文介绍了在C ++中使用follow语句需要做什么的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在我正在使用的程序中使用以下两个语句:



使用System.ComponentModel;

使用System.Runtime.CompilerServices;



我的编译器给出了以下这段代码的错误:



错误IntelliSense:标识符系统未定义

错误智能感知:预期';'

错误智能感知:标识符系统未定义

错误智能感知:期望';'

I am trying to use the following two statements in a program I am working on:

using System.ComponentModel;
using System.Runtime.CompilerServices;

My compiler is giving me the following errors for this code:

Error IntelliSense: identifier "System" is undefined
Error IntelliSense: expected a ';'
Error IntelliSense: identifier "System" is undefined
Error IntelliSense: expected a ';'

推荐答案

可能是:
using namespace System;
using namespace System::ComponentModel;
...



等等......为什么不读取语言语法就可以进行任何编程? (以及其他一切。:-))



-SA


这篇关于在C ++中使用follow语句需要做什么的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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