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
This is a discussion on New Libraries within the C++ Programming forums, part of the General Programming Boards category; There are a couple of libraries that I have found but I don't know how to get them to work. ...
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:int main(void){srand(time(0));for(double l=rand(),l0=0,l00=0;;l0+=0.1){for(double l000=0;l000 <1;l000+=.001,l+=((double)rand()/RAND_MAX)/0x64,l00+=((sin(l*0x8*atan(l0)*l000-(l0*0x8*atan (l)))*0.5)+0.5)){l00-=floor(l00);for(size_t l0000=0,l00000=(size_t)(0x50*(l00));l0000<l00000;++l0000 )putchar(0x20);putchar(0x61+(int)((double)rand()/RAND_MAX*0x1a));putchar('\n');}}return 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 bumfluff
Code:#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?