小编boo*_*oby的帖子

致命错误C1016:#if [n] def期望一个标识符

// File: Lab13Frac.h

#include <iostream>
using namespace std;
#ifndef "Lab13Frac.h"
#define "Lab13Frac.h"

// prototpes

#endif 
Run Code Online (Sandbox Code Playgroud)

c++ compiler-errors

1
推荐指数
1
解决办法
3733
查看次数

如何使用指针和指针aritmetic

:错误C2064:term不计算为带有1个参数的函数:错误C2227:' - > name'的左边必须指向class/struct/union/generic类型

我该如何解决这个错误不会发生

for(int index = 0; index < (numStudents); index++)
{
    if (student(index + 1)->score >= 90 )
        student(index + 1)->grade = 'A';
    else if (student(index + 1)->score >= 80 )
        student(index + 1)->grade = 'B';
    else if (student(index + 1)->score >= 70 )
        student(index + 1)->grade = 'C';
    else if (student(index + 1)->score >= 60 )
        student(index + 1)->grade = 'D';
    else 
        student(index + 1)->grade = 'F';
}
Run Code Online (Sandbox Code Playgroud)

继承人的结构:

struct StudentType
{
    string name;
    int score; …
Run Code Online (Sandbox Code Playgroud)

c++ pointers

0
推荐指数
1
解决办法
169
查看次数

标签 统计

c++ ×2

compiler-errors ×1

pointers ×1