dev-cpp-users Mailing List for Dev-C++ (Page 723)
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: Marco I. <mar...@ti...> - 2001-02-17 10:56:39
|
Is there any library for Dev-C++(mingw32...) that allows me to use POSIX
calls?
Marco Iannaccone mar...@ti...
ICQ: 18748121 MetalCoder
"What is real? How do you define real? If you're talking about your
senses, what you feel, taste, smell, or see, then all you're talking about
are electrical signals interpreted by your brain."
Morpheus - The Matrix
|
|
From: Marco I. <mar...@ti...> - 2001-02-17 10:55:58
|
I just started using Dev-C++...
Shouldn't static libs have the .a suffix and dynamic libs have .so, like
under Linux?
How can I create static libs with DEV-C++? And dynamic libs?
How can I use a dynamic library for VisualC++ vith DEV-C++ if I can't
compile them? I just have the dll, the headers, and the impoirt library?
And a static lib?
Thanx in advance.
Marco Iannaccone mar...@ti...
ICQ: 18748121 MetalCoder
"What is real? How do you define real? If you're talking about your
senses, what you feel, taste, smell, or see, then all you're talking about
are electrical signals interpreted by your brain."
Morpheus - The Matrix
|
|
From: Sebastian E. <s_e...@ho...> - 2001-02-17 09:21:11
|
----- Original Message ----- From: <dev...@li...> To: <dev...@li...> Sent: Friday, February 16, 2001 9:01 PM Subject: Dev-cpp-users digest, Vol 1 #177 - 6 msgs > Send Dev-cpp-users mailing list submissions to > dev...@li... > > To subscribe or unsubscribe via the World Wide Web, visit > http://lists.sourceforge.net/lists/listinfo/dev-cpp-users > or, via email, send a message with subject or body 'help' to > dev...@li... > > You can reach the person managing the list at > dev...@li... > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of Dev-cpp-users digest..." > > > Today's Topics: > > 1. Insight debugger don't work (Rommel Garza) > 2. file IO problem (Tilman Utz) > 3. Re: More wxWindows info. (Sam s Andujar) > 4. Re: Insight debugger don't work (Charles) > 5. RE: Example of linking (James Gordon) > 6. Hide/Show a Window (=?iso-8859-1?Q?Alvaro_Hornero_Navare=F1o?=) > > --__--__-- > > Message: 1 > From: "Rommel Garza" <rga...@ho...> > To: <dev...@li...> > Date: Thu, 15 Feb 2001 19:39:37 -0800 > Subject: [Dev-C++] Insight debugger don't work > Reply-To: dev...@li... > > This is a multi-part message in MIME format. > > ------=_NextPart_000_00CD_01C09787.08113B20 > Content-Type: text/plain; > charset="iso-8859-1" > Content-Transfer-Encoding: quoted-printable > > I can't get Insight debugger to work.....i downloaded the zip file and = > put them in my Bin and Share folders.....and I still get the > console when I debug(F8). > > RG > > ------=_NextPart_000_00CD_01C09787.08113B20 > Content-Type: text/html; > charset="iso-8859-1" > Content-Transfer-Encoding: quoted-printable > > <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> > <HTML><HEAD> > <META http-equiv=3DContent-Type content=3D"text/html; = > charset=3Diso-8859-1"> > <META content=3D"MSHTML 5.50.4134.600" name=3DGENERATOR> > <STYLE></STYLE> > </HEAD> > <BODY bgColor=3D#ffffff> > <DIV><FONT face=3DArial size=3D2>I can't get Insight debugger to = > work.....i=20 > downloaded the zip file and put them in my Bin and Share folders.....and = > I still=20 > get the</FONT></DIV> > <DIV><FONT face=3DArial size=3D2>console when I debug(F8).</FONT></DIV> > <DIV><FONT face=3DArial size=3D2></FONT> </DIV> > <DIV><FONT face=3DArial size=3D2>RG</FONT></DIV></BODY></HTML> > > ------=_NextPart_000_00CD_01C09787.08113B20-- > > > --__--__-- > > Message: 2 > Date: Fri, 16 Feb 2001 02:38:42 +0100 > From: Tilman Utz <Til...@st...> > To: C++ Liste <dev...@li...> > Subject: [Dev-C++] file IO problem > Reply-To: dev...@li... > > Hi all, > Did any of you work with file streams (ifstream, ofstream..) with > dev-c++ and the cygwin compiler? > I'm pretty sure it has to do with cygwin, probably the notation of the > SearchPath, but I couldn't figure it out completely. > Any comments appreciated > Tilman > > > > --__--__-- > > Message: 3 > To: dev...@li... > Date: Thu, 15 Feb 2001 21:40:26 -0500 > Subject: Re: [Dev-C++] More wxWindows info. > From: Sam s Andujar <sam...@ju...> > Reply-To: dev...@li... > > Hi All, > > Here's more wxWindows info for anyone interested: > > LINUX ZONE | wxWindows > http://www-106.ibm.com/developerworks/linux?n-l-2151 > > ::: Looking Through wxWindows ::: > Take a look at what the wxWindows library can do for multi-platform > development. > http://www-106.ibm.com/developerworks/library/l-wxwin.html?n-l-2151 > > ::: New Linux Download ::: > Check out our new Developer Kit for Linux on Itanium. > http://www.alphaworks.ibm.com/tech/linuxsdk?open&l=dWnl,d=215 > > > I got that info from: > > IBM developerWorks Newsletter > February 15, 2001 > Vol. 2, Issue 7 > > Tools, code, and tutorials for open standards-based development. > need it? get it. > http://www-106.ibm.com/developerworks/?n-2151 > > --- > Regards, > Sam > Sam...@ju... > > ________________________________________________________________ > GET INTERNET ACCESS FROM JUNO! > Juno offers FREE or PREMIUM Internet access for less! > Join Juno today! For your FREE software, visit: > http://dl.www.juno.com/get/tagj. > > > --__--__-- > > Message: 4 > From: "Charles" <cha...@at...> > To: <dev...@li...> > Cc: <rga...@ho...> > Subject: Re: [Dev-C++] Insight debugger don't work > Date: Thu, 15 Feb 2001 19:11:33 -0800 > Reply-To: dev...@li... > > Rommel - > > > > I can't get Insight debugger to work... ..i downloaded the zip file > and put them in my Bin and Share folders... ..and I still get the > console when I debug(F8). > > Here's one thing to check. On my machine in the BIN directory the size > of the GDB.EXE file is now 1,393 kb and dated 11/8/99. The old GDB.EXE > file was 1,034 kb and dated 11/7/99. > > Beware that Insight is still buggy. You might have problems attempting > certain functions. If I even THINK about looking at the memory view the > program crashes. In my installation Run can be invoked from the Console > view only. Good luck. > > Chuck > > > > > --__--__-- > > Message: 5 > From: James Gordon <Jam...@Cl...> > To: "'dev...@li...'" > <dev...@li...> > Subject: RE: [Dev-C++] Example of linking > Date: Fri, 16 Feb 2001 08:53:45 -0000 > Reply-To: dev...@li... > > This is the process that takes the binary form of your source and > binds/links it together with the start-up code for the operating system and > any library code, again in binary form (.a, .so, .lib), required for your > program to run. > > Very simplistic explanation but you get the idea. When you say compile from > within Dev-C++ or using make, nmake, cc etc they run ld to do the linking. > > Regards, > > James. > > > -----Original Message----- > > From: Jose Guevarra [mailto:jo...@iq...] > > Sent: Thursday, February 15, 2001 6:33 PM > > To: dev...@li... > > Subject: [Dev-C++] Example of linking > > > > Hi yall, > > > > Can anyone explain what "Linking" source code together means? Can > > anyone give me some examples? > > > > Jose > > > > > * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * > This electronic message and any attachment is intended to be > read by the named addressee(s) only. > Any other recipient should be aware that its contents may be > legally privileged and/or confidential and that its use, > disclosure, copying or distribution may be unlawful. > Unless you are a named addressee, please delete this message > > Whilst C. & J. Clark International Limited has taken steps > to prevent the transmission of computer viruses with electronic mail, > responsibility for screening incoming messages and the risk of such > transmission and its consequences lies with the recipient. > > C. & J. Clark International Limited > Registered in England and Wales > Company No. 141015 > Registered Office: 40 High Street, Street, Somerset BA16 0YA > Telephone: +44 (0) 1458 443131 > Fax: +44 (0) 1458 447547 > > > > --__--__-- > > Message: 6 > From: =?iso-8859-1?Q?Alvaro_Hornero_Navare=F1o?= <an...@wa...> > To: <dev...@li...> > Date: Fri, 16 Feb 2001 17:45:16 +0100 > Subject: [Dev-C++] Hide/Show a Window > Reply-To: dev...@li... > > Hi, all. > > Can anybody tell me how to Hide/Show a Window ? and how to put a icon in = > the > system tray (when de window is not visible)? > > Thanks, > Alvaro. > > > _ _ _ _ _ _ _ _ _ _ _ _ _ _ > Alvaro Hornero Navare=F1o > Mailto:an...@dp... > Desarrollo de Productos Inform=E1ticos, S.A. > Avda. del Mediterr=E1neo 2, 1 E. 28007 Madrid. > > =2E > > > > > > --__--__-- > > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > http://lists.sourceforge.net/lists/listinfo/dev-cpp-users > > > End of Dev-cpp-users Digest > |
|
From: keivamp <ke...@kn...> - 2001-02-17 08:34:54
|
use a text editor ----- Original Message ----- From: "i_suck _ducks" <pro...@ya...> To: <dev...@li...> Sent: Friday, February 16, 2001 8:11 PM Subject: [Dev-C++] Write to a file... > Hey people! i want to make a program that can modify > my autoexec.bat file. can anyone help??? thanX > > - PrOgRaMmInG lOsEr > > __________________________________________________ > Do You Yahoo!? > Get personalized email addresses from Yahoo! Mail - only $35 > a year! http://personal.mail.yahoo.com/ > > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > http://lists.sourceforge.net/lists/listinfo/dev-cpp-users > |
|
From: Stein N. <tem...@of...> - 2001-02-17 06:44:01
|
Hi there! I was wondering... how do I allocate memory-blocks bigger than 64k, in a simple but fast way? I'm running under DOS, but that figures, heh. Well, hope someone can help me. Thanks! Stein. :) ------------- #define stone |
|
From: Ramana K. <ra...@my...> - 2001-02-17 05:27:39
|
To write to a file you do this:
#include <fstream.h>
//...
ofstream out ("<filename goes here>");//there should be a variable showing
the autoexec.bat's whereabouts, otherwise use c:/autoexec.bat
out << "<writing goes here>";
//you use the out (you can call it anything) like you would use cout
out.close();
//...
-----Original Message-----
From: dev...@li...
[mailto:dev...@li...]On Behalf Of i_suck _ducks
Sent: Saturday, 17 February 2001 12:11 PM
To: dev...@li...
Subject: [Dev-C++] Write to a file...
Hey people! i want to make a program that can modify
my autoexec.bat file. can anyone help??? thanX
- PrOgRaMmInG lOsEr
__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail - only $35
a year! http://personal.mail.yahoo.com/
_______________________________________________
Dev-cpp-users mailing list
Dev...@li...
http://lists.sourceforge.net/lists/listinfo/dev-cpp-users
|
|
From: Charles <cha...@at...> - 2001-02-17 03:43:01
|
Rommel - > Ok I got Insight debugger working now......but how do I step through a program??>.....run one line at a time.??? With the S(tep) and N(ext) commands. Chuck |
|
From: Richard P. E. <ev...@ma...> - 2001-02-17 03:13:46
|
Does anybody know why when I click on "File" in the menu bar of Dev-CPP that it takes 5 or 6 seconds before the drop down menu appears? Am I the only one experiencing this? So far that's the only problem, if it can be called a problem, that I've had with Dev-CPP. Is this a bug? Richard P. Evans |
|
From: Rommel G. <rga...@ho...> - 2001-02-17 01:59:21
|
Ok I got Insight debugger working now......but how do I step through a = program??>.....run one line at a time.??? RG |
|
From: i_suck _. <pro...@ya...> - 2001-02-17 01:10:38
|
Hey people! i want to make a program that can modify
my autoexec.bat file. can anyone help??? thanX
- PrOgRaMmInG lOsEr
__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail - only $35
a year! http://personal.mail.yahoo.com/
|
|
From: <an...@wa...> - 2001-02-16 16:45:16
|
Hi, all. Can anybody tell me how to Hide/Show a Window ? and how to put a icon in = the system tray (when de window is not visible)? Thanks, Alvaro. _ _ _ _ _ _ _ _ _ _ _ _ _ _ Alvaro Hornero Navare=F1o Mailto:an...@dp... Desarrollo de Productos Inform=E1ticos, S.A. Avda. del Mediterr=E1neo 2, 1 E. 28007 Madrid. =2E |
|
From: James G. <Jam...@Cl...> - 2001-02-16 08:47:05
|
This is the process that takes the binary form of your source and binds/links it together with the start-up code for the operating system and any library code, again in binary form (.a, .so, .lib), required for your program to run. Very simplistic explanation but you get the idea. When you say compile from within Dev-C++ or using make, nmake, cc etc they run ld to do the linking. Regards, James. > -----Original Message----- > From: Jose Guevarra [mailto:jo...@iq...] > Sent: Thursday, February 15, 2001 6:33 PM > To: dev...@li... > Subject: [Dev-C++] Example of linking > > Hi yall, > > Can anyone explain what "Linking" source code together means? Can > anyone give me some examples? > > Jose > > * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * This electronic message and any attachment is intended to be read by the named addressee(s) only. Any other recipient should be aware that its contents may be legally privileged and/or confidential and that its use, disclosure, copying or distribution may be unlawful. Unless you are a named addressee, please delete this message Whilst C. & J. Clark International Limited has taken steps to prevent the transmission of computer viruses with electronic mail, responsibility for screening incoming messages and the risk of such transmission and its consequences lies with the recipient. C. & J. Clark International Limited Registered in England and Wales Company No. 141015 Registered Office: 40 High Street, Street, Somerset BA16 0YA Telephone: +44 (0) 1458 443131 Fax: +44 (0) 1458 447547 |
|
From: Charles <cha...@at...> - 2001-02-16 03:12:25
|
Rommel - > I can't get Insight debugger to work... ..i downloaded the zip file and put them in my Bin and Share folders... ..and I still get the console when I debug(F8). Here's one thing to check. On my machine in the BIN directory the size of the GDB.EXE file is now 1,393 kb and dated 11/8/99. The old GDB.EXE file was 1,034 kb and dated 11/7/99. Beware that Insight is still buggy. You might have problems attempting certain functions. If I even THINK about looking at the memory view the program crashes. In my installation Run can be invoked from the Console view only. Good luck. Chuck |
|
From: Sam s A. <sam...@ju...> - 2001-02-16 02:43:52
|
Hi All, Here's more wxWindows info for anyone interested: LINUX ZONE | wxWindows http://www-106.ibm.com/developerworks/linux?n-l-2151 ::: Looking Through wxWindows ::: Take a look at what the wxWindows library can do for multi-platform development. http://www-106.ibm.com/developerworks/library/l-wxwin.html?n-l-2151 ::: New Linux Download ::: Check out our new Developer Kit for Linux on Itanium. http://www.alphaworks.ibm.com/tech/linuxsdk?open&l=dWnl,d=215 I got that info from: IBM developerWorks Newsletter February 15, 2001 Vol. 2, Issue 7 Tools, code, and tutorials for open standards-based development. need it? get it. http://www-106.ibm.com/developerworks/?n-2151 --- Regards, Sam Sam...@ju... ________________________________________________________________ GET INTERNET ACCESS FROM JUNO! Juno offers FREE or PREMIUM Internet access for less! Join Juno today! For your FREE software, visit: http://dl.www.juno.com/get/tagj. |
|
From: Tilman U. <Til...@st...> - 2001-02-16 01:39:52
|
Hi all, Did any of you work with file streams (ifstream, ofstream..) with dev-c++ and the cygwin compiler? I'm pretty sure it has to do with cygwin, probably the notation of the SearchPath, but I couldn't figure it out completely. Any comments appreciated Tilman |
|
From: Rommel G. <rga...@ho...> - 2001-02-16 01:30:08
|
I can't get Insight debugger to work.....i downloaded the zip file and = put them in my Bin and Share folders.....and I still get the console when I debug(F8). RG |
|
From: Jose G. <jo...@iq...> - 2001-02-15 18:34:21
|
Hi yall, Can anyone explain what "Linking" source code together means? Can anyone give me some examples? Jose |
|
From: Jesper <hag...@ho...> - 2001-02-14 12:25:58
|
I have already done that. In the installation instructions it does not = say anything about how to intstall it with Bloodsheed or DJGPP. Jesper ----- Original Message -----=20 From: softnasolutions-ltd.fsbusiness.co.uk=20 To: dev...@li...=20 Sent: Tuesday, February 13, 2001 9:53 PM Subject: Re: [Dev-C++] wxWindows questions Go to members.fortunecity.com./honglilai under packages download and = follw the install instructions Napoleon ----- Original Message -----=20 From: Jesper=20 To: dev...@li...=20 Sent: Tuesday, February 13, 2001 8:36 AM Subject: [Dev-C++] wxWindows questions Can I use wxWindows with Bloodsheed or DJGPP? And how do I do to compile it and make it work? Jesper |
|
From: Jesper <hag...@ho...> - 2001-02-14 09:57:16
|
//New random numder every time you run it
#include <iostream.h>
#include <stdlib.h>
#include <time.h>
int main()
{
int number;
srand (time(0));
number=3D1+rand()%13;
cout << number;
return 0;
}
//End of the program
I have just tested this program and it works and gives you new number =
every time.
Jesper
|
|
From: Tilman U. <Til...@st...> - 2001-02-14 01:53:02
|
Hi, I, too encountered the -remap error (I use dev-c++ with the cygwin compiler) some times. I found a message in the archives saying one should overwrite the /cygwin/bin cpp.exe with the /cygwin/lib/gcc-lib/i686-pc-cygwin/2.95.2-5 cpp.exe. After doing that, the -remap error disappeared, but the preprocessor doesn't find the headers of a self compiled library (installed in /cygwin/usr/local/) any more. Is there any workaround for this problem? Thanks Tilman |
|
From: Ioannis V. <no...@ya...> - 2001-02-13 21:19:25
|
Till now i was using the rand() / (RAND_MAX / X); style that the others
suggested but as i thought it for a while i discovered that with this type
the possibility of all numbers is not the same (the largest number is very
seldom to occur). So my new implementation is:
// Assuming C++
#include <iostream>
#include <cstdlib>
#include <ctime>
int main()
{
using namespace std;
srand(time(0)); // With this we feed srand() with a different seed every
time.
while(true)
{
// suppose we want a value between 0-X
const int X=2;
int number=rand() / (RAND_MAX / (X+1));
if(number==X+1)
continue;
cout<<number<<' ';
}
}
Ioannis
* Ioannis Vranos
* Programming pages: http://members.nbci.com/noicys
* Alternative URL: http://run.to/noicys
> -----Original Message-----
> From: dev...@li...
> [mailto:dev...@li...]On Behalf Of Jose Flores
> Sent: Tuesday, February 13, 2001 6:17 PM
> To: dev...@li...
> Subject: [Dev-C++] Random Number
>
>
> what is a good simple command to get a random number from 1 to 13? I keep
> getting the run around when I ask this question...
> Thanks
> Jose
>
> _______________________________________________
> Dev-cpp-users mailing list
> Dev...@li...
> http://lists.sourceforge.net/lists/listinfo/dev-cpp-users
>
|
|
From: <Gen...@ao...> - 2001-02-13 20:56:20
|
"C" and/or "C++" according to my Programmers Bible.. Gene |
|
From: <Gen...@ao...> - 2001-02-13 20:56:10
|
In a message dated 2/13/01 12:43:39 PM Pacific Standard Time,
hag...@ho... writes:
> #include <stdlib.h>
>
> int main()
> {
> int number;
> number=1+rand()%13;
> cout << number;
> return 0;
> }
> //end of program
>
> Try this it worked. One stupid thing is that it gives you the same number
> everytime you use it.I have forgotten how to do if you want diffrent
> numbers every time you use the program.
>
>
srand() should do it... You need to 'seed' the random number generator with
some random value.
|
|
From: softnasolutions-ltd.fsbusiness.co.uk <so...@so...> - 2001-02-13 20:52:47
|
Go to members.fortunecity.com./honglilai under packages download and = follw the install instructions Napoleon ----- Original Message -----=20 From: Jesper=20 To: dev...@li...=20 Sent: Tuesday, February 13, 2001 8:36 AM Subject: [Dev-C++] wxWindows questions Can I use wxWindows with Bloodsheed or DJGPP? And how do I do to compile it and make it work? Jesper |
|
From: Ioannis V. <no...@ya...> - 2001-02-13 20:50:30
|
random(), randomize() belong to what language? Ioannis * Ioannis Vranos * Programming pages: http://members.nbci.com/noicys * Alternative URL: http://run.to/noicys -----Original Message----- From: dev...@li... [mailto:dev...@li...]On Behalf Of Gen...@ao... Sent: Tuesday, February 13, 2001 6:27 PM To: dev...@li... Subject: Re: [Dev-C++] Random Number check out: 1. rand() <-- value up to RAND_MAX 2. random(ceiling) <-- probably the one you want.. 3. randomize() - <-- to seed 4. srand(seed) <-- to initialize Gene |