/*when I compile this it gives a error message..
/tmp/ccxagark.o:os.cpp:(.text+0x2e): undefined reference to `calincrement(double (*) [3], int)'
/tmp/ccxagark.o:os.cpp:(.text+0x2e): relocation truncated to fit: R_X86_64_PC32 against undefined symbol `calincrement(double (*) [3], int)'
/usr/lib/gcc/x86_64-pc-cygwin/4.8.2/../../../../x86_64-pc-cygwin/bin/ld: /tmp/ccxagark.o: bad reloc address 0xc in section `.xdata'
collect2: error: ld returned 1 exit status
PLEASE USE CODE TAGS (the <> formatting button) when posting code.
It makes it easier to read your code and also easier to respond to your post. http://www.cplusplus.com/articles/jEywvCM9/