Esempio n. 1
0
    static int result(toto t_, toto t2_)
    {
        toto t  = t_;
        toto t2 = t2_;
        toto t3 = new toto();

        t3.foo  = 0;
        t3.bar  = 0;
        t3.blah = 0;
        t3      = t2;
        t       = t2;
        t2      = t3;
        t.blah++;
        int len = 1;

        int[] cache0 = new int[len];
        for (int i = 0; i < len; i++)
        {
            cache0[i] = -i;
        }
        int[] cache1 = new int[len];
        for (int j = 0; j < len; j++)
        {
            cache1[j] = j;
        }
        int[] cache2 = cache0;
        cache0 = cache1;
        cache2 = cache0;
        return(t.foo + t.blah * t.bar + t.bar * t.foo);
    }
Esempio n. 2
0
    static toto mktoto(int v1)
    {
        toto t = new toto();

        t.foo  = v1;
        t.bar  = 0;
        t.blah = 0;
        return(t);
    }
Esempio n. 3
0
    public static void Main(String[] args)
    {
        toto t = mktoto(4);

        t.bar = readInt();
        stdin_sep();
        t.blah = readInt();
        Console.Write(result(t));
    }
Esempio n. 4
0
    static toto mktoto2(int v1)
    {
        toto t = new toto();

        t.foo  = v1 + 3;
        t.bar  = v1 + 2;
        t.blah = v1 + 1;
        return(t);
    }
Esempio n. 5
0
    public static void Main(String[] args)
    {
        toto param = new toto();

        param.foo = 0;
        param.bar = 0;
        param.bar = readInt();
        stdin_sep();
        param.foo = readInt();
        Console.Write(param.bar + param.foo * param.bar);
    }
Esempio n. 6
0
    public static void Main(String[] args)
    {
        toto[] t = new toto[4];
        for (int i = 0; i < 4; i++)
        {
            t[i] = mktoto(i);
        }
        t[0].bar = readInt();
        stdin_sep();
        t[1].blah = readInt();
        int titi = result(t, 4);

        Console.Write("" + titi + t[2].blah);
    }
Esempio n. 7
0
    public static void Main(String[] args)
    {
        toto t  = mktoto(4);
        toto t2 = mktoto(5);

        t.bar = readInt();
        stdin_sep();
        t.blah = readInt();
        stdin_sep();
        t2.bar = readInt();
        stdin_sep();
        t2.blah = readInt();
        Console.Write("" + result(t, t2) + t.blah);
    }
Esempio n. 8
0
    public static void Main(String[] args)
    {
        String[] tab = new String[2];
        for (int i = 0; i < 2; i++)
        {
            tab[i] = idstring("chaine de test");
        }
        for (int j = 0; j < 2; j++)
        {
            printstring(idstring(tab[j]));
        }
        toto a = new toto();

        a.s = "one";
        a.v = 1;
        print_toto(a);
    }
Esempio n. 9
0
    public static void Main(String[] args)
    {
        int bar_ = int.Parse(Console.ReadLine());

        int[]         c = new List <string>(Console.ReadLine().Split(" ".ToCharArray())).ConvertAll(int.Parse).ToArray();
        tuple_int_int d = new tuple_int_int();

        d.tuple_int_int_field_0 = c[0];
        d.tuple_int_int_field_1 = c[1];
        toto t = new toto();

        t.foo = d;
        t.bar = bar_;
        tuple_int_int e = t.foo;
        int           a = e.tuple_int_int_field_0;
        int           b = e.tuple_int_int_field_1;

        Console.Write(a + " " + b + " " + t.bar + "\n");
    }
Esempio n. 10
0
 static void print_toto(toto t)
 {
     Console.Write(t.s + " = " + t.v + "\n");
 }
Esempio n. 11
0
 static int result(toto t)
 {
     t.blah++;
     return(t.foo + t.blah * t.bar + t.bar * t.foo);
 }