gmqcc/tests/arrays2.qc
2013-06-12 15:47:59 +02:00

21 lines
488 B
C++

float glob1[7] = { 10, 20, 30, 40, 50, 60, 70 };
float glob2[7] = { 100, 200, 300, 400, 500, 600 };
float globs[] = { 1, 2, 3 };
void main() {
float i;
print(ftos(glob1[0]));
for (i = 1; i != 7; ++i)
print(" ", ftos(glob1[i]));
print("\n");
print(ftos(glob2[0]));
for (i = 1; i != 7; ++i)
print(" ", ftos(glob2[i]));
print("\n");
print(ftos(globs[0]));
for (i = 1; i != 3; ++i)
print(" ", ftos(globs[i]));
print("\n");
}