how do i put a graphics on console application (Bllodshed Dev-C++)?
how do i put a graphics on console application (Bllodshed Dev-C++)?
Hax0rz skillz.
Google:
Allegro, SDL, Directx, OpenGL, Win32Api(eh).
Woop?
You can't. Write a windows app instead.
yes you can. with linux use ncurses to have colour boxes.Originally Posted by citizen
to display images, you are right, they aren't really compatable, but it can be done.
[ looking at logo image displayed by my linux distro in my command prompt only interface ]
I have an image being displayed in a command prompt enviroment all the time.
Originally Posted by Jeff Henager
Use ASCII art instead?
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;}
You can't do it on Dev C++.Turbo C++ provides a very nice graphics.h header for this
You can put graphics on console applications. Read the previous posts on this thread before posting.
Originally Posted by brewbuck:
Reimplementing a large system in another language to get a 25% performance boost is nonsense. It would be cheaper to just get a computer which is 25% faster.
Check our adrianxw's Win32 console tutorials.
AFAIK you can use WinAPI in console apps so DX/OGL/etc... is also possible!Originally Posted by citizen
MagosX.com
Give a man a fish and you feed him for a day.
Teach a man to fish and you feed him for a lifetime.
You can, but it makes you wonder why you have the console there anyways.
For debugging messages, of course ...
All the buzzt!
CornedBee
"There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
- Flon's Law