当我尝试在 Unix 服务器上编译我的 C++ 代码时,我不断收到异常,但这些行只有:
#ifndef WEIGHTED_GRAPH_H
#endif
错误是:
In file included from Weighted_graph_tester.h:17,
from Weighted_graph_driver.cpp:18:
Weighted_graph.h:1: error: stray â\357â in program
Weighted_graph.h:1: error: stray â\273â in program
Weighted_graph.h:1: error: stray â\277â in program
Weighted_graph.h:1: error: stray â#â in program
In file included from Weighted_graph_tester.h:17,
from Weighted_graph_driver.cpp:18:
Weighted_graph.h:172:2: error: #endif without #if
Weighted_graph.h:1: error: âifndefâ does not name a type
有任何想法吗?