There are a couple of libraries that I have found but I don't know how to get them to work. How do I do this?
Compiler: Dev-C++ 4
O.S: Win XP Home
There are a couple of libraries that I have found but I don't know how to get them to work. How do I do this?
Compiler: Dev-C++ 4
O.S: Win XP Home
they all have slightly different setup requirements. view the readme file that comes with the library's documentation for the specific installation procedures.
Code:#include <cmath> #include <complex> bool euler_flip(bool value) { return std::pow ( std::complex<float>(std::exp(1.0)), std::complex<float>(0, 1) * std::complex<float>(std::atan(1.0) *(1 << (value + 2))) ).real() < 0; }
If you're planning on installing native *nix libraries which have no DevPaks made for them yet... well, you're on your own
Code:#include <stdio.h> void J(char*a){int f,i=0,c='1';for(;a[i]!='0';++i)if(i==81){ puts(a);return;}for(;c<='9';++c){for(f=0;f<9;++f)if(a[i-i%27+i%9 /3*3+f/3*9+f%3]==c||a[i%9+f*9]==c||a[i-i%9+f]==c)goto e;a[i]=c;J(a);a[i] ='0';e:;}}int main(int c,char**v){int t=0;if(c>1){for(;v[1][ t];++t);if(t==81){J(v[1]);return 0;}}puts("sudoku [0-9]{81}");return 1;}
No there was a library...paintlib or somerthing that looked useful and I wanted to know how to put it ont Dev_C++
Don't mess with your standard library directories. Just save the library in the directory that your source code is in and include it with double quotesOriginally Posted by bumfluffCode:#include "paintlib.h" // Assuming that's the library name
Sent from my iPadŽ
So can I do that with any library? say allegro and the such like?
Well kinda. You have to make sure that you link the libs for the library. If you need a prebuilt allegro(latest) lib send me a pm, I can build one for you.
Woop?