![]() |
#2
lulipro2016-10-19 17:46
|

/*other.cpp*/
#include"other.h"
static int sum = 100;
#include"other.h"
static int sum = 100;

/*other.h*/
#ifndef _OTHER_H__
#define _OTHER_H__
static int sum;
#endif
#ifndef _OTHER_H__
#define _OTHER_H__
static int sum;
#endif
这种写法是错的对吗?那个sum不应该在other.h中声明对吧?