boo*_*oby 1 c++ compiler-errors
// File: Lab13Frac.h
#include <iostream>
using namespace std;
#ifndef "Lab13Frac.h"
#define "Lab13Frac.h"
// prototpes
#endif
Run Code Online (Sandbox Code Playgroud)
标识符不应该在引号中.此外,按惯例,它应该全部上限.
// File: Lab13Frac.h
#ifndef LAB13FRAC_H
#define LAB13FRAC_H
#include <iostream>
using namespace std;
// The above line is not recommended in header files
// because it may cause namespace collisions.
// See http://www.parashift.com/c++-faq-lite/coding-standards.html#faq-27.5
// Prototypes
#endif
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
3733 次 |
| 最近记录: |