Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
        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);
        }
Ejemplo n.º 3
0
        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);
        }