单行在ANSI-C评论 [英] Single line comments in Ansi-C

查看:116
本文介绍了单行在ANSI-C评论的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经习惯了 // 标记从Java和Visual Studio单行注释,并感到惊讶的是,这并不为ANSI-C存在。使用 / *我的注释* / 是很烦人的。是否有任何其他的方式来纪念单行注释使用ANSI-C是什么时候?

I'm used to // to mark a single line comment from Java and Visual Studio and was surprised that this does not exist for Ansi-C. Using /* my comment */is quite annoying. Is there any other way to mark a single line comment when using Ansi-C?

推荐答案

ANSI-C,没有,但目前的C99标准允许他们。

ANSI-C, no, but the current C99 standard allows them.

这篇关于单行在ANSI-C评论的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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