Select Git revision
memory_app_classic.py
galaxy_simulation.c 580 B
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include <math.h>
#include "Star.h"
int main(int argc, char *argv[]) {
if (argc == 2) {
if (strcmp(argv[1],"box_test") == 0) {
box_tests();
box b = new_box(-1.0,1.0,-2.0,2.0);
print_box(b);
} else if (strcmp(argv[1],"vector_test") == 0) {
vector_tests();
vec *v = new_vec(1.0, 2.0);
print_vec(v);
free(v);
}
else if (strcmp(argv[1],"star_test") == 0) {
star_tests();
}
}
}