Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
I am new to ubuntu.I have done some programming in c++ under windows using graphics.h header file.I want to implement my programs in ubuntu.How can i do this?I am writing a program.Please tell me how to do it.
#include"iostream"
#include"graphics"
using namespace std;
int main()
{
int gd,gm;
gd=DETECT;
initgraph(&gd,&gm,"c:/TC/BGI");
putpixel(10,10,100);
}
Last edited by Puneet Jindal; 08-19-2010 at 09:51 AM.
It's not that straight-forward, and practically no-one here is going to straight up tell you how to do it.
If you have done C++ programming in Windows, was it just C++, or was it C++.NET? If it was .NET, then look into the Mono project. Otherwise, you will probably want to look into what can give you a similar functionality in the GTK+mm or Qt toolkits.
Since you're using Ubuntu, I'd suggest using GTK. If you want to stick with C++, you'll need the gtkmm libraries. You might want to consider using Glade to design your UI. Here's the description from the (Fedora) Glade3 package
Quote:
Description :
Glade is a RAD tool to enable quick and easy development of user interfaces for
the GTK+ toolkit and the GNOME desktop environment.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.