PDA

View Full Version : Can I run programs outside of the terminal?



hugom
May 8th, 2011, 07:34 AM
I know this is certainly a noob question but i'll ask anyway. While I'm injured I thought I would have a dabble at learning c# programming. I've just learnt simple this with using printf and scanf and getting a response in the terminal.

Is there anyway to run what I wrote outside of the terminal?

I hope this all makes sense, cheers.

Tony Flury
May 8th, 2011, 08:53 AM
You will need to use on of the UI toolkits, such as GTK, KDE etc.

That way when you run a program it will open up a graphical interface with buttons etc.

hakermania
May 8th, 2011, 08:54 AM
I suggest using QtCreator for C++, it has a powerful GUI mode!

hugom
May 8th, 2011, 11:49 AM
Could you please elaborate a bit more? sorry i'm new to this whole thing

To use a GUI do I write the code in it or do work it through the terminal or some other way?

cheers

hakermania
May 8th, 2011, 01:04 PM
Open the Ubuntu Software Center and type in
QtCreator

Install it and you'll come up with an excellent program with a tool for designing the GUIs (adding buttons and layouts etc). It is very easy to learn!

cgroza
May 8th, 2011, 06:47 PM
You mean without typing a command at the prompt? Many IDEs just have a button you press which runs your program.
You said you just experienced with printf(); maybe it is too soon to think at a GUI toolkit.

jesuisbenjamin
May 8th, 2011, 09:30 PM
I'd say try GUI programming and if it's too hard, then you need more training from command-line. Here is a good tutorial: http://zetcode.com/tutorials/qt4tutorial/