init c and janet
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
#include "stdio.h"
|
||||
|
||||
typedef struct {
|
||||
double real;
|
||||
double imag;
|
||||
} Complex;
|
||||
|
||||
void complex_print(Complex z) {
|
||||
printf("%f + %f i", z.real, z.imag);
|
||||
}
|
||||
|
||||
int main() {
|
||||
Complex z = {2.0, 4.0};
|
||||
complex_print(z);
|
||||
return 1;
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
(print "hello world")
|
||||
Reference in New Issue
Block a user