小编Bla*_*olf的帖子

错误c2059:语法错误:'('

我不明白这个错误它在教程中编写完全相同,但我的错误.

#include "drawEngine.h"
#include <Windows.h>
#include <iostream>

using namespace std;

DrawEngine::DrawEngine(int xSize, int ySize)
{
    screenWidth = xSize;
    screenHeight = ySize;

    //set cursor visibility to false

    map = 0;
    cursorVisibility(false);
}

DrawEngine::~DrawEngine()
{
    //set cursor visibility to true
    cursorVisibility(true);
}

int DrawEngine::createSprite(int index, char c)
{
    if (index >= 0 && index < 16)
    {
        spriteImage[index] = c;
        return index;
    }

    return -1;
}


void DrawEngine::deleteSprite(int index)
{
    //in this implementation we don't need it
}

void DrawEngine::drawSprite(int index, int …
Run Code Online (Sandbox Code Playgroud)

c++ goto

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

标签 统计

c++ ×1

goto ×1