comandolabel.cpp

来自「"tiny" language interpreter written in j」· C++ 代码 · 共 23 行

CPP
23
字号
//ComandoLabel.cpp
#include "ComandoLabel.h"
//Construtor
ComandoLabel::ComandoLabel(Memoria *mem_labels, string rotulo, int linha){    
    this->mem_labels = mem_labels;
    //seta linha no vetor de execucao
    this->linha = linha;
    //rotulo do comando
    this->rotulo = rotulo;   
}

int ComandoLabel::executa(){
    return linha;
}

string ComandoLabel::toString(){
    string saida = this->rotulo + ":";
    return saida;
}

void ComandoLabel::defineLinhaSalto(int nolinha){
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?