菜鸟,初学VC,问个简单的问题
例如:#ifndef _GETOPT_H
      #define _GETOPT_H
我看过很多程序,里面很多定义都是以下划线开头的,大都是VC自动生成的,有些定义还很长,请问这是什么意思?

解决方案 »

  1.   

    预处理的宏符号一半可以这样翻译
     如果 没有定义 **定义**end
      

  2.   

    #ifdef __cplusplus
        extern "C" {
    #endif /* __cplusplus */        _OVPRIVAPI int     optind, opterr, optopt;
            _OVPRIVAPI char    *optarg;        _OVPRIVAPI int  getopt(
    #ifdef _PROTOTYPES
    int, char * const [], const char *
    #endif _PROTOTYPES
      );   
    我不是计算系的,现在要我接触这些东东真是痛苦,有人能帮我解释一下上面的程序段吗?
      

  3.   

    前面有下划线的是属于系统定义的变量和宏,这些你不需要知道,只是知道要调用就可以,比如#ifdef __cplusplus
        extern "C" {
    #endif /* __cplusplus */
    是定义一个extern "C" {