小编Kay*_*chi的帖子

C++未解析的令牌问题

我正在为一个班级做一个程序,老师给了我们一个我们必须实现的Cpp文件.所有这些都是他写的,除了Main,但我得到了一个奇怪的错误.任何帮助都会很棒.这是我的代码.

// **************************************************************************
//
// Counter.cpp
//
// Defines and tests class CounterType, which is used to count things.
// CounterType contains both a default constructor and a constructor that
// sets the count to a specified value, plus methods to increment, decrement,
// return, and output the count.  The count is always nonnegative.
//
// **************************************************************************
#include <iostream>
#include <fstream>
#include <cstdlib>
using namespace std;

class CounterType
{
public:
    CounterType();
    //Initializes the count to 0.

    CounterType(int initCount);
    //Precondition: initCount …
Run Code Online (Sandbox Code Playgroud)

c++ token

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

标签 统计

c++ ×1

token ×1