dev-cpp-users Mailing List for Dev-C++ (Page 165)
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
|
|
From: Martin O. <li...@mi...> - 2004-11-28 15:50:37
|
There are a zillion C compatible libraries out there on the net, packed into .a/.lib/.dll/ files with corresponding headers (for instance libpng is one, it loads .png files into memory and can be downloaded from www.libpng.org). Also you need to consider what license you want to use, GPL is a great choice but MPL etc is also good for some purposes. If you need commercial code, you typically have to pay a lot for it or possibly use something published under the BSD license. There is no central repository or manual that covers *all* libraries out there. Figure out what you need to do/write (play an mp3 file?) etc and then ask someone what libraries and tool there is for that specific task. Don't learn stuff like MFC etc if you dont have too, there is a lot of better frameworks that make it easier to migrate when needed ie wxWindows, QT or GTK. In general, as a start, you should learn a little bit about the ANSI/ISO C library (which sucks pretty much though), and possibly some C++ and STL stuff. I use these for reference, but they are never hard to use if you dont know what you're looking for: http://www.cppreference.com/ http://www.sgi.com/tech/stl/stl_index.html regards, martin Nothin' wrote: > I am really NEW to *Dev-C++ *...I want to know :- > > * *Where I can find an E-Book or a Book or even articles on how to > work with Dev-C++.................?* > * *Where I could find information about FUNCTIONS included in the > Library files and how to use them..........?* > > Please.....Help me if anybody out there knows anything..................??? > > Gagan Plz...plz...plz... > > ------------------------------------------------------------------------ > Do you Yahoo!? > Meet the all-new My Yahoo! <http://my.yahoo.com> – Try it today! |
|
From: Nothin' <gre...@ya...> - 2004-11-28 15:20:21
|
I am really NEW to Dev-C++ ...I want to know :-
Where I can find an E-Book or a Book or even articles on how to work with Dev-C++.................?
Where I could find information about FUNCTIONS included in the Library files and how to use them..........?
Please.....Help me if anybody out there knows anything..................???
Gagan Plz...plz...plz...
---------------------------------
Do you Yahoo!?
Meet the all-new My Yahoo! Try it today! |
|
From: P.D. v. Z. <pa...@di...> - 2004-11-28 12:05:37
|
When using the MySQL C or C++ API, you certainly don't need an ODBC data source, since you are connecting to the MySQL server directly, without using ODBC. Terry Orgill wrote: > I have not set up a ODBC data source on my XP box. Do I need it? I had > developed some programs using cygwin and mysql and never had to set up > ODBC. > |
|
From: Roger F. <ra...@ha...> - 2004-11-28 06:03:17
|
Aloha from Honolulu, I just want to say thank you to Malcolm for your patient explanation. I downloaded the latest version of wxDevC++ with wxWidgets Beta 6.4. This does not open with the menu I was writing about (as was happening in Beta 6.3). Most of my stuff has been done with Windows rather than wxWidgets, so I'm very much a newbie in the wxWidgets arena. Your answer has given me insight and perked my interest, so I intend doing more with wxWidgets as opposed to Windows. Mahalo (Thank You), Roger Furer Malcolm Nealon wrote: >>Aloha from Honolulu, >> I'm using wxDevC++ which has Dev-C++ 4.9.9.0 and wxWidgets beta 6.3 >>combined. When I first start there appears a window down the right side >>of the wxDevC++ main screen. This has the word "All" in a white box >>with a grayed out arrow (it looks like a selection box). Then below are >>various Icons and Lables: An Arrow Icon with "Selector", a Box Icon >>(white square with arrow heads pointing out on each of the 4 sides) with >>"BoxSizer", The same Box Icon with "StaticBoxSizer",... A capital A Icon >>with "StaticText",etc. These look like various widgets that can be >>inserted into a program. But as soon as I open anything; a new file or >>project, an existing file or project, anything that opens in the main >>window, this "Widgets Window" disappears and there seems no way to get >>it back. I've displayed every toolbar and menu I can find in every tool >>option listed, but nothing relates to it. I can't find it mentioned in >>the help files for DevC++ or wxWidgets. Does anybody know what it is? >>How do I get it back once I start writing code? It has interesting >>things I want to experiment with, but it only exists on the initial >>screen. I have to exit and restart the program to get it back and as >>soon as I open anything it's gone. A very frustrating Arrrgh! Anyone >>out there have a clue? >>Mahalo (Thank You), >>Roger Furer >> >> > >Sorry if this seems too simple for you, but there may be others on the >list who require this level of explanation. > >The best way to work with wxDevC++ (as far as I am concerned) is to >start a new project. > >File - New - Project... > >Then (assuming you are using Beta 6.4 (the current release) wxWidgets >Frame, or wxWidgets Dialog. > >Create a directory for the project, and save into that directory. > >Now just hit F9 (by hit I of course mean gently press, we don't want >you to break your keyboard). The simple frame project should compile >correctly, and you should be presented with a basic frame based >window. Close this. > >Now, on the properties bar on the left of the screen, press the >Project tab, then expand the project presented. Within this file list >is one named "newProgramFrame.wxform". Double click on this file (or >select the newProgramFrame.wxform tab and you will see the basic form >for the project. > >What do you want to do now? > >To add a menu - In the drop down list (the one with All in it), select >Menu. Click on MenuBar, then click on the form. An icon appears on >the form. This icon represents the menu, unfortunately at the moment >there is no real wysiwyg in wxDevC++. Now to create a menu, on the >properties bar click on "EditMenuItems", then on the "..." button >which appears. This should produce the dialog where you can create >your menu. > >To Create a toolbar - In the drop down list select Toolbar. Click once >on ToolBar, once on the form. Voila a toolbar. Now click on >ToolButton, and then on the newly created ToolBar on the form. You >have to repeat this for all the buttons or other controls you want on >the ToolBar. > >If you want to add a Sizer (wxWidgets uses Sizers to arrange the space >around controls (see http://neume.sourceforge.net/sizerdemo/ for a >simple explanation) and their use is the same as for the previous >controls. Single click on the control name and then a single click on >the form (be aware though thatwxDevC++ dowsn't allow you to drop a >sizer on a form which already has other Standard Components (such as >the previously mentioned Menu and ToolBar). > >Basically the Form is where you design the look of the program. You >can insert a new wxFrame or wxDialog and there should be a new >filename.form file created where you design the new dialog. > >I hope that this sufficiently answers your question. > >Best >Mal > > > > > >------------------------------------------------------- >SF email is sponsored by - The IT Product Guide >Read honest & candid reviews on hundreds of IT Products from real users. >Discover which products truly live up to the hype. Start reading now. >http://productguide.itmanagersjournal.com/ >_______________________________________________ >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: Terry O. <te...@st...> - 2004-11-28 05:22:01
|
Which version of mysql should I use with devpak 4.0.16? I have tried 4.0 and 4.1. Do I need to fall back into the 3.s? |
|
From: Terry O. <te...@st...> - 2004-11-28 02:08:28
|
I have not set up a ODBC data source on my XP box. Do I need it? I had developed some programs using cygwin and mysql and never had to set up ODBC. |
|
From: Carl Y. <ca...@yo...> - 2004-11-27 19:33:03
|
I'm fairly new to Dev-C++. I've been using the latest version of the wxWindows package made by Michel Weinachter (downloadable here: http://michel.weinachter.free.fr/). My problem is, I can't use the debugger with my application. I set breakpoints and it will start my app, but the breakpoints are never reached. I've tried enabling debug symbols in the compiler options, to no avail. One other thing that the list managers may be interested to know about: my request to join the list took many hours to be responded to. This is slightly annoying for list users who don't want to wait a few hours or days to join the list and ask their question. Thanks in advance for your help. Carl Youngblood |
|
From: Bo F. <bo...@ma...> - 2004-11-27 10:36:46
|
Hi all.
I getting involved in a project and the other members uses Visual C++ or
Borland. I'm the first on the project to use Dev-cpp.
When I compile, I get alot of errors, I've included those at the end of
the mail. Many of them look like this:
../spacesim/workroot/source/Client/processing/p_processor.h:76: error:
friend
declaration requires class-key, i.e. `friend class
PROCESSING::cProcessor'
Does that really mean that I have to add a class-key (which appears to
be the same as namespace) to all my friend declarations to make it compile?
...that would suck....
I tried making the modification in one declaration, and the error did go
away. But I do hope there is an easier way.
Thx.
Compiler: Default compiler
Building Makefile: "C:\Documents and Settings\slet
ingen\Dokumenter\c++\MySpaceSim\Makefile.win"
Executing make...
make.exe -f "C:\Documents and Settings\slet
ingen\Dokumenter\c++\MySpaceSim\Makefile.win" all
g++.exe -c ../spacesim/workroot/source/Client/Space_Sim.cpp -o
../spacesim/workroot/source/Client/Space_Sim.o
-I"C:/Dev-Cpp/include/c++/3.3.1"
-I"C:/Dev-Cpp/include/c++/3.3.1/mingw32"
-I"C:/Dev-Cpp/include/c++/3.3.1/backward"
-I"C:/Dev-Cpp/lib/gcc-lib/mingw32/3.3.1/include"
-I"C:/Dev-Cpp/include" -fexpensive-optimizations -O3
In file included from ../spacesim/workroot/source/Client/precompile.h:42,
from ../spacesim/workroot/source/Client/Space_Sim.cpp:1:
../spacesim/workroot/source/Shared/commondefines.h:9:1: warning: "M_PI"
redefined
In file included from ../spacesim/workroot/source/Client/precompile.h:16,
from ../spacesim/workroot/source/Client/Space_Sim.cpp:1:
C:/Dev-Cpp/include/math.h:53:1: warning: this is the location of the
previous definition
In file included from ../spacesim/workroot/source/Client/precompile.h:54,
from ../spacesim/workroot/source/Client/Space_Sim.cpp:1:
../spacesim/workroot/source/Client/processing/p_processor.h:65: error:
friend
declaration requires class-key, i.e. `friend class
PROCESSING::cProcessor'
../spacesim/workroot/source/Client/processing/p_processor.h:76: error:
friend
declaration requires class-key, i.e. `friend class
PROCESSING::cProcessor'
In file included from ../spacesim/workroot/source/Client/precompile.h:68,
from ../spacesim/workroot/source/Client/Space_Sim.cpp:1:
../spacesim/workroot/source/Client/graphics/g_render.h:24: error: friend
declaration requires class-key, i.e. `friend class PROCESSING::cResource'
In file included from
../spacesim/workroot/source/Client/userinterface/u_keycontrol.h:5,
from ../spacesim/workroot/source/Client/precompile.h:78,
from ../spacesim/workroot/source/Client/Space_Sim.cpp:1:
../spacesim/workroot/source/Client/userinterface/u_keyin.h:5:36:
processing/p_processor.h: No such file or directory
In file included from ../spacesim/workroot/source/Client/precompile.h:78,
from ../spacesim/workroot/source/Client/Space_Sim.cpp:1:
../spacesim/workroot/source/Client/userinterface/u_keycontrol.h:96:
error: friend
declaration requires class-key, i.e. `friend class USERINTERFACE::cKeyIn'
In file included from ../spacesim/workroot/source/Client/precompile.h:83,
from ../spacesim/workroot/source/Client/Space_Sim.cpp:1:
../spacesim/workroot/source/Shared/fileio/f_modelloader.h:22:31:
warning: extra tokens at end of #endif directive
In file included from ../spacesim/workroot/source/Client/precompile.h:84,
from ../spacesim/workroot/source/Client/Space_Sim.cpp:1:
../spacesim/workroot/source/Client/network/n_clientconnection.h:5:49:
..\Shared\network\n_tcpioconnection.h: No such file or directory
In file included from ../spacesim/workroot/source/Client/precompile.h:84,
from ../spacesim/workroot/source/Client/Space_Sim.cpp:1:
../spacesim/workroot/source/Client/network/n_clientconnection.h:14:
error: base
class `NETWORK::cTcpioConnection' has incomplete type
../spacesim/workroot/source/Client/Space_Sim.cpp:4: error: ISO C++ forbids
declaration of `WinMain' with no type
make.exe: *** [../spacesim/workroot/source/Client/Space_Sim.o] Error 1
Execution terminated
|
|
From: <go...@li...> - 2004-11-26 20:40:05
|
I had the same problem with the same configuration (XP, DDevCpp 4990) and mysql; so I switched and now I use the sqlite devpack it works fine but the database is integrated with the application.... Kind regards, > Have you set up an ODBC datasource DSN on your XP box??? > > Mark > -----Original Message----- > From: dev...@li... > [mailto:dev...@li...]On Behalf Of Terry > Orgill > Sent: Wednesday, November 24, 2004 2:58 PM > To: dev...@li... > Subject: [Dev-C++] mysql > > > I have a freshly loaded XP pro machine. Just downloaded 4.1 mysql fr= om > the mysql website. Downloaded 4.9.9.0 Dev-cpp from sourceforge and > downloaded the mysql devpak from planetmirror. I set up a test databas= e > with a simple table and can access it from the mysql client. When I > compile > and run the mysqlclienttest that loads with the devpak I get =91Error: > Unable > to select database=92. Any ideas? > |
|
From: Mark L. W. <ma...@al...> - 2004-11-26 15:58:33
|
Have you set up an ODBC datasource DSN on your XP box??? Mark -----Original Message----- From: dev...@li... [mailto:dev...@li...]On Behalf Of Terry Orgi= ll Sent: Wednesday, November 24, 2004 2:58 PM To: dev...@li... Subject: [Dev-C++] mysql I have a freshly loaded XP pro machine. Just downloaded 4.1 mysql from the mysql website. Downloaded 4.9.9.0 Dev-cpp from sourceforge and downloaded the mysql devpak from planetmirror. I set up a test database with a simple table and can access it from the mysql client. When I comp= ile and run the mysqlclienttest that loads with the devpak I get =91Error: Un= able to select database=92. Any ideas? |
|
From: Stebel <ol...@po...> - 2004-11-26 12:23:38
|
Hi I am preparing a console project that needs to use gotoxy and text / = background color functions due to its aim -> the application will be = pack of DOS based windows. buttons, menus etc (like norton commander). However when I put all classes in different files let's say Button.h = Button.cpp and Window.h Window.cpp and CheckBox.h CheckBox.cpp which all = derivate from major Object class and try to complie I get error on = linking stating that I have multiple definition of clrscr, clreol etc = (from files conio.c). I must say I used "#ifndef .. #define... #endif " clause on Object class = including conio.c. But the problem still exist.=20 When I put all classes into one file that's fine than.=20 I would greatly appreciate if anybody could help me.=20 What's more - if there any other way to move around console window and = change background please tell me as my teacher is dissaponted that I use = funtions basing on handles as conio.c does it... At last I can copy gotoxy, and graphical functions from conio.c directly = to object class but I'd rather don't do it. Thanks a lot for any advice Lukasz. |
|
From: Jamie R. M. <ke...@gm...> - 2004-11-26 05:10:31
|
Hello all. New to the mailing list and new to Dev-C++ (was using Visual C++ before, but only on lab computers on campus; would like something free to program with). What I'd like to do is get the latest version (4.9.9.0 I believe), but without a compiler. I'd like to set up MinGW 3.4.x to work with Dev-C++, as well as the latest test release of wxWidgets (2.5.3). I would rather not use the devpacks if that were at all possible. I would also like to be able to just create a project for wxWindows like you can do for Win32 Console (I currently have the Dev-C++ and compiler, but it seems a bit outdated to me (3.3.1)). If anyone could help me, it would be greatly appreciated. Thanks in advance, Jamie R. McPeek |
|
From: Ryugan M. <ryu...@sb...> - 2004-11-25 23:44:43
|
Hi mal, Thank for the reponse. hmm... I think it's frozen because I can't click onto anything or move the program. I reinstalled the program and still can't get it to work. I can create a wxframe if I go to File - New - Project - wxWidgets Frame. But if I try File - New - New wxFrame it just keeps freezing. thanks. Ryugan ----- Original Message ----- From: "Malcolm Nealon" <m.n...@wa...> To: <dev...@li...> Sent: Thursday, November 25, 2004 4:56 AM Subject: Re: [Dev-C++] Newbie Question! Hallo Ryugan, donderdag 25 november 2004, 20.05.34, schreef u: > Hi all, > > I just installed the wxDev-C++ ver.6.4 into my computer. This > software keeps freezing when I try opening the New WxFrame or the > New WxDialog. Anbody know why? and is there way to stop the > program from freezing? Is it freezing or is it parsing? Check the status bar, quite often the program looks as if it is frozen, but actually it is simply parsing the include files needed to create the form. Other than this perhaps there is a fault in the installation itself, and a solution may be to un- and then re-install. Best Mal ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/ _______________________________________________ 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: Malcolm N. <m.n...@wa...> - 2004-11-25 22:54:50
|
Hallo Ryugan, donderdag 25 november 2004, 20.05.34, schreef u: > Hi all, > =A0 > I just installed the wxDev-C++ ver.6.4=A0into my computer.=A0=A0This > software keeps=A0freezing when I try opening the New WxFrame or the > New WxDialog.=A0 Anbody know why? and is there way to stop the > program from freezing? Is it freezing or is it parsing? Check the status bar, quite often the program looks as if it is frozen, but actually it is simply parsing the include files needed to create the form. Other than this perhaps there is a fault in the installation itself, and a solution may be to un- and then re-install. Best Mal |
|
From: David M. <dml...@co...> - 2004-11-25 21:23:10
|
Same way with any C/C++ compiler #include <assert.h> or #include <cassert> and assert(<condition>); If the condition is true the program continues on it's merry way, if the condition is false then the program terminates (mosre specifically using the exit() function) Water Cooler wrote: > How do you make assertions in C code using the Visual C++ 6.0 > compiler? > > ------------------------------------------------------------------------ > Do you Yahoo!? > Yahoo! Mail > <http://us.rd.yahoo.com/mail_us/taglines/security/*http://promotions.yahoo.com/new_mail/static/protection.html> > - You care about security. So do we. |
|
From: Ryugan M. <ryu...@sb...> - 2004-11-25 19:05:20
|
Hi all, I just installed the wxDev-C++ ver.6.4 into my computer. This software = keeps freezing when I try opening the New WxFrame or the New WxDialog. = Anbody know why? and is there way to stop the program from freezing? Thanks. Ryugan |
|
From: Darren <dar...@nt...> - 2004-11-25 08:46:52
|
. ----- Original Message ----- From: "Zachary Uram" <ne...@gm...> To: <dev...@li...> Sent: Thursday, November 25, 2004 2:22 AM Subject: [Dev-C++] How to pause? > Hi, > > When I compile and run a program it brings up a console window and > then quickly closes the window and the program finishes execution. I > wish to add a pause so that the console window will stay open when I > run a program. How can I do this? > > Zach > getchar(); for one. > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from real users. > Discover which products truly live up to the hype. Start reading now. > http://productguide.itmanagersjournal.com/ > _______________________________________________ > 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 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.797 / Virus Database: 541 - Release Date: 15/11/04 |
|
From: Justin F. <jus...@gm...> - 2004-11-25 06:34:55
|
Hi,
Sorry for my English, I'm Chinese.
I'm reading "The C++ Programming Language (Special Edition)" now, and
here is an exercise in Chap 7: 7-10-8: Write a function to invert a
two-demention array?
I tried to write some code to do it, here is a draft, for now, I don't
know how to get all arrays of a consecutive number, such as 123, we
can get 6 arrays (n!) (123,132,213,231,312,321), and how to apply this
on a two-dementions array?
And is there a great arithmetic to caculate the value of a Matrix?=20
/* Code for Exercise 7-10-8 of "The C++ Programming Language"(Special)
Here I create a function Invert(int* m, int dim) to invert a
two-dimensional array.
*/
#include <stdio.h>
using namespace std;
// Function to invert two-dimensional array=20
void invert(int* m,int dim)=20
{
=09//Step 1: Judge if the input is valid
=09=09if (m.size=3Ddim*dim) =09// N*N ranks matrix
=09=09=09=09=09
=09=09=09//Step 2: Caculate the full arrange and just their parity, then ad=
d
+ or - to each combination
=09=09=09=09int swap=3D0;
=09=09=09=09for(int n=3D1;n<=3Ddim;n++)
=09=09=09=09=09for(int i=3D1;i<=3Ddim;i++)
=09=09=09=09=09=09for(int j=3Di+1;j<=3Ddim;j++)
=09=09=09=09=09=09=09{=20
=09=09=09=09=09=09=09=09...
=09=09=09=09=09=09=09}
=09=09else
=09=09{ cerror ("Not a phalanx=EF=BC=8Cplease try again");
=09=09 exit(1);
=09=09}
=09=09=09=09
=09//Step 3: Caculate the value of the Matrix=20
=09
=09//Step 4: Caculate the value of the concomitance matrix of the original =
matrix)
=09=09int* Aplus; // the concomitance matrix
=09=09for(i=3D1;n<=3Ddim;n++)
=09=09=09for(j=3D1;i<=3Ddim;i++)
=09=09=09{
=09=09=09=09//Caculate the co-subformula of Aij=EF=BC=9B
=09=09=09=09Aplus[i][j]=3DAij;
=09=09=09}
=09
=09//Step 5: get the contrary matrix and output the result: Ainv=3DAplus/|A=
|;
=09=09for(i=3D1;i<dim;i++)
=09=09=09for(j=3D1;j<dim;j++)
=09=09=09=09Ainv[i][j]=3DAplus[i][j]/|A|;
=09=09Print_Result(...);
}
int main()
{
=09int m*;
=09cout<< "Please enter the Dimention of your array:";
=09cout<< "\nPlease input each element of your array:\n";
=09cin>>m;
=09invert(m);
}
--=20
Thanks in advance.
Z.J.
|
|
From: Reid T. <rei...@at...> - 2004-11-25 04:01:03
|
Terry Orgill wrote: > I have a freshly loaded XP pro machine. Just downloaded 4.1 mysql from=20 > the mysql website. Downloaded 4.9.9.0 Dev-cpp from sourceforge and=20 > downloaded the mysql devpak from planetmirror. I set up a test=20 > database with a simple table and can access it from the mysql client.=20 > When I compile and run the mysqlclienttest that loads with the devpak=20 > I get =91Error: Unable to select database=92. Any ideas? > my guess is that it pertains to the change mysql made with regard to=20 user login/password -- http://rucus.ru.ac.za/docs/mysql/Old-client.html |
|
From: Zachary U. <ne...@gm...> - 2004-11-25 02:22:30
|
Hi, When I compile and run a program it brings up a console window and then quickly closes the window and the program finishes execution. I wish to add a pause so that the console window will stay open when I run a program. How can I do this? Zach |
|
From: Water C. <wt...@ya...> - 2004-11-24 22:59:59
|
How do you make assertions in C code using the Visual C++ 6.0 compiler? --------------------------------- Do you Yahoo!? Yahoo! Mail - You care about security. So do we. |
|
From: Oliver R. <o.r...@gm...> - 2004-11-24 22:15:15
|
Hi MD T,
this wouldn't show any effect of the earths energy field. The random -number
generator depends on the computers system timer. But i dont know which
function it uses to create these PSEUDO random numbers. I think the timer is
a 64bit counter, but some other guys might give u a better answer. But as
far as i know it will only be PSEUDO random numbers, so u won't see any
effect of the earths field.
Greetings
Dr_med_Faustus
-----Ursprüngliche Nachricht-----
Von: dev...@li...
[mailto:dev...@li...]Im Auftrag von MD T
Gesendet: Dienstag, 23. November 2004 04:01
An: dev...@li...
Betreff: [Dev-C++] IDEA
Hi all,
I am in a experimenting mood now. Mine is experiment on earths' energy
fields' uniqueness. I am trying to do it by developing random number
generaator and sending it to different friends from each continemtal and
asking them to run the program and see the results.
1]I want the program to generate numbers from 00 to 99 each one from every
decade, eg., 01,18,22,39,41,58,62,77,83,96; One set of 10 numbers every
second which means sixty numbers every minute with time logging for every
respective set of numbers.
e.g, 11:01:01 01,18,22,39,41,58,62,77,83,96;
11:01:02 00,12,28,31,40,53,69,72,85,99;
and so on upto
11:01:59 09,11.........................93;
It must be saved in the proper file. This program could be using srand
function or any other suitable one.
Time logging should be with options also. For e.g., I want to see the 10
numbers generated for 11.01.03 and when I enter this time the program should
display the numbers.
Can we use this program in our mobile phones and how to put it into mobile
and operate it?
2] Another program of generating Random numbers using noises from
different sources including white noise of the chaos. The features should
remain the same as above with time logging and results display with the
time.
Do you think this is possible? Can I use the program in my mobile using
the noises from the mic input and white noise generated by the circuit of
the mobile phone itself?
I hope my lengthy letter will not bother you. Shall I expect a
encouragement to my experiments by you?
Thanks and best regards,
MD T.
|
|
From: Wesley <man...@ya...> - 2004-11-24 20:37:36
|
I'm new to Dev-CPP and C/C++ in general, but I figured I would give it a go attempting to compile and understand the source code to an old program I found a few years back on Freshmeat. It is a small program that scans UseNet, downloads the binaries and forks off to run uudecode on said binaries. http://freshmeat.net/projects/bgrab/ The archive for version 1.3.6 is corrupt, however the 1.2.3 archive is not. I loaded main.cc into Dev-CPP and compiled it, but ran into errors regarding missing header files (netdb.h, wait.h, sys/socket.h along with a few others). I know that I'm trying to compile a program created primarily for use on UNIX on Windows, but as I understand it, Dev-CPP uses GCC. I know that the GCC supplied is compiled for Windows, but does that also mean that it is missing the header files from *NIX as well? Is there any way I could compile this small program with just minor modifications, or would I have to change the source to use the Windows TCP stack functions, not to mention any other functions that do not seem to be available to me currently? Thanks, Wes __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com |
|
From: Terry O. <te...@st...> - 2004-11-24 19:49:31
|
I have a freshly loaded XP pro machine. Just downloaded 4.1 mysql from the mysql website. Downloaded 4.9.9.0 Dev-cpp from sourceforge and downloaded the mysql devpak from planetmirror. I set up a test database with a simple table and can access it from the mysql client. When I compile and run the mysqlclienttest that loads with the devpak I get =91Error: Unable to select database=92. Any ideas? |
|
From: Adrie S. <adr...@ya...> - 2004-11-24 14:29:36
|
Hi Zach, --- Zachary Uram <ne...@gm...> wrote: > Ok ,I used one of the workarounds (named the file in C:\WINDOWS\TEMP > to have .devpak extension then double-clicked file to install) and it > *seems* to have > worked however when I restart Dev-C++ and go to WebUpdate module the > item I just installed again shows up in the list of non-installed! In > this case it was "Dev-C++ Update debug info". Has a developer patch > been issued for this yet? > > Regards, > Zach You picked the file which doesn't create an entry in Dev-Cpp/Packages directory see this bugreport: http://sourceforge.net/tracker/index.php?func=detail&aid=1013798&group_id=10639&atid=110639 it's not related to the win98 issue. A preview of the new documentation for Dev-C++ about devpaks is available on DevPaks.org Glad to see the workaround helped. Did you check the comments/followups at the bottom of the closed bugreport I mentioned before ? Adrie __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com |