dev-cpp-users Mailing List for Dev-C++ (Page 2)
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
You can subscribe to this list here.
2000 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(15) |
Oct
(115) |
Nov
(154) |
Dec
(258) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2001 |
Jan
(377) |
Feb
(260) |
Mar
(249) |
Apr
(188) |
May
(152) |
Jun
(150) |
Jul
(195) |
Aug
(202) |
Sep
(200) |
Oct
(286) |
Nov
(242) |
Dec
(165) |
2002 |
Jan
(245) |
Feb
(241) |
Mar
(239) |
Apr
(346) |
May
(406) |
Jun
(369) |
Jul
(418) |
Aug
(357) |
Sep
(362) |
Oct
(597) |
Nov
(455) |
Dec
(344) |
2003 |
Jan
(446) |
Feb
(397) |
Mar
(515) |
Apr
(524) |
May
(377) |
Jun
(387) |
Jul
(532) |
Aug
(364) |
Sep
(294) |
Oct
(352) |
Nov
(295) |
Dec
(327) |
2004 |
Jan
(416) |
Feb
(318) |
Mar
(324) |
Apr
(249) |
May
(259) |
Jun
(218) |
Jul
(212) |
Aug
(259) |
Sep
(158) |
Oct
(162) |
Nov
(214) |
Dec
(169) |
2005 |
Jan
(111) |
Feb
(165) |
Mar
(199) |
Apr
(147) |
May
(131) |
Jun
(163) |
Jul
(235) |
Aug
(136) |
Sep
(84) |
Oct
(88) |
Nov
(113) |
Dec
(100) |
2006 |
Jan
(85) |
Feb
(119) |
Mar
(33) |
Apr
(31) |
May
(56) |
Jun
(68) |
Jul
(18) |
Aug
(62) |
Sep
(33) |
Oct
(55) |
Nov
(19) |
Dec
(40) |
2007 |
Jan
(22) |
Feb
(49) |
Mar
(34) |
Apr
(51) |
May
(66) |
Jun
(43) |
Jul
(116) |
Aug
(57) |
Sep
(70) |
Oct
(69) |
Nov
(97) |
Dec
(86) |
2008 |
Jan
(32) |
Feb
(47) |
Mar
(106) |
Apr
(67) |
May
(28) |
Jun
(39) |
Jul
(31) |
Aug
(25) |
Sep
(18) |
Oct
(25) |
Nov
(5) |
Dec
(21) |
2009 |
Jan
(33) |
Feb
(27) |
Mar
(27) |
Apr
(22) |
May
(22) |
Jun
(10) |
Jul
(17) |
Aug
(9) |
Sep
(21) |
Oct
(13) |
Nov
(4) |
Dec
(11) |
2010 |
Jan
(10) |
Feb
(8) |
Mar
(4) |
Apr
(1) |
May
|
Jun
(2) |
Jul
|
Aug
(1) |
Sep
(8) |
Oct
(26) |
Nov
(9) |
Dec
(1) |
2011 |
Jan
(21) |
Feb
(16) |
Mar
(4) |
Apr
(19) |
May
(26) |
Jun
(9) |
Jul
(6) |
Aug
|
Sep
(4) |
Oct
(3) |
Nov
(2) |
Dec
(1) |
2012 |
Jan
(4) |
Feb
(7) |
Mar
(4) |
Apr
|
May
(1) |
Jun
(10) |
Jul
(1) |
Aug
(1) |
Sep
(18) |
Oct
(3) |
Nov
(1) |
Dec
(1) |
2013 |
Jan
(4) |
Feb
(2) |
Mar
(15) |
Apr
(6) |
May
(1) |
Jun
(3) |
Jul
(1) |
Aug
(2) |
Sep
(4) |
Oct
|
Nov
(9) |
Dec
|
2014 |
Jan
(4) |
Feb
(1) |
Mar
|
Apr
|
May
|
Jun
|
Jul
(5) |
Aug
(4) |
Sep
|
Oct
(2) |
Nov
(1) |
Dec
(4) |
2015 |
Jan
(2) |
Feb
(3) |
Mar
(1) |
Apr
(2) |
May
(1) |
Jun
(2) |
Jul
|
Aug
(1) |
Sep
(2) |
Oct
(9) |
Nov
(35) |
Dec
(6) |
2016 |
Jan
(7) |
Feb
(10) |
Mar
(10) |
Apr
(9) |
May
(13) |
Jun
(9) |
Jul
(1) |
Aug
(3) |
Sep
(3) |
Oct
(1) |
Nov
(1) |
Dec
|
2017 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(1) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2018 |
Jan
|
Feb
|
Mar
(1) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2019 |
Jan
(1) |
Feb
|
Mar
|
Apr
(2) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2020 |
Jan
(1) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
S | M | T | W | T | F | S |
---|---|---|---|---|---|---|
1
(2) |
2
(5) |
3
(3) |
4
(6) |
5
(9) |
6
(2) |
7
(2) |
8
|
9
|
10
(1) |
11
(1) |
12
(1) |
13
(2) |
14
|
15
|
16
(4) |
17
|
18
|
19
(1) |
20
|
21
|
22
|
23
|
24
(4) |
25
|
26
(6) |
27
|
28
(1) |
29
(1) |
30
|
|
|
|
|
|
From: super.ismiti <sup...@gm...> - 2007-04-06 19:01:40
|
Hi, I'm starting to work with C++ and I don't know too much about the errors... I've already searched about (core dumped) in the Internet, but I've not understood it yet. I have a program that I need run in the OS Linux. This program is working correctly. But I made an extension to this program and I compiled this one again, it seemed work right. But when I run this program now an error is showed: Segmentation fault (core dumped). I don't understand what it can be. What kind of error is it... If you could explain to me what this error is about, probably I will be able to find the error that could be in my source. The structure of the files are: - I created two files: file.cc and file.h - I run make (with a Makefile file) command in the shell and it works correctly - I run the program (./program), that will use the files that I created and the error is showed I really appreciate any kind of help! Thanks in advance, Ricardo. |
From: Reid T. <Rei...@at...> - 2007-04-05 12:40:26
|
Peeyush Bishnoi wrote: > > > I think that PWM has understand the problem correctly...i want that > backend should be c++ ouput which is real time data & frontend should > be HTML interface . So how we will do it..please help me... > I gone thru code2html but it working on c++ source code not on output > of c++... > > please help me ... > google for libcgi and libcgi++ etcetera -- there are numerous libraries that have been developed for such things |
From: Peeyush B. <pee...@re...> - 2007-04-05 12:33:19
|
=0AI think that PWM has understand the problem correctly...i want that back= end should be c++ ouput which is real time data & frontend should be HTML i= nterface . So how we will do it..please help me...=0AI gone thru code2html = but it working on c++ source code not on output of c++...=0A=0Aplease help = me ...=0A=0A---=0APeeyush Bishnoi=0A=0A=0AOn Thu, 05 Apr 2007 Per Westermar= k wrote :=0A>But the question here is:=0A>=0A>Is it the source code that sh= ould be converted to HTML format, or do the=0A>OP want to create HTML data = dynamically?=0A>=0A>If it's the second alternative, it is enough to just in= sert HTML tags in=0A>the data that is printed or written to file.=0A>=0A>/p= wm=0A>=0A>On Thu, 5 Apr 2007, Zongliang, Quan wrote:=0A>=0A> > Try it:=0A> = >=0A> > *nix:=0A> > http://www.palfrader.org/code2html/=0A> > Windows:=0A> = > http://www.codeproject.com/Purgatory/CPPtoHTML.asp=0A> >=0A> > It's reall= y simple. You can write one using C++.=0A> >=0A> > Regards.=0A> > Quan=0A> = >=0A> >=0A> > On 5 Apr 2007 07:25:05 -0000=0A> > "Peeyush Bishnoi" <peeyus= hvi...@re...> wrote:=0A> >=0A> > >=0A> > >=0A> > > I want to kno= w how to print the output of C++ program to HTML. Means a utility to conver= t your C++ code output should be printed to HTML file.=0A> > >=0A> > > Plea= se give your valuable suggestions.=0A> > >=0A> > > Thank you=0A> > >=0A> > = > regards=0A> > > Peeyush Bishnoi=0A> >=0A> > -----------------------------= ------------------=0A> > Zongliang Quan=0A> > qua...@gm...,quanz= ong...@ho...=0A> > Admin by=0A> > http://postgresql.oss.tw=0A> > ht= tp://postgresql-chinese.blogspot.com=0A> >=0A> >=0A> > --------------------= -----------------------------------------------------=0A> > Take Surveys. E= arn Cash. Influence the Future of IT=0A> > Join SourceForge.net's Techsay p= anel and you'll get the chance to share your=0A> > opinions on IT & busines= s topics through brief surveys-and earn cash=0A> > http://www.techsay.com/d= efault.php?page=3Djoin.php&p=3Dsourceforge&CID=3DDEVDEV=0A> > _____________= __________________________________=0A> > Dev-cpp-users mailing list=0A> > D= ev-...@li...=0A> > TO UNSUBSCRIBE: http://www23.brink= ster.com/noicys/devcpp/ub.htm=0A> > https://lists.sourceforge.net/lists/lis= tinfo/dev-cpp-users=0A> >=0A>=0A |
From: Jonathan W. <jon...@gm...> - 2007-04-05 08:57:26
|
Hi, I don't believe there is a built-in way of doing this with custom structures, so you'll have to do it yourself: Iterate over the array of associates, and build a vector with the assoc.num= or assoc.chr On the other hand, you might want to look into the STL 'map' class, which maintains pairs of keys and values Yours, Jonathan On 4/5/07, Albert Jardinier <a_j...@ho...> wrote: > > > Dear friends, > > I am new to C++ programming and I am having some difficulty using a piece > of > code I have found on the web. All it does, is sorting an array of pairs > (a,b) in an increasing order. In the present code, the output is also > pairs > (a,b) where only the "a" elements are ordered. My question is: How can = I > extract from the output only the arrays of "a's" or the array of "b's" > separately? > I would appreciate if you could help me or refer me a specific site where > I > could understand better the realated issues. > > Regards, > > Alberto > > > > // sort.cpp > // > > #include <stdio.h> > #include <stdlib.h> > > #include <iostream> > #include <algorithm> > > #include <vector> > #include <functional> > > using namespace std; > > struct associate > { > double num; > int chr; > > associate(double n, int c) : num(n), chr(c){}; > associate() : num(0), chr('\0'){}; > }; > > bool operator<(const associate &x, const associate &y) > { > return x.num < y.num; > } > > > ostream& operator<<(ostream &s, const associate &x) > { > return s << "<" << x.num << ";" << x.chr << ">"; > } > > int main () > { > vector<associate>::iterator i, j, k; > > double *A =3D new double[5]; > int *B =3D new int[5]; > > associate arr[5]; > for (int a=3D0; a<5; a++) { > scanf("%lf %d", &A[a], &B[a] ); > arr[a] =3D associate(A[a], B[a]); > } > > // Set up vectors > vector<associate> v(arr, arr+5), v1((size_t)5), > v2((size_t)5); > > // Copy original vector to vectors #1 and #2 > copy(v.begin(), v.end(), v1.begin()); > copy(v.begin(), v.end(), v2.begin()); > > // Sort vector #1 > sort(v1.begin(), v1.end()); > > // Stable sort vector #2 > stable_sort(v2.begin(), v2.end()); > > // Display the results > cout << "Original sort stable_sort" << endl; > for(i =3D v.begin(), j =3D v1.begin(), k =3D v2.begin(); > i !=3D v.end(); i++, j++, k++) > cout << *i << " " << *j << " " << *k << endl; > > return 0; > } > > _________________________________________________________________ > Don't waste time standing in line=97try shopping online. Visit Sympatico = / > MSN > Shopping today! http://shopping.sympatico.msn.ca > > > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share > your > opinions on IT & business topics through brief surveys-and earn cash > http://www.techsay.com/default.php?page=3Djoin.php&p=3Dsourceforge&CID=3D= DEVDEV > _______________________________________________ > 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 > > --=20 <Morpheus> linux, c'est une question de VI ou de MORE |
From: Zongliang, Q. <qua...@gm...> - 2007-04-05 08:37:41
|
Sorry. My mistake. On Thu, 5 Apr 2007 10:06:51 +0200 (CEST) Per Westermark <pw...@ia...> wrote: > But the question here is: > > Is it the source code that should be converted to HTML format, or do the > OP want to create HTML data dynamically? > > If it's the second alternative, it is enough to just insert HTML tags in > the data that is printed or written to file. > > /pwm > > On Thu, 5 Apr 2007, Zongliang, Quan wrote: > > > Try it: > > > > *nix: > > http://www.palfrader.org/code2html/ > > Windows: > > http://www.codeproject.com/Purgatory/CPPtoHTML.asp > > > > It's really simple. You can write one using C++. > > > > Regards. > > Quan > > > > > > On 5 Apr 2007 07:25:05 -0000 > > "Peeyush Bishnoi" <pee...@re...> wrote: > > > > > > > > > > > I want to know how to print the output of C++ program to HTML. Means a utility to convert your C++ code output should be printed to HTML file. > > > > > > Please give your valuable suggestions. > > > > > > Thank you > > > > > > regards > > > Peeyush Bishnoi > > > > ----------------------------------------------- > > Zongliang Quan > > qua...@gm...,qua...@ho... > > Admin by > > http://postgresql.oss.tw > > http://postgresql-chinese.blogspot.com > > > > > > ------------------------------------------------------------------------- > > Take Surveys. Earn Cash. Influence the Future of IT > > Join SourceForge.net's Techsay panel and you'll get the chance to share your > > opinions on IT & business topics through brief surveys-and earn cash > > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > > _______________________________________________ > > 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 > > ----------------------------------------------- Zongliang Quan qua...@gm...,qua...@ho... Admin by http://postgresql.oss.tw http://postgresql-chinese.blogspot.com |
From: Albert J. <a_j...@ho...> - 2007-04-05 08:37:15
|
Dear friends, I am new to C++ programming and I am having some difficulty using a piece of code I have found on the web. All it does, is sorting an array of pairs (a,b) in an increasing order. In the present code, the output is also pairs (a,b) where only the "a" elements are ordered. My question is: How can I extract from the output only the arrays of "a's" or the array of "b's" separately? I would appreciate if you could help me or refer me a specific site where I could understand better the realated issues. Regards, Alberto // sort.cpp // #include <stdio.h> #include <stdlib.h> #include <iostream> #include <algorithm> #include <vector> #include <functional> using namespace std; struct associate { double num; int chr; associate(double n, int c) : num(n), chr(c){}; associate() : num(0), chr('\0'){}; }; bool operator<(const associate &x, const associate &y) { return x.num < y.num; } ostream& operator<<(ostream &s, const associate &x) { return s << "<" << x.num << ";" << x.chr << ">"; } int main () { vector<associate>::iterator i, j, k; double *A = new double[5]; int *B = new int[5]; associate arr[5]; for (int a=0; a<5; a++) { scanf("%lf %d", &A[a], &B[a] ); arr[a] = associate(A[a], B[a]); } // Set up vectors vector<associate> v(arr, arr+5), v1((size_t)5), v2((size_t)5); // Copy original vector to vectors #1 and #2 copy(v.begin(), v.end(), v1.begin()); copy(v.begin(), v.end(), v2.begin()); // Sort vector #1 sort(v1.begin(), v1.end()); // Stable sort vector #2 stable_sort(v2.begin(), v2.end()); // Display the results cout << "Original sort stable_sort" << endl; for(i = v.begin(), j = v1.begin(), k = v2.begin(); i != v.end(); i++, j++, k++) cout << *i << " " << *j << " " << *k << endl; return 0; } _________________________________________________________________ Dont waste time standing in linetry shopping online. Visit Sympatico / MSN Shopping today! http://shopping.sympatico.msn.ca |
From: Peeyush B. <pee...@re...> - 2007-04-05 08:17:00
|
=0AThanxs a lot...=0A=0AOn Thu, 05 Apr 2007 Zongliang,Quan wrote :=0A>Try= it:=0A>=0A>*nix:=0A>http://www.palfrader.org/code2html/=0A>Windows:=0A>htt= p://www.codeproject.com/Purgatory/CPPtoHTML.asp=0A>=0A>It's really simple. = You can write one using C++.=0A>=0A>Regards.=0A>Quan=0A>=0A>=0A>On 5 Apr 20= 07 07:25:05 -0000=0A>"Peeyush Bishnoi" <pee...@re...> wro= te:=0A>=0A> >=0A> >=0A> > I want to know how to print the output of C++ pro= gram to HTML. Means a utility to convert your C++ code output should be pri= nted to HTML file.=0A> >=0A> > Please give your valuable suggestions.=0A> >= =0A> > Thank you=0A> >=0A> > regards=0A> > Peeyush Bishnoi=0A>=0A>---------= --------------------------------------=0A>Zongliang Quan=0A>quanzongliang@g= mail.com,qua...@ho...=0A>Admin by=0A>http://postgresql.oss.tw= =0A>http://postgresql-chinese.blogspot.com=0A>=0A |
From: Per W. <pw...@ia...> - 2007-04-05 08:07:06
|
But the question here is: Is it the source code that should be converted to HTML format, or do the OP want to create HTML data dynamically? If it's the second alternative, it is enough to just insert HTML tags in the data that is printed or written to file. /pwm On Thu, 5 Apr 2007, Zongliang, Quan wrote: > Try it: > > *nix: > http://www.palfrader.org/code2html/ > Windows: > http://www.codeproject.com/Purgatory/CPPtoHTML.asp > > It's really simple. You can write one using C++. > > Regards. > Quan > > > On 5 Apr 2007 07:25:05 -0000 > "Peeyush Bishnoi" <pee...@re...> wrote: > > > > > > > I want to know how to print the output of C++ program to HTML. Means a utility to convert your C++ code output should be printed to HTML file. > > > > Please give your valuable suggestions. > > > > Thank you > > > > regards > > Peeyush Bishnoi > > ----------------------------------------------- > Zongliang Quan > qua...@gm...,qua...@ho... > Admin by > http://postgresql.oss.tw > http://postgresql-chinese.blogspot.com > > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys-and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > 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 > |
From: Zongliang, Q. <qua...@gm...> - 2007-04-05 07:54:57
|
Try it: *nix: http://www.palfrader.org/code2html/ Windows: http://www.codeproject.com/Purgatory/CPPtoHTML.asp It's really simple. You can write one using C++. Regards. Quan On 5 Apr 2007 07:25:05 -0000 "Peeyush Bishnoi" <pee...@re...> wrote: > > > I want to know how to print the output of C++ program to HTML. Means a utility to convert your C++ code output should be printed to HTML file. > > Please give your valuable suggestions. > > Thank you > > regards > Peeyush Bishnoi ----------------------------------------------- Zongliang Quan qua...@gm...,qua...@ho... Admin by http://postgresql.oss.tw http://postgresql-chinese.blogspot.com |
From: Peeyush B. <pee...@re...> - 2007-04-05 07:29:22
|
=0A=0AI want to know how to print the output of C++ program to HTML. Mean= s a utility to convert your C++ code output should be printed to HTML file.= =0A=0APlease give your valuable suggestions. =0A=0AThank you =0A=0Aregards= =0APeeyush Bishnoi |
From: Thymian <Th...@gm...> - 2007-04-04 17:34:18
|
Peter Hewitt schrieb: > I have a few points on a graph, and would like a C++ function that > calculates a best fit equation such as a n degree polynomial. > > Are there functions already available to do this, or any ideas how I would > write one. > I've checked on the web but can't seem to find anything useful. > > Thanks, > Pete > > I recommend you to use a special form of polynomial interpolation, the "spline interpolation". After understanding the mathematical background, it is relatively easy to implement a spline function into a given computer language like C or C++. Years ago I implemented it even in assembler for an embedded real-time system with very restricted hardware ressources, later in C, when RAM and EEPROM together with the 8/16-bit microcontroller become cheaper. http://de.wikipedia.org/wiki/Spline http://de.wikipedia.org/wiki/Spline-Interpolation http://en.wikipedia.org/wiki/Spline_%28mathematics%29 http://en.wikipedia.org/wiki/Spline_interpolation If you are too lazy to implement it by your own, you could try to use the GSL (GNU Scientific Library). The GNU Scientific Library (GSL) is a numerical library for C and C++ programmers. It is free software under the GNU General Public License. The library provides a wide range of mathematical routines such as interpolation, polynomials, random number generators, special functions and least-squares fitting. There are over 1000 functions in total with an extensive test suite. http://www.gnu.org/software/gsl/ http://www.gnu.org/software/gsl/manual/html_node/ http://www.gnu.org/software/gsl/manual/html_node/Interpolation.html Another possibility for your purpose could be Scilab / Scicos, an "open source" scientific math package, IMHO written in C / C++ and its source code free available. You could try to extract pieces of the source code that you need. http://en.wikipedia.org/wiki/Scilab To try an example with your values (points in your graph) there is a spline calculator, written in Java, that you could take a look at: http://www.arndt-bruenner.de/mathe/scripts/kubspline.htm#rechner I hope your German is better then my English ;-) Gruß, Werner Kitzmann . |
From: Jonathan W. <jon...@gm...> - 2007-04-04 12:43:59
|
Hi, These links are indeed interesting about Free Software, but freeware is something different, and isn't the subject of this discussion http://en.wikipedia.org/wiki/Freeware#Comparison_with_other_terms For standard C++ programs, you shouldn't need anything more than Dev-cpp, unless you are using third-party libraries Gtk/gtkmm, I managed to use with no major problems with Dev-cpp: simply install the libraries, configured and used pkg-config to get the adequate compiler/linker flags, and inserted them into the project's options. Qt, I am not very familiar with, however I believe there is an IDE included. (QtDesigner, anyone?) Yours, Jonathan On 4/4/07, Zongliang, Quan <qua...@gm...> wrote: > > > Sorry for my bad English. > > You can see below website to understand freeware: > www.gnu.org > www.opensource.org > > Extract from GNU: > When we speak of "free software", we're talking about freedom, not price. > (Think of "free speech", not "free beer".) Specifically, it means that a > user is free to run the program, change the program, and redistribute > the program with or without changes. > > Goog luck! > > Regards. > Quan > > On Wed, 04 Apr 2007 10:02:55 +0000 > "Muhammad Ammar" <amm...@ho...> wrote: > > > Hello everyone > > > > Hope everyone is in good health. > > > > > > I have recently downloaded the Dev-C++ 4.9.9.2 IDE bundled with open > source > > MinGW compiler. I want to write > > > > --Standard C++ Applications > > --Qt Applications > > > > Can you please tell me a step by step procedure, what other things(i.e; > > tools, libraries etc.) i need to write the desired applications. > > > > I have no knowledge of open source tools/compilers/libraries (MinGW, GCC > > etc.). > > > > Currently i am using Microsoft Visual C++, but now i want write open > source > > application, therefore i want to use open source > tools/compilers/libraries. > > > > I am using Microsoft Windows XP Pro SP2. > > > > Please help me for the above problem. Looking for your kind response. > > > > > > Best Regards > > > > Muhammad Ammar > > > > _________________________________________________________________ > > Download Messenger. Join the i知 Initiative. Help make a difference > today. > > http://im.live.com/messenger/im/home/?source=TAGHM_APR07 > > > > > > ----------------------------------------------- > Zongliang Quan > qua...@gm...,qua...@ho... > Admin by > http://postgresql.oss.tw > http://postgresql-chinese.blogspot.com > > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share > your > opinions on IT & business topics through brief surveys-and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > 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 > -- <Morpheus> linux, c'est une question de VI ou de MORE |
From: Zongliang, Q. <qua...@gm...> - 2007-04-04 10:25:25
|
Sorry for my bad English. You can see below website to understand freeware: www.gnu.org www.opensource.org Extract from GNU: When we speak of "free software", we're talking about freedom, not price. (Think of "free speech", not "free beer".) Specifically, it means that a user is free to run the program, change the program, and redistribute the program with or without changes. Goog luck! Regards. Quan On Wed, 04 Apr 2007 10:02:55 +0000 "Muhammad Ammar" <amm...@ho...> wrote: > Hello everyone > > Hope everyone is in good health. > > > I have recently downloaded the Dev-C++ 4.9.9.2 IDE bundled with open source > MinGW compiler. I want to write > > --Standard C++ Applications > --Qt Applications > > Can you please tell me a step by step procedure, what other things(i.e; > tools, libraries etc.) i need to write the desired applications. > > I have no knowledge of open source tools/compilers/libraries (MinGW, GCC > etc.). > > Currently i am using Microsoft Visual C++, but now i want write open source > application, therefore i want to use open source tools/compilers/libraries. > > I am using Microsoft Windows XP Pro SP2. > > Please help me for the above problem. Looking for your kind response. > > > Best Regards > > Muhammad Ammar > > _________________________________________________________________ > Download Messenger. Join the i知 Initiative. Help make a difference today. > http://im.live.com/messenger/im/home/?source=TAGHM_APR07 > > ----------------------------------------------- Zongliang Quan qua...@gm...,qua...@ho... Admin by http://postgresql.oss.tw http://postgresql-chinese.blogspot.com |
From: Peter H. <pet...@ho...> - 2007-04-04 10:20:51
|
I have a few points on a graph, and would like a C++ function that calculates a best fit equation such as a n degree polynomial. Are there functions already available to do this, or any ideas how I would write one. I've checked on the web but can't seem to find anything useful. Thanks, Pete _________________________________________________________________ Solve the Conspiracy and win fantastic prizes. http://www.theconspiracygame.co.uk/ |
From: Muhammad A. <amm...@ho...> - 2007-04-04 10:03:07
|
Hello everyone Hope everyone is in good health. I have recently downloaded the Dev-C++ 4.9.9.2 IDE bundled with open source MinGW compiler. I want to write --Standard C++ Applications --Qt Applications Can you please tell me a step by step procedure, what other things(i.e; tools, libraries etc.) i need to write the desired applications. I have no knowledge of open source tools/compilers/libraries (MinGW, GCC etc.). Currently i am using Microsoft Visual C++, but now i want write open source application, therefore i want to use open source tools/compilers/libraries. I am using Microsoft Windows XP Pro SP2. Please help me for the above problem. Looking for your kind response. Best Regards Muhammad Ammar _________________________________________________________________ Download Messenger. Join the im Initiative. Help make a difference today. http://im.live.com/messenger/im/home/?source=TAGHM_APR07 |
From: Quan Zongliang(Gmail) <qua...@gm...> - 2007-04-04 02:14:26
|
Example at http://en.wikipedia.org/wiki/Dynamic_link_library: #include <windows.h> #include <stdio.h> // DLL function signature typedef double (*importFunction)(double, double); int main(int argc, char **argv) { importFunction addNumbers; double result; // Load DLL file HINSTANCE hinstLib = LoadLibrary("Example.dll"); if (hinstLib == NULL) { printf("ERROR: unable to load DLL\n"); return 1; } // Get function pointer addNumbers = (importFunction)GetProcAddress(hinstLib, "AddNumbers"); if (addNumbers == NULL) { printf("ERROR: unable to find DLL function\n"); FreeLibrary(hinstLib); return 1; } // Call function. result = addNumbers(1, 2); // Unload DLL file FreeLibrary(hinstLib); // Display result printf("The result was: %f\n", result); return 0; } Regards. On Tue, 3 Apr 2007 16:46:41 +0100 "Pedro Sousa" <ped...@gm...> wrote: > Hi, > > Sorry for the silly question, but I've not find the solution throw googling. > > How can I use dll files in a Dev-C++ project. I need to use functions > declared in a dll file and I didn't found how can I do it. > > Thanks in advance > Pedro Sousa ----------------------------------------------- Zongliang Quan qua...@gm...,qua...@ho... Admin by http://postgresql.oss.tw http://postgresql-chinese.blogspot.com |
From: Pedro S. <ped...@gm...> - 2007-04-03 15:46:43
|
Hi, Sorry for the silly question, but I've not find the solution throw googling. How can I use dll files in a Dev-C++ project. I need to use functions declared in a dll file and I didn't found how can I do it. Thanks in advance Pedro Sousa |
From: Noorez K. <lor...@ho...> - 2007-04-03 04:57:08
|
You can use the Win32 API to do GUI programming, or you can use the wxWidg= ets library. I would strongly suggest the wxWidgets library. It makes GUI p= rogramming quite easy with some practice. I would also suggest the "wxDev-= C++ IDE". It uses the wxWigets library to do form editing making GUI progra= mming even easier.=20 Good luck! From: gor...@ho...To: dev...@li...Date: M= on, 2 Apr 2007 20:31:52 -0400Subject: [Dev-C++] C++ Post I don't understand, in a .DEV project, how to ADD CONTENT to a WINDOWS APP = window. Examples: -adding radio, text, and Check Boxes-Plain text-links-but= tons (to submit forms, etc.) Could someone tell me where & how to add these= things to a w Take a break and play crossword puzzles - FREE! Play Now!=20 _________________________________________________________________ Connect to the next generation of MSN Messenger=A0 http://imagine-msn.com/messenger/launch80/default.aspx?locale=3Den-us&sourc= e=3Dwlmailtagline= |
From: Jason G. <gor...@ho...> - 2007-04-03 00:31:59
|
I don't understand, in a .DEV project, how to ADD CONTENT to a WINDOWS APP = window. =20 Examples: =20 -adding radio, text, and Check Boxes -Plain text -links -buttons (to submit forms, etc.) =20 Could someone tell me where & how to add these things to a w _________________________________________________________________ Take a break and play crossword puzzles - FREE! http://games.msn.com/en/flexicon/default.htm?icid=3Dflexicon_ wlmemailtagli= nemarch07= |
From: Per W. <pw...@ia...> - 2007-04-02 12:51:10
|
The overhead might be expensive for an application that needs to use system("pause") in a loop. But as a final call before hanging there, waiting for the execution to end, you can ignore the cost. Even in a global perspective, the inefficiency is minimal compared to applications written in some other languages. /pwm On Mon, 2 Apr 2007, Jonathan Winterflood wrote: > Indeed, in a general case, (and esp. in Unix), there are tools that are > easily used this way (and are definitely designed to). > In the case of system('pause'), however, it's really an overkill, since the > command only does something trivial to do in code (plus the overhead...) > > Jonathan > > On 4/2/07, Per Westermark <pw...@ia...> wrote: > > > > Calling system functions isn't necessarily extra unsafe, and it isn't as > > simple as being bad if the OS does some of the work. > > > > When developing for unix, the majority of all command-line utilities are > > intended for interaction with other applications. Either externally - by > > letting the user piping data between the applications - or internally, by > > making use of popen() to directly read the output of other applications. > > > > It should be noted, that in an M$ world, it is practically impossible to > > write a truly portable application. Why? M$ have decided to rename a large > > number of standard C functions - giving them an initial '_' character in > > the name. > > > > /Per W > > > > On Mon, 2 Apr 2007, Jonathan Winterflood wrote: > > > > > Indeed, system('pause') is rather messy (plus it's not really portable) > > > I usually do a system('pause') as a quick fix in the early stages of > > setting > > > up a program, I guess I'll use cin.get() from now on :) > > > > > > This would make the program so: > > > > > > #include <iostream> > > > using namespace std; > > > int main() > > > { > > > //say hello :) > > > cout<<"Hello World!\n"; > > > > > > //wait for user keypress > > > int pressed = cin.get(); > > > > > > //ignores an extra keypress > > > cin.ignore(); > > > > > > /* > > > do some more things here > > > */ > > > } > > > > > > But why should I ignore an extra character in the input, since the > > cin.get() > > > will eat the key the user pressed? > > > could it be a '\n' vs. '\r\n' issue ? > > > > > > Jonathan > > > > > > On 4/2/07, Amy...@ao... <Amy...@ao...> wrote: > > > > > > > > you really should not use system calls in a program unless you really > > > > need it. They are unsafe, and it sort of gets the OS to do the work > > for you. > > > > It is always safer and better practice to use cin.get() instead of > > > > system("pause") > > > > > > > > Yiu can add cin.ignore() under cin.get() if you use cin in the program > > as > > > > an input object, but not all compilers need this, the mingw one does > > however > > > > > > > > > > > > > > -- > <Morpheus> linux, c'est une question de VI ou de MORE > |
From: Jonathan W. <jon...@gm...> - 2007-04-02 12:44:20
|
Indeed, in a general case, (and esp. in Unix), there are tools that are easily used this way (and are definitely designed to). In the case of system('pause'), however, it's really an overkill, since the command only does something trivial to do in code (plus the overhead...) Jonathan On 4/2/07, Per Westermark <pw...@ia...> wrote: > > Calling system functions isn't necessarily extra unsafe, and it isn't as > simple as being bad if the OS does some of the work. > > When developing for unix, the majority of all command-line utilities are > intended for interaction with other applications. Either externally - by > letting the user piping data between the applications - or internally, by > making use of popen() to directly read the output of other applications. > > It should be noted, that in an M$ world, it is practically impossible to > write a truly portable application. Why? M$ have decided to rename a large > number of standard C functions - giving them an initial '_' character in > the name. > > /Per W > > On Mon, 2 Apr 2007, Jonathan Winterflood wrote: > > > Indeed, system('pause') is rather messy (plus it's not really portable) > > I usually do a system('pause') as a quick fix in the early stages of > setting > > up a program, I guess I'll use cin.get() from now on :) > > > > This would make the program so: > > > > #include <iostream> > > using namespace std; > > int main() > > { > > //say hello :) > > cout<<"Hello World!\n"; > > > > //wait for user keypress > > int pressed = cin.get(); > > > > //ignores an extra keypress > > cin.ignore(); > > > > /* > > do some more things here > > */ > > } > > > > But why should I ignore an extra character in the input, since the > cin.get() > > will eat the key the user pressed? > > could it be a '\n' vs. '\r\n' issue ? > > > > Jonathan > > > > On 4/2/07, Amy...@ao... <Amy...@ao...> wrote: > > > > > > you really should not use system calls in a program unless you really > > > need it. They are unsafe, and it sort of gets the OS to do the work > for you. > > > It is always safer and better practice to use cin.get() instead of > > > system("pause") > > > > > > Yiu can add cin.ignore() under cin.get() if you use cin in the program > as > > > an input object, but not all compilers need this, the mingw one does > however > > > > > > > -- <Morpheus> linux, c'est une question de VI ou de MORE |
From: Per W. <pw...@ia...> - 2007-04-02 10:48:08
|
Calling system functions isn't necessarily extra unsafe, and it isn't as simple as being bad if the OS does some of the work. When developing for unix, the majority of all command-line utilities are intended for interaction with other applications. Either externally - by letting the user piping data between the applications - or internally, by making use of popen() to directly read the output of other applications. It should be noted, that in an M$ world, it is practically impossible to write a truly portable application. Why? M$ have decided to rename a large number of standard C functions - giving them an initial '_' character in the name. /Per W On Mon, 2 Apr 2007, Jonathan Winterflood wrote: > Indeed, system('pause') is rather messy (plus it's not really portable) > I usually do a system('pause') as a quick fix in the early stages of setting > up a program, I guess I'll use cin.get() from now on :) > > This would make the program so: > > #include <iostream> > using namespace std; > int main() > { > //say hello :) > cout<<"Hello World!\n"; > > //wait for user keypress > int pressed = cin.get(); > > //ignores an extra keypress > cin.ignore(); > > /* > do some more things here > */ > } > > But why should I ignore an extra character in the input, since the cin.get() > will eat the key the user pressed? > could it be a '\n' vs. '\r\n' issue ? > > Jonathan > > On 4/2/07, Amy...@ao... <Amy...@ao...> wrote: > > > > you really should not use system calls in a program unless you really > > need it. They are unsafe, and it sort of gets the OS to do the work for you. > > It is always safer and better practice to use cin.get() instead of > > system("pause") > > > > Yiu can add cin.ignore() under cin.get() if you use cin in the program as > > an input object, but not all compilers need this, the mingw one does however > > > |
From: Jonathan W. <jon...@gm...> - 2007-04-02 09:50:37
|
Indeed, system('pause') is rather messy (plus it's not really portable) I usually do a system('pause') as a quick fix in the early stages of setting up a program, I guess I'll use cin.get() from now on :) This would make the program so: #include <iostream> using namespace std; int main() { //say hello :) cout<<"Hello World!\n"; //wait for user keypress int pressed = cin.get(); //ignores an extra keypress cin.ignore(); /* do some more things here */ } But why should I ignore an extra character in the input, since the cin.get() will eat the key the user pressed? could it be a '\n' vs. '\r\n' issue ? Jonathan On 4/2/07, Amy...@ao... <Amy...@ao...> wrote: > > you really should not use system calls in a program unless you really > need it. They are unsafe, and it sort of gets the OS to do the work for you. > It is always safer and better practice to use cin.get() instead of > system("pause") > > Yiu can add cin.ignore() under cin.get() if you use cin in the program as > an input object, but not all compilers need this, the mingw one does however > |
From: Jonathan W. <jon...@gm...> - 2007-04-02 08:11:30
|
Hi, I'm not sure this is the exact problem, but the code you posted isn't the correct way to use system("pause"): It should be inside the 'main', like so #include <iostream> using namespace std; int main() { cout<<"Hello World!\n"; system("pause"); } why dev-cpp didn't warn you loudly, I don't know... Also, if writing twice the same program doesn't seem to yield the same results, I'd try to make sure the program is getting recompiled properly (try deleting all the .exe, .o, and Makefile.win, also, try make clean [Rebuild all in dev-ccp I think]) Jonathan On 1 Apr 2007 17:15:28 -0000, Devashish Shanker < dev...@re...> wrote: > > (pwm and Aamynuttal, please ignore this message) > Hi! > I've a very unique problem about execution of Cpp. > I entered the code and the source was compiled without any errors. The > windows application was created, but didn't open (or it opened for a split > second and closed). I tried system("pause"); the result was that an > application opened, saying "press any key to continue", but the expected > output was not there. The simple code was: > #include <iostream> > using namespace std; > int main() > { > cout<<"Hello World!\n"; > } > system("pause") didn't print "Hello World". Then I tried: > modifying cout<<"Hello World!\n"; > but that, too didn't work. > When I tried > cin.get(); > the application started running in the desired way. > Then, I had deleted that application and source file. > When I again wrote the same program with cin.get(); it didn't work! > (didn't open!) I'm wondering what creates such a problem. > Please Help! > > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share > your > opinions on IT & business topics through brief surveys-and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > 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 > > -- <Morpheus> linux, c'est une question de VI ou de MORE |
From: Devashish S. <dev...@re...> - 2007-04-01 17:19:16
|
(pwm and Aamynuttal, please ignore this message)Hi!I\'ve a very unique problem about execution of Cpp. I entered the code and the source was compiled without any errors. The windows application was created, but didn\'t open (or it opened for a split second and closed). I tried system(\"pause\"); the result was that an application opened, saying \"press any key to continue\", but the expected output was not there. The simple code was:#include <iostream>using namespace std;int main(){ cout<<\"Hello World!\\n\";}system(\"pause\") didn\'t print \"Hello World\". Then I tried:modifying cout<<\"Hello World!\\n\";but that, too didn\'t work.When I triedcin.get();the application started running in the desired way.Then, I had deleted that application and source file.When I again wrote the same program with cin.get(); it didn\'t work! (didn\'t open!) I\'m wondering what creates such a problem.Please Help! |