Strip extra spaces from code.
[voro++.git] / branches / 2d / boundary / voro++_test2.cc
blobbc956cb695a3124111ca184cd5e09eb9829a6e82
1 #include "voro++_2d.hh"
4 using namespace voro;
5 #include <stdio.h>
6 #include <iostream>
7 #include <vector>
8 #include <math.h>
9 using namespace std;
11 void test(int &x,int &y){
12 x=1;y=2;
15 int main(int argc,char **argv){
16 char *outfn(new char[1000]);
17 sprintf(outfn,"circle");
18 FILE *fp=safe_fopen(outfn,"w");
19 for(int i=0;i<200;i++){
20 fprintf(fp,"%i %f %f\n",i+4,cos((double)2 * 3.14159 * ((double)i)/200),sin((double)2*3.14159 * ((double)i)/200));
22 cout << "the sin is" << sin (30.0 * 3.14159/180) << endl;
23 return 0;