void NEngine::Writeln(qint32 ID){ NDataTypes* dt = new NDataTypes(); QString str; if (ID == 0) { dt = this->StackValue.pop(); } else { dt = this->Variables[ID-1]; } if (variant.canConvert<NNumeric>()) { NNumeric* numeric = dynamic_cast<NNumeric*>(dt); str = QString(numeric); } if (variant.canConvert<NString>()) { NString string = dynamic_cast<NString*>(dt); str = string.Value(); } if (variant.canConvert<NLogical>()) { NLogical logical = dynamic_cast<NLogical*>(dt); QString string; if (logical.Value()) { string = "true"; } else { string = "false"; } str = string; } this->Screen.setText(this->Screen.Text()+str+"<br\>");}
if (variant.canConvert<NNumeric>()) { NNumeric* numeric = dynamic_cast<NNumeric*>(dt);...
C++ (Qt)NNumeric* numeric = dynamic_cast<NNumeric*>(dt);if (numeric != NULL) // Ok, приведен ...else // это не NNumeric ...