Thread: [Dev-C++] (no subject) (Page 16)
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
From: c w. <not...@ya...> - 2008-12-24 04:10:43
|
Hello all, I am very, very new to programming and needless to say I am having trouble with the simplest "Hello World" program. It compiles OK, but when it runs on Dev-CPP the ouptut window only stays open for a fraction of a second. Is there a setting that I am missing? Below is the code: #include<iostream> using namespace std; int main() { cout << "Hello World\n"; return 0; } I certainly hate bothering anyone with such a trivial request, but it is probably something so simple that an experienced programmer would spot in a flash. Thanks in advance! --Bill |
From: Chris M. <lor...@gm...> - 2008-12-24 07:34:29
|
On Tue, Dec 23, 2008 at 8:10 PM, c william <not...@ya...> wrote: > Hello all, > > I am very, very new to programming and needless to say I am having trouble > with the simplest "Hello World" program. It compiles OK, but when it runs > on Dev-CPP the ouptut window only stays open for a fraction of a second. Is > there a setting that I am missing? The (stupid) Windows terminal is closing before you can see the output. You need to pause it. > Below is the code: > > #include<iostream> #include<cstdlib> > using namespace std; > > int main() > { > cout << "Hello World\n"; system("PAUSE"); > return 0; > } > > I certainly hate bothering anyone with such a trivial request, but it is > probably something so simple that an experienced programmer would spot in a > flash. Thanks in advance! It's not obvious, and to give you the more correct solution (should you choose to use it): char c; std::cout << "Press the any key to continue... " << std::endl; std::cin.get(c); return 0; This method is more "correct" because system("PAUSE"); only works on Windows, whereas the whole cin.get routine works on Windows, Linux, Mac, and everything else AFAIK. -- Registered Linux Addict #431495 http://profile.xfire.com/mrstalinman | John 3:16! http://www.fsdev.net/ | http://lordsauron.wordpress.com/ Parents, Take Responsibility For Your Kids! http://www.whattheyplay.com/ |
From: a.geo <aqu...@gm...> - 2008-12-24 14:42:55
|
#include<iostream> using namespace std; int main() { cout << "Hello World\n"; return 0; } Really your program is running right... so you need stop it after the cout, you can make it with some keyboard function... :D #include<iostream> #include "conio.h" using namespace std; int main() { cout << "Hello World\n"; getch(); // This function wait until you press a key return 0; } This is all... mmmmmmmmmmmm, I feel so nostalgic... T_____T -- -------------------------------------------------------- VISIT MY BLOG : http://ageo.blogspot.com/ picture blog : http://ageo.deviantart.com/journal/ |
From: Ben M. <ili...@at...> - 2009-01-17 02:32:48
|
Hello all. It's been awhile, but I have a question. When I try to compile my program in Dev using the full install with MinGW as the compiler, I keep getting the error message Linker error- undefined reference to _cpu_features_init. I was wondering if anyone could tell me where I screwed up. |
From: hhh h. <the...@ho...> - 2009-01-21 09:20:05
|
Hello, First and foremost, let me apologize for the ignorance I will display when asking this questions... I have only coded for Windows. With that in mind, let's assume I want to port some application to a linux distro. How can I make Graphical User Interface applications? Is there an uniform way to do this in Linux? Even better, where can I get information about those sort of things? These are fundamental questions that prevent me to proceed into linux world( Because cli coding is kinda similar ), and it really, really bugs me not knowing. Please advise on this, if you have any information. Thanking you in advance,Frederico Marques _________________________________________________________________ Organize seus contatos! O jeito mais fácil de manter a sua lista de amigos sempre em ordem! http://www.microsoft.com/windows/windowslive/events.aspx |
From: Chris M. <lor...@gm...> - 2009-01-21 09:34:25
|
On Jan 21, 2009, at 1:20 AM, hhh hhh wrote: > Hello, > > > First and foremost, let me apologize for the ignorance I > will display when asking this questions... > > I have only coded for Windows. With that in mind, let's > assume I want to port some application to a linux distro. > > How can I make Graphical User Interface applications? Is > there an uniform way to do this in Linux? No. > Even better, where can I get information about those sort of > things? The Internet. http://www.google.com/search?q=linux+gui+programming+c%2B%2B I'd suggest either wxWidgets or Qt. GTK+, while heavily used, gives me an absolute headache (C-based GUI programming could be assembler for all I care - it's almost completely unreadable IMHO). > These are fundamental questions that prevent me to proceed > into linux world( Because cli coding is kinda similar ), and it > really, really bugs me not knowing. Read about Unix Theory. The CLI is your friend! http://en.wikipedia.org/wiki/ Unix_philosophy#Raymond:_The_Art_of_Unix_Programming The basic theory I'm hinting towards is that you build a command-line tool which performs your application's purpose* and then build a GUI which provides a nice graphical interface to that later. * if applicable - not always possible, for instance, say you want to build a PDF viewer or something like that - the command line would be completely inappropriate Registered Linux Addict #431495 http://profile.xfire.com/mrstalinman | John 3:16! http://www.fsdev.net/ | http://lordsauron.wordpress.com/ |
From: Frederico M. <the...@ho...> - 2009-01-21 09:49:27
|
I fully understand your point. Thank you for the link. However, the point I was trying to get across is that I may not need to code GUI applications for some given problem, however I would like to know how. You have, indirectly answered my question, as I did not understand what was the diference betwen Qt, wxWidgets, GTK+, and their relations to KDE and GNOME... Each platform-toolkit, corresponds to a graphical interface in linux? GTK+ is only for GNOME? Thank you for the fast reply. Frederico Marques > From: lor...@gm... > To: the...@ho... > Date: Wed, 21 Jan 2009 01:34:16 -0800 > CC: dev...@li... > Subject: Re: [Dev-C++] (no subject) > > On Jan 21, 2009, at 1:20 AM, hhh hhh wrote: > > > Hello, > > > > > > First and foremost, let me apologize for the ignorance I > > will display when asking this questions... > > > > I have only coded for Windows. With that in mind, let's > > assume I want to port some application to a linux distro. > > > > How can I make Graphical User Interface applications? Is > > there an uniform way to do this in Linux? > > No. > > > Even better, where can I get information about those sort of > > things? > > The Internet. > > http://www.google.com/search?q=linux+gui+programming+c%2B%2B > > I'd suggest either wxWidgets or Qt. GTK+, while heavily used, gives > me an absolute headache (C-based GUI programming could be assembler > for all I care - it's almost completely unreadable IMHO). > > > These are fundamental questions that prevent me to proceed > > into linux world( Because cli coding is kinda similar ), and it > > really, really bugs me not knowing. > > Read about Unix Theory. The CLI is your friend! > > http://en.wikipedia.org/wiki/ > Unix_philosophy#Raymond:_The_Art_of_Unix_Programming > > The basic theory I'm hinting towards is that you build a command-line > tool which performs your application's purpose* and then build a GUI > which provides a nice graphical interface to that later. > > * if applicable - not always possible, for instance, say you want to > build a PDF viewer or something like that - the command line would be > completely inappropriate > > Registered Linux Addict #431495 > http://profile.xfire.com/mrstalinman | John 3:16! > http://www.fsdev.net/ | http://lordsauron.wordpress.com/ > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by: > SourcForge Community > SourceForge wants to tell your story. > http://p.sf.net/sfu/sf-spreadtheword > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users _________________________________________________________________ Mais do que emails! Confira tudo o que Windows Live™ pode oferecer. http://www.microsoft.com/windows/windowslive/ |
From: Chris M. <lor...@gm...> - 2009-01-21 09:58:56
|
On Jan 21, 2009, at 1:49 AM, Frederico Marques wrote: > I fully understand your point. Thank you for the link. > However, the point I was trying to get across is that I may not > need to code GUI applications for some given problem, however I > would like to know how. > You have, indirectly answered my question, as I did not understand > what was the diference betwen Qt, wxWidgets, GTK+, and their > relations to KDE and GNOME... Each platform-toolkit, corresponds to > a graphical interface in linux? GTK+ is only for GNOME? GTK+ is primarily used by Gnome. Qt is technically independent (Qt also works on Windows) but is the foundation from which KDE's SDK is built. wxWidgets is a dedicated 100% cross-platform toolkit, so it works on Windows and Linux. There are tools which automatically allow you to use any toolkit in any Windowing environment (so I could use GTK+ stuff in KDE) so really just pick one, you can't go wrong - except with GTK+ which you could go very wrong with, but I might just be a little opinionated there ;-) Registered Linux Addict #431495 http://profile.xfire.com/mrstalinman | John 3:16! http://www.fsdev.net/ | http://lordsauron.wordpress.com/ |
From: Reid T. <rei...@at...> - 2009-01-21 14:14:15
|
On Wed, 2009-01-21 at 08:20 -0100, hhh hhh wrote: > Hello, > > > First and foremost, let me apologize for the ignorance I will > display when asking this questions... > > I have only coded for Windows. With that in mind, let's assume > I want to port some application to a linux distro. > > How can I make Graphical User Interface applications? Is there > an uniform way to do this in Linux? > Even better, where can I get information about those sort of > things? > There are gui interface builders available also ( google for glade,gazpacho -> GTK+ ,fluid -> fltk, not sure which one is used for QT. ) GTK+ is the framework used for GNOME, QT is used for KDE. Applications from either toolkit can be run on either desktop ( or any X window manager as far as that goes ( fluxbox,openbox, windowmaker, etc ) as long as the OS is configured as a graphical desktop( i.e. has the base underlying libs etc ). |
From: balu b <bal...@ya...> - 2009-07-03 07:24:51
|
-Best Regard's Balu Looking for local information? Find it on Yahoo! Local http://in.local.yahoo.com/ |
From: Merlin V. <mer...@ya...> - 2009-07-26 14:27:27
|
Buenos días, Existe algun paquete de Dev-C++ que permita desarrollar aplicaciones Win32 en un entorno gráfico, o por lo menos un paquete que haga más facil hacer la interfaz gráfica en en ambiente windows? |
From: rodolfo d'E. <rod...@ho...> - 2009-07-26 23:46:38
|
Depende, si lo que quieres es desarrollar interfaces de usuario, hay varias, prueba con wxWidget o FLTK. Si quieres desarrollar juegos, Allegro parece ser muy bueno. Saludos Rodolfo d'Ettorre Date: Sun, 26 Jul 2009 14:27:16 +0000 From: mer...@ya... To: dev...@li... Subject: [Dev-C++] (no subject) Buenos días, Existe algun paquete de Dev-C++ que permita desarrollar aplicaciones Win32 en un entorno gráfico, o por lo menos un paquete que haga más facil hacer la interfaz gráfica en en ambiente windows? _________________________________________________________________ Use Windows Live Messenger from your Hotmail inbox Web IM has arrived! http://windowslive.ninemsn.com.au/article.aspx?id=823454 |
From: Merlin V. <mer...@ya...> - 2009-10-02 17:53:10
|
Estaría muy agradecido si me ayudaran con lo siguiente: cuan do intento compilar un programa me sale esto: BFD target `dynamic' collect2: ld returned 1 exit status Process terminated with status 1 (0 minutes, 1 seconds) 0 errors, 0 warnings saludos merlin |
From: Merlin V. <mer...@ya...> - 2009-10-11 20:19:44
|
Buanas tardes, Cuando trato de compilar me aparece el siguiente error invalid BFD target `dynamic' , y no se genera el .exe, al parecer es un error en el link, por favor necesito ayuda pues he intentado varias cosas y ninguna funciona y en google aparece muy poca documentación al respecto. saludos merlin |
From: hiba h. <hh...@gm...> - 2009-11-30 19:22:48
|
hello I m using devcpp for a very short time and I have homework about applying notch filter on an image using devcpp and I have no idea about how I can do that would you please help me help me to do that homework i'm very herry and lost please replay my message and don't forget me |
From: Kathleen E. <k.a...@at...> - 2010-09-07 10:22:23
|
http://lonewolf21.lo.funpic.de/en.php |
From: William Mc C. <wil...@ms...> - 2010-10-04 21:31:52
|
http://studiokmg.com/44_7.html |
From: William Mc C. <wil...@ms...> - 2010-10-06 10:16:10
|
http://web121000.rex13.flatbooster.com/f1.html |
From: William Mc C. <wil...@ms...> - 2010-10-06 14:54:34
|
http://bacaflotte.com/44_7.html |
From: William Mc C. <wil...@ms...> - 2010-10-07 14:18:54
|
http://www.veneraimmobili.com/und7.html |
From: William Mc C. <wil...@ms...> - 2010-10-08 16:06:43
|
http://dariopellicani.com/44_7.html |
From: William Mc C. <wil...@ms...> - 2010-10-08 23:54:47
|
http://sveti-primoz.zxq.net/44_7.html |
From: William Mc C. <wil...@ms...> - 2010-10-09 05:56:52
|
http://www.parrocchiasantantonioabate.it/44_7.html |
From: William Mc C. <wil...@ms...> - 2010-10-09 21:54:31
|
http://hermesite.com/44_7.html |
From: William Mc C. <wil...@ms...> - 2010-10-10 08:39:28
|
http://zanonweb.com/44_7.html |