public static String[] OUTPUT(LMD_BLOCKS.BlockOutput b) { String[] code = new String[1]; if (b.GetVariable() != "") { code[0] = " Console.WriteLine(\""+ b.GetText() + "\"+" + b.GetVariable() + ");"; } else { code[0] = " Console.WriteLine(\""+ b.GetText() + "\");"; } return(code); }
public static String[] OUTPUT(LMD_BLOCKS.BlockOutput b) { String[] code = new String[1]; if (b.GetVariable() != "") { code[0] = " cout << \"" + b.GetText() + "\" << " + b.GetVariable() + ";"; } else { code[0] = " cout << \"" + b.GetText() + "\";"; } return(code); }
public static String[] OUTPUT(LMD_BLOCKS.BlockOutput b) { String[] code = new String[1]; if (b.GetVariable() != "") { code[0] = " write(\'" + b.GetText() + "\' + " + b.GetVariable() + ");"; } else { code[0] = " write(\'" + b.GetText() + "\');"; } return(code); }