dev-cpp-users Mailing List for Dev-C++ (Page 663)
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: Ioannis V. <no...@ya...> - 2001-10-03 09:54:25
|
> -----Original Message----- > From: dev...@li... > [mailto:dev...@li...] On Behalf > Of Mansoor Nathani > Sent: Wednesday, October 03, 2001 1:13 AM > To: dev...@li... > Subject: [Dev-C++] Help with functions > > > Does any one know the functions for : > > Generating a random number (integer) between a given range. #include <stdlib.h> #include <time.h> int x; /* Use this one time anywhere in the program only */ srand(time(NULL)); x=rand(); /* One value between 0 and RAND_MAX, the most (and usually) 32767 */ x=rand(); ... > > Extracting a character from a string: eg: > > ( "HELLO", 4 ) > > that should output the fourth character : L "Hello"[3]; After all literals are const arrays. :) > > Any help would be appreciated > > Mansoor Ioannis * Ioannis Vranos * Programming pages: http://www.noicys.f2s.com * Alternative URL: http://run.to/noicys |
|
From: Ioannis V. <no...@ya...> - 2001-10-03 09:54:25
|
It means no rand() is defined and it makes assumptions. You forgot #include <stdlib.h> Ioannis * Ioannis Vranos * Programming pages: http://www.noicys.f2s.com * Alternative URL: http://run.to/noicys > -----Original Message----- > From: dev...@li... > [mailto:dev...@li...] On Behalf > Of Mansoor Nathani > Sent: Wednesday, October 03, 2001 1:50 AM > To: dev...@li... > Subject: [Dev-C++] error Msg > > > what does this mean? > > implicit declaration of function `int rand(...)' > > > Mansoor > > > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > |
|
From: Mansoor N. <man...@sy...> - 2001-10-02 23:51:57
|
what does this mean? implicit declaration of function `int rand(...)' Mansoor |
|
From: Mansoor N. <man...@sy...> - 2001-10-02 23:14:50
|
Does any one know the functions for : Generating a random number (integer) between a given range. Extracting a character from a string: eg: ( "HELLO", 4 ) that should output the fourth character : L Any help would be appreciated Mansoor |
|
From: Mansoor N. <man...@sy...> - 2001-10-02 23:04:15
|
Hi this is my first post to the list I was wondering if someone could please help me out with this problem: The program should take an input of upto 80 characters and sort the characters into order according to the order of their appearance in the string, skipping spaces. Eg: MISSISSIPPI MUD would output: MMIIIISSSSPPUD Any help would be much appreciated.. Mansoor Nathani |
|
From: Daniel G. <sp...@ho...> - 2001-10-02 18:35:44
|
<html><div style='background-color:'><DIV>any idea how to get rid of the linker errors </DIV> <DIV>- undefined reference to `cosf'</DIV> <DIV>and</DIV> <DIV>- undefined reference to `sinf'</DIV> <DIV> </DIV> <DIV>as in</DIV> <DIV> FLOAT theta = (2*D3DX_PI*i)/(50-1);<BR> pVertices[2*i+0].position = D3DXVECTOR3( sinf(theta),-1.0f, cosf(theta) );<BR> pVertices[2*i+0].normal = D3DXVECTOR3( sinf(theta), 0.0f, cosf(theta) );<BR> pVertices[2*i+1].position = D3DXVECTOR3( sinf(theta), 1.0f, cosf(theta) );<BR> pVertices[2*i+1].normal = D3DXVECTOR3( sinf(theta), 0.0f, cosf(theta) );<BR> </DIV> <DIV> </DIV> <DIV>anyone had this problem? It's from the directx8 direct3D sdk tutorial #4<BR><BR><BR></DIV></div><br clear=all><hr>Get your FREE download of MSN Explorer at <a href='http://go.msn.com/bql/hmtag_itl_EN.asp'>http://explorer.msn.com</a><br></html> |
|
From: Peter C. <pet...@li...> - 2001-10-02 17:55:36
|
Thanks to everybody who said you can't define a function within a function. Peter |
|
From: <We...@ha...> - 2001-10-02 12:42:25
|
Hi, I'm with a stupid problem! ;) When i open the Dev-C++ in my Win2k, i create a new project or open a project it show me the error: Could not create Code Cinoketion list file What is it ?? How to fix ?? Why it happends?? Thkz. Best Regards. [ ]'s |
|
From: Ioannis V. <no...@ya...> - 2001-10-02 10:06:48
|
You can't define a function within a function. here you define area()
inside main().
Proper ANSI C++ code:
int area( int s1, int s2);
int main()
{
int vol;
vol = area(12, 13);
return 0;
}
int area( int s1, int s2 )
{
return s1*s2;
}
> -----Original Message-----
> From: dev...@li...
> [mailto:dev...@li...] On Behalf
> Of Peter Cartwright
> Sent: Tuesday, October 02, 2001 10:21 AM
> To: dev c++
> Subject: [Dev-C++] Dev - C++ function syntax problem
>
>
> Hello I started learning C++ a week ago, and was beginning
> to think it
> wasn't half as difficult as it's made out to be. Then I
> tried a minimalist
> program to demonstrate the syntax of calling a function.
>
> With the program below I get the compiler message " parse
> error before
> '{' " relating to opening curly bracket of return s1* s2.
> Any ideas about
> what is wrong, nothing I do cures it.
>
> #include <iostream.h>
> int area( int s1, int s2);
> int main()
> {
> int vol;
> vol = area(12, 13);
> int area( int s1, int s2 )
> {
> return s1*s2;
> }
> return 0;
> }
>
> From Peter Cartwright
>
>
> _______________________________________________
> Dev-cpp-users mailing list Dev...@li...
> https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
>
|
|
From: Lorenzo <co...@in...> - 2001-10-02 08:52:38
|
try to declare function out of the main.
ex.
#include <iostream>
using namespace std;
int area( int s1, int s2);
int main()
{
int vol;
vol = area(12, 13);
cout << "area(12, 13): " << vol << endl;
return 0;
}
int area( int s1, int s2 )
{
return s1*s2;
}
----------------------------------------------------------------------------
---
If debugging is the process of removing bugs,
then programming must be the process of putting them in.
----------------------------------------------------------------------------
---
|
|
From: Peter C. <pet...@li...> - 2001-10-02 08:28:18
|
Hello I started learning C++ a week ago, and was beginning to think it
wasn't half as difficult as it's made out to be. Then I tried a minimalist
program to demonstrate the syntax of calling a function.
With the program below I get the compiler message " parse error before
'{' " relating to opening curly bracket of return s1* s2. Any ideas about
what is wrong, nothing I do cures it.
#include <iostream.h>
int area( int s1, int s2);
int main()
{
int vol;
vol = area(12, 13);
int area( int s1, int s2 )
{
return s1*s2;
}
return 0;
}
From Peter Cartwright
|
|
From: Ameer K. <sm...@vs...> - 2001-10-02 03:42:36
|
Hi friends,
Some days before I have reported about compiling errors while trying to =
create menu to Windows using Dev-C++ version 4.0.
The error is due to an error in the default .cpp source
to which the following lines should be added if it is to work properly.
1. add " HMENU menu;" as line no 13 after
"WNDCLASSEX wncl;"
2. addthe lines" menu =3D LoadMenu(hThisInstance, =
MAKEINTRESOURCE(ID_MENU));
SetMenu(hwnd, menu);" approximately towards line 53,
after the code line
" /* Make the window visible on the screen */
ShowWindow(hwnd, nFunsterStil);"
Hope the developers will notice this and make necessary
corrections in the future versions
With regards
Ameer Khan
sm...@vs...
|
|
From: Jason H. <jas...@bt...> - 2001-10-02 00:57:37
|
I figured you'd all like to know that I figured out why I didn't get the resource site displayed properly. For some reason I have managed to lose my Helvetica font file, so it chooses a sans-serif font, but doesn't choose a very good one at the moment. The problem is that I don't know where to find the helvetica font file. I've looked on my windows CD and AFAICT it's not there. If someone can help my sending the relevent ttf file to my e-mail address it would be a great help. Thank you, Jason. jas...@bt... |
|
From: Urmila S. <ums...@cc...> - 2001-10-01 22:40:46
|
Hi my name is Urmila, does anyone know a good web site/good book that decribes how to generate IP packets? On Mon, 1 Oct 2001 dev...@li... wrote: > Send Dev-cpp-users mailing list submissions to > dev...@li... > > To subscribe or unsubscribe via the World Wide Web, visit > https://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. Re: is it possible to use Direct3D with Dev? (Daniel Glenfield) > 2. Re: is it possible to use Direct3D with Dev? (Sayajin) > 3. Help for DirectX8 sdk tutorials (Daniel Glenfield) > 4. Re: why doesn't my program work... (Ivan Frohne) > > --__--__-- > > Message: 1 > From: "Daniel Glenfield" <sp...@ho...> > To: dev...@li... > Subject: Re: [Dev-C++] is it possible to use Direct3D with Dev? > Date: Mon, 01 Oct 2001 13:53:31 +0100 > Reply-To: dev...@li... > > <html><div style='background-color:'><DIV> > <P>where? I'm using version 4, is there a text file about directx with the new version?</P> > <P>if you're referring to the text with the new directx files from gamecoding, I've seen that but I'm wondering if there's anything else I need to add?<BR><BR></P></DIV> > <DIV></DIV> > <DIV></DIV>>From: "Sayajin" <SA...@IF...> > <DIV></DIV>>Reply-To: dev...@li... > <DIV></DIV>>To: <DEV...@LI...> > <DIV></DIV>>Subject: Re: [Dev-C++] is it possible to use Direct3D with Dev? > <DIV></DIV>>Date: Mon, 1 Oct 2001 14:39:31 +0200 > <DIV></DIV>> > <DIV></DIV>>There's a help (.txt) that explain all the procedure for use directx with Dev-c++ ! ! ! > <DIV></DIV>> ----- Original Message ----- > <DIV></DIV>> From: Daniel Glenfield > <DIV></DIV>> To: dev...@li... > <DIV></DIV>> Sent: Monday, October 01, 2001 2:12 PM > <DIV></DIV>> Subject: [Dev-C++] is it possible to use Direct3D with Dev? > <DIV></DIV>> > <DIV></DIV>> > <DIV></DIV>> > <DIV></DIV>> > <DIV></DIV>> if so what do you have to link? I'm using directX 8 and have the new dev files from gamecoding.co.uk, what libraries do I add in project options? I use libddraw.a as well as the 4 that are in the readme text file (together), are there any others? > <DIV></DIV>> > <DIV></DIV>> > <DIV></DIV>> > <DIV></DIV>> Daniel > <DIV></DIV>> > <DIV></DIV>> > <DIV></DIV>> > <DIV></DIV>>------------------------------------------------------------------------------ > <DIV></DIV>> Get your FREE download of MSN Explorer at http://explorer.msn.com > <DIV></DIV>> _______________________________________________ Dev-cpp-users mailing list Dev...@li... https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > <DIV></DIV></div><br clear=all><hr>Get your FREE download of MSN Explorer at <a href='http://go.msn.com/bql/hmtag_itl_EN.asp'>http://explorer.msn.com</a><br></html> > > > --__--__-- > > Message: 2 > From: "Sayajin" <sa...@if...> > To: <dev...@li...> > Subject: Re: [Dev-C++] is it possible to use Direct3D with Dev? > Date: Mon, 1 Oct 2001 15:19:55 +0200 > Reply-To: dev...@li... > > This is a multi-part message in MIME format. > > ------=_NextPart_000_000D_01C14A8C.86925B60 > Content-Type: text/plain; > charset="iso-8859-1" > Content-Transfer-Encoding: quoted-printable > > with teh packages you have a directory "libs" copy all the files in a = > new repertory in then libs of dev-c++ (ex : dex8) and add the path in = > the compiler options with other path of libs ! ! ! > ----- Original Message -----=20 > From: Daniel Glenfield=20 > To: dev...@li...=20 > Sent: Monday, October 01, 2001 2:53 PM > Subject: Re: [Dev-C++] is it possible to use Direct3D with Dev? > > > where? I'm using version 4, is there a text file about directx with = > the new version? > > if you're referring to the text with the new directx files from = > gamecoding, I've seen that but I'm wondering if there's anything else I = > need to add? > > > > >From: "Sayajin"=20 > >Reply-To: dev...@li...=20 > >To:=20 > >Subject: Re: [Dev-C++] is it possible to use Direct3D with Dev?=20 > >Date: Mon, 1 Oct 2001 14:39:31 +0200=20 > >=20 > >There's a help (.txt) that explain all the procedure for use directx = > with Dev-c++ ! ! !=20 > > ----- Original Message -----=20 > > From: Daniel Glenfield=20 > > To: dev...@li...=20 > > Sent: Monday, October 01, 2001 2:12 PM=20 > > Subject: [Dev-C++] is it possible to use Direct3D with Dev?=20 > >=20 > >=20 > >=20 > >=20 > > if so what do you have to link? I'm using directX 8 and have the new = > dev files from gamecoding.co.uk, what libraries do I add in project = > options? I use libddraw.a as well as the 4 that are in the readme text = > file (together), are there any others?=20 > >=20 > >=20 > >=20 > > Daniel=20 > >=20 > >=20 > >=20 > = > >------------------------------------------------------------------------= > ------=20 > > Get your FREE download of MSN Explorer at http://explorer.msn.com=20 > > _______________________________________________ Dev-cpp-users = > mailing list Dev...@li... = > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users=20 > > > -------------------------------------------------------------------------= > ----- > Get your FREE download of MSN Explorer at http://explorer.msn.com > _______________________________________________ Dev-cpp-users mailing = > list Dev...@li... = > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > > ------=_NextPart_000_000D_01C14A8C.86925B60 > 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 6.00.2600.0" name=3DGENERATOR> > <STYLE></STYLE> > </HEAD> > <BODY bgColor=3D#ffffff> > <DIV><FONT face=3DArial size=3D2>with teh packages you have a directory = > "libs" copy=20 > all the files in a new repertory in then libs of dev-c++ (ex : dex8) and = > add the=20 > path in the compiler options with other path of libs ! ! !</FONT></DIV> > <BLOCKQUOTE=20 > style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; = > BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px"> > <DIV style=3D"FONT: 10pt arial">----- Original Message ----- </DIV> > <DIV=20 > style=3D"BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: = > black"><B>From:</B>=20 > <A tit...@ho... = > href=3D"mailto:sp...@ho...">Daniel=20 > Glenfield</A> </DIV> > <DIV style=3D"FONT: 10pt arial"><B>To:</B> <A=20 > tit...@li...=20 > = > href=3D"mailto:dev...@li...">dev-cpp-users@lists.s= > ourceforge.net</A>=20 > </DIV> > <DIV style=3D"FONT: 10pt arial"><B>Sent:</B> Monday, October 01, 2001 = > 2:53=20 > PM</DIV> > <DIV style=3D"FONT: 10pt arial"><B>Subject:</B> Re: [Dev-C++] is it = > possible to=20 > use Direct3D with Dev?</DIV> > <DIV><BR></DIV> > <DIV> > <DIV> > <P>where? I'm using version 4, is there a text file about directx with = > the new=20 > version?</P> > <P>if you're referring to the text with the new directx files from = > gamecoding,=20 > I've seen that but I'm wondering if there's anything else I need to=20 > add?<BR><BR></P></DIV> > <DIV></DIV> > <DIV></DIV>>From: "Sayajin" <SA...@IF...> > <DIV></DIV>>Reply-To: <A=20 > = > href=3D"mailto:dev...@li...">dev-cpp-users@lists.s= > ourceforge.net</A>=20 > > <DIV></DIV>>To: <DEV...@LI...> > <DIV></DIV>>Subject: Re: [Dev-C++] is it possible to use Direct3D = > with Dev?=20 > > <DIV></DIV>>Date: Mon, 1 Oct 2001 14:39:31 +0200=20 > <DIV></DIV>>=20 > <DIV></DIV>>There's a help (.txt) that explain all the procedure = > for use=20 > directx with Dev-c++ ! ! !=20 > <DIV></DIV>> ----- Original Message -----=20 > <DIV></DIV>> From: Daniel Glenfield=20 > <DIV></DIV>> To: dev...@li...=20 > <DIV></DIV>> Sent: Monday, October 01, 2001 2:12 PM=20 > <DIV></DIV>> Subject: [Dev-C++] is it possible to use Direct3D with = > Dev?=20 > <DIV></DIV>>=20 > <DIV></DIV>>=20 > <DIV></DIV>>=20 > <DIV></DIV>>=20 > <DIV></DIV>> if so what do you have to link? I'm using directX 8 = > and have=20 > the new dev files from gamecoding.co.uk, what libraries do I add in = > project=20 > options? I use libddraw.a as well as the 4 that are in the readme text = > file=20 > (together), are there any others?=20 > <DIV></DIV>>=20 > <DIV></DIV>>=20 > <DIV></DIV>>=20 > <DIV></DIV>> Daniel=20 > <DIV></DIV>>=20 > <DIV></DIV>>=20 > <DIV></DIV>>=20 > = > <DIV></DIV>>----------------------------------------------------------= > --------------------=20 > > <DIV></DIV>> Get your FREE download of MSN Explorer at=20 > http://explorer.msn.com=20 > <DIV></DIV>> _______________________________________________ = > Dev-cpp-users=20 > mailing list Dev...@li...=20 > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users=20 > <DIV></DIV></DIV><BR clear=3Dall> > <HR> > Get your FREE download of MSN Explorer at <A=20 > = > href=3D"http://go.msn.com/bql/hmtag_itl_EN.asp">http://explorer.msn.com</= > A><BR>_______________________________________________=20 > Dev-cpp-users mailing list Dev...@li...=20 > = > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users</BLOCKQUOTE></= > BODY></HTML> > > ------=_NextPart_000_000D_01C14A8C.86925B60-- > > > ______________________________________________________________________________ > ifrance.com, l'email gratuit le plus complet de l'Internet ! > vos emails depuis un navigateur, en POP3, sur Minitel, sur le WAP... > http://www.ifrance.com/_reloc/email.emailif > > > > > --__--__-- > > Message: 3 > From: "Daniel Glenfield" <sp...@ho...> > To: dev...@li... > Date: Mon, 01 Oct 2001 16:33:04 +0100 > Subject: [Dev-C++] Help for DirectX8 sdk tutorials > Reply-To: dev...@li... > > <html><div style='background-color:'><DIV> > <P><BR>You'll have to change wc.hInstance to hInst in the two places it occurs to fix the implicit conversion errors. Just thought some of you may need to know :)<BR></P></DIV></div><br clear=all><hr>Get your FREE download of MSN Explorer at <a href='http://go.msn.com/bql/hmtag_itl_EN.asp'>http://explorer.msn.com</a><br></html> > > > --__--__-- > > Message: 4 > From: "Ivan Frohne" <fr...@gc...> > To: <dev...@li...> > Subject: Re: [Dev-C++] why doesn't my program work... > Date: Mon, 1 Oct 2001 10:41:50 -0800 > Reply-To: dev...@li... > > You forgot to call display in main. > > --Ivan Frohne > ----- Original Message ----- > From: "chromatonus 712" <chr...@ho...> > To: <dev...@li...> > Sent: Sunday, September 30, 2001 13:57 > Subject: [Dev-C++] why doesn't my program work... > > > > //hi, this is my program, there's no error, just that it's supposed to > > //calculate the mean and standard deviation of a list of data. after I > input > > //my list the program exits without showing either of the two values. > > //If anyone can help, it will be much appreciated : ) > > > > > > //Mean and Standard Deviation > > //9-20-01 > > > > #include <iostream.h> > > #include <conio.h> > > #include <math.h> > > #include <stdlib.h> > > > > //Prototypes > > int enter( int dat[] ); > > float average( int dat[], int n ); > > float stndrdv( int dat[], int n, float ave ); > > void display( int size, float ave, float sd ); > > > > > > int main() > > { > > int size; > > int dat[100]; > > float ave; > > float sd; > > > > size = enter( dat ); > > ave = average( dat, size ); > > sd = stndrdv( dat, size, ave ); > > } > > > > > > int enter( int dat[] ) > > { > > int k; //counter for how many values entered > > int x; //individual values entered > > int size; > > > > k = 0; > > cout<< "Statistic evaluator" << "\n"; > > cout<< "The first datum on the list= "; > > cin>> x; > > while( x != 0 ) > > { > > dat[k] = x; > > k++; > > cout<< "and the rest of the list goes > > "; > > cin>> x; > > } > > return(k); > > } > > > > > > float average( int dat[], int k ) > > { > > int j; //loop counter > > int sum; //sum of the y vals > > float ave; > > > > sum = 0; > > for( j=0; j<k; j++ ) > > sum = sum + dat[j]; > > ave = (float)(sum/k); > > return( ave ); > > } > > > > > > float stndrdv( int dat[], int k, float ave ) > > { > > int i; //loop counter > > float p; //variance*size: the sum > > float sd; > > > > p = 0; > > for( i=0; i<k; i++ ) > > p = ( dat[i] - ave )*( dat[i] - ave ) + p; > > sd = (float)(sqrt( p/(k-1) )); > > return( sd ); > > } > > > > > > void display( int size, float ave, float sd ) > > { > > cout<< "size=" << size << "\n"; > > cout<< "mean=" << ave << "\n"; > > cout<< "s.d.=" << sd << "\n"; > > system("PAUSE"); > > } > > > > > > > > > > _________________________________________________________________ > > Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp > > > > > > _______________________________________________ > > Dev-cpp-users mailing list > > Dev...@li... > > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > > > > > > > --__--__-- > > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > > > End of Dev-cpp-users Digest > |
|
From: Ivan F. <fr...@gc...> - 2001-10-01 18:41:20
|
You forgot to call display in main.
--Ivan Frohne
----- Original Message -----
From: "chromatonus 712" <chr...@ho...>
To: <dev...@li...>
Sent: Sunday, September 30, 2001 13:57
Subject: [Dev-C++] why doesn't my program work...
> //hi, this is my program, there's no error, just that it's supposed to
> //calculate the mean and standard deviation of a list of data. after I
input
> //my list the program exits without showing either of the two values.
> //If anyone can help, it will be much appreciated : )
>
>
> //Mean and Standard Deviation
> //9-20-01
>
> #include <iostream.h>
> #include <conio.h>
> #include <math.h>
> #include <stdlib.h>
>
> //Prototypes
> int enter( int dat[] );
> float average( int dat[], int n );
> float stndrdv( int dat[], int n, float ave );
> void display( int size, float ave, float sd );
>
>
> int main()
> {
> int size;
> int dat[100];
> float ave;
> float sd;
>
> size = enter( dat );
> ave = average( dat, size );
> sd = stndrdv( dat, size, ave );
> }
>
>
> int enter( int dat[] )
> {
> int k; //counter for how many values entered
> int x; //individual values entered
> int size;
>
> k = 0;
> cout<< "Statistic evaluator" << "\n";
> cout<< "The first datum on the list= ";
> cin>> x;
> while( x != 0 )
> {
> dat[k] = x;
> k++;
> cout<< "and the rest of the list goes
> ";
> cin>> x;
> }
> return(k);
> }
>
>
> float average( int dat[], int k )
> {
> int j; //loop counter
> int sum; //sum of the y vals
> float ave;
>
> sum = 0;
> for( j=0; j<k; j++ )
> sum = sum + dat[j];
> ave = (float)(sum/k);
> return( ave );
> }
>
>
> float stndrdv( int dat[], int k, float ave )
> {
> int i; //loop counter
> float p; //variance*size: the sum
> float sd;
>
> p = 0;
> for( i=0; i<k; i++ )
> p = ( dat[i] - ave )*( dat[i] - ave ) + p;
> sd = (float)(sqrt( p/(k-1) ));
> return( sd );
> }
>
>
> void display( int size, float ave, float sd )
> {
> cout<< "size=" << size << "\n";
> cout<< "mean=" << ave << "\n";
> cout<< "s.d.=" << sd << "\n";
> system("PAUSE");
> }
>
>
>
>
> _________________________________________________________________
> Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
>
>
> _______________________________________________
> Dev-cpp-users mailing list
> Dev...@li...
> https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
>
|
|
From: Daniel G. <sp...@ho...> - 2001-10-01 15:33:12
|
<html><div style='background-color:'><DIV> <P><BR>You'll have to change wc.hInstance to hInst in the two places it occurs to fix the implicit conversion errors. Just thought some of you may need to know :)<BR></P></DIV></div><br clear=all><hr>Get your FREE download of MSN Explorer at <a href='http://go.msn.com/bql/hmtag_itl_EN.asp'>http://explorer.msn.com</a><br></html> |
|
From: Sayajin <sa...@if...> - 2001-10-01 13:20:07
|
with teh packages you have a directory "libs" copy all the files in a = new repertory in then libs of dev-c++ (ex : dex8) and add the path in = the compiler options with other path of libs ! ! ! ----- Original Message -----=20 From: Daniel Glenfield=20 To: dev...@li...=20 Sent: Monday, October 01, 2001 2:53 PM Subject: Re: [Dev-C++] is it possible to use Direct3D with Dev? where? I'm using version 4, is there a text file about directx with = the new version? if you're referring to the text with the new directx files from = gamecoding, I've seen that but I'm wondering if there's anything else I = need to add? >From: "Sayajin"=20 >Reply-To: dev...@li...=20 >To:=20 >Subject: Re: [Dev-C++] is it possible to use Direct3D with Dev?=20 >Date: Mon, 1 Oct 2001 14:39:31 +0200=20 >=20 >There's a help (.txt) that explain all the procedure for use directx = with Dev-c++ ! ! !=20 > ----- Original Message -----=20 > From: Daniel Glenfield=20 > To: dev...@li...=20 > Sent: Monday, October 01, 2001 2:12 PM=20 > Subject: [Dev-C++] is it possible to use Direct3D with Dev?=20 >=20 >=20 >=20 >=20 > if so what do you have to link? I'm using directX 8 and have the new = dev files from gamecoding.co.uk, what libraries do I add in project = options? I use libddraw.a as well as the 4 that are in the readme text = file (together), are there any others?=20 >=20 >=20 >=20 > Daniel=20 >=20 >=20 >=20 = >------------------------------------------------------------------------= ------=20 > Get your FREE download of MSN Explorer at http://explorer.msn.com=20 > _______________________________________________ Dev-cpp-users = mailing list Dev...@li... = https://lists.sourceforge.net/lists/listinfo/dev-cpp-users=20 -------------------------------------------------------------------------= ----- Get your FREE download of MSN Explorer at http://explorer.msn.com _______________________________________________ Dev-cpp-users mailing = list Dev...@li... = https://lists.sourceforge.net/lists/listinfo/dev-cpp-users |
|
From: Daniel G. <sp...@ho...> - 2001-10-01 12:53:40
|
<html><div style='background-color:'><DIV> <P>where? I'm using version 4, is there a text file about directx with the new version?</P> <P>if you're referring to the text with the new directx files from gamecoding, I've seen that but I'm wondering if there's anything else I need to add?<BR><BR></P></DIV> <DIV></DIV> <DIV></DIV>>From: "Sayajin" <SA...@IF...> <DIV></DIV>>Reply-To: dev...@li... <DIV></DIV>>To: <DEV...@LI...> <DIV></DIV>>Subject: Re: [Dev-C++] is it possible to use Direct3D with Dev? <DIV></DIV>>Date: Mon, 1 Oct 2001 14:39:31 +0200 <DIV></DIV>> <DIV></DIV>>There's a help (.txt) that explain all the procedure for use directx with Dev-c++ ! ! ! <DIV></DIV>> ----- Original Message ----- <DIV></DIV>> From: Daniel Glenfield <DIV></DIV>> To: dev...@li... <DIV></DIV>> Sent: Monday, October 01, 2001 2:12 PM <DIV></DIV>> Subject: [Dev-C++] is it possible to use Direct3D with Dev? <DIV></DIV>> <DIV></DIV>> <DIV></DIV>> <DIV></DIV>> <DIV></DIV>> if so what do you have to link? I'm using directX 8 and have the new dev files from gamecoding.co.uk, what libraries do I add in project options? I use libddraw.a as well as the 4 that are in the readme text file (together), are there any others? <DIV></DIV>> <DIV></DIV>> <DIV></DIV>> <DIV></DIV>> Daniel <DIV></DIV>> <DIV></DIV>> <DIV></DIV>> <DIV></DIV>>------------------------------------------------------------------------------ <DIV></DIV>> Get your FREE download of MSN Explorer at http://explorer.msn.com <DIV></DIV>> _______________________________________________ Dev-cpp-users mailing list Dev...@li... https://lists.sourceforge.net/lists/listinfo/dev-cpp-users <DIV></DIV></div><br clear=all><hr>Get your FREE download of MSN Explorer at <a href='http://go.msn.com/bql/hmtag_itl_EN.asp'>http://explorer.msn.com</a><br></html> |
|
From: Sayajin <sa...@if...> - 2001-10-01 12:40:28
|
There's a help (.txt) that explain all the procedure for use directx = with Dev-c++ ! ! ! ----- Original Message -----=20 From: Daniel Glenfield=20 To: dev...@li...=20 Sent: Monday, October 01, 2001 2:12 PM Subject: [Dev-C++] is it possible to use Direct3D with Dev? if so what do you have to link? I'm using directX 8 and have the new = dev files from gamecoding.co.uk, what libraries do I add in project = options? I use libddraw.a as well as the 4 that are in the readme text = file (together), are there any others? Daniel -------------------------------------------------------------------------= ----- Get your FREE download of MSN Explorer at http://explorer.msn.com _______________________________________________ Dev-cpp-users mailing = list Dev...@li... = https://lists.sourceforge.net/lists/listinfo/dev-cpp-users |
|
From: Daniel G. <sp...@ho...> - 2001-10-01 12:13:02
|
<html><div style='background-color:'><DIV> <P><BR><BR>if so what do you have to link? I'm using directX 8 and have the new dev files from gamecoding.co.uk, what libraries do I add in project options? I use libddraw.a as well as the 4 that are in the readme text file (together), are there any others?</P> <P> </P> <P>Daniel</P></DIV></div><br clear=all><hr>Get your FREE download of MSN Explorer at <a href='http://go.msn.com/bql/hmtag_itl_EN.asp'>http://explorer.msn.com</a><br></html> |
|
From: Daniel G. <sp...@ho...> - 2001-10-01 10:17:06
|
<html><div style='background-color:'><DIV> <P>Here is the problem - I'm using the tutorial here ( <A href="http://www.wksoftware.com/publications/d3dim.html">http://www.wksoftware.com/publications/d3dim.html</A> ) to create a 3D triangle that spins. The problem I have is this... I am getting errors that tell me that "struct IDirect3D has no member named lpVtbl". I am 100% sure this is because in C++ you pass a REFERENCE to a GUID to IDirectDraw::QueryInterface. For example:</P> <P>C code:</P><PRE>// pass address of IID_IDirect3D to QueryInterface lpDD->lpVtbl->QueryInterface( lpDD, &IID_IDirect3D, ( LPVOID * ) &lpD3D ); </PRE> <P>Whereas in C++ you must have code like this: <PRE>// pass reference to IID_IDirect3D lpDD->QueryInterface( IID_IDirect3D, ( LPVOID * ) &lpD3D ) ; </PRE> <P>Below are the troublemakers - HOW DO I FIX THEM?</P> <P> </P> <P>Failing that has anybody wrote a tutorial about putting 3D images on screen in C++ that works on Dev-C++ ?</P> <P><BR><BR>hRes = lpdd->lpVtbl->SetCooperativeLevel(lpdd, hwnd, DDSCL_NORMAL);</P> <P>hRes = lpdd->lpVtbl->QueryInterface(lpdd, &IID_IDirect3D, &lpd3d);</P> <P>lpd3d->lpVtbl->Release(lpd3d);</P> <P>lpdd->lpVtbl->Release(lpdd);</P> <P>hRes = lpdd->lpVtbl->CreateSurface(lpdd, &ddsd, &lpddPrimary, NULL);</P> <P>hRes = lpddClipper->lpVtbl->SetHWnd(lpddClipper, 0UL, hwnd);</P> <P>lpddClipper->lpVtbl->Release(lpddClipper);</P> <P>hRes = lpddPrimary->lpVtbl->SetClipper(lpddPrimary, lpddClipper);</P> <P>lpddClipper->lpVtbl->Release(lpddClipper);</P> <P>lpddClipper->lpVtbl->Release(lpddClipper);</P> <P>hRes = lpddPrimary->lpVtbl->GetSurfaceDesc(lpddPrimary, &ddsd);</P> <P>hRes = lpdd->lpVtbl->CreatePalette(lpdd,<BR> DDPCAPS_8BIT,<BR> peColorTable,<BR> &lpddPalette,<BR> NULL);</P> <P>hRes = lpddPrimary->lpVtbl->SetPalette(lpddPrimary, lpddPalette);</P> <P>return lpddPrimary->lpVtbl->Restore(lpddPrimary);</P> <P>lpddPalette->lpVtbl->Release(lpddPalette);</P> <P>lpddPrimary->lpVtbl->Release(lpddPrimary);</P> <P>hRes = lpddPrimary->lpVtbl->GetSurfaceDesc(lpddPrimary, &ddsd);</P> <P>hRes = lpd3d->lpVtbl->EnumDevices(lpd3d, EnumDeviceCallback, &fDeviceFound);</P> <P>hRes = lpdd->lpVtbl->CreateSurface(lpdd, &ddsd, &lpddDevice, NULL);</P> <P>hRes = lpdd->lpVtbl->CreateSurface(lpdd, &ddsd, &lpddZBuffer, NULL);</P> <P>hRes = lpddDevice->lpVtbl->AddAttachedSurface(lpddDevice, lpddZBuffer);</P> <P>hRes = lpddDevice->lpVtbl->QueryInterface(lpddDevice,<BR> &guidDevice,<BR> &lpd3dDevice);</P> <P>hRes = lpddZBuffer->lpVtbl->Restore(lpddZBuffer);</P> <P>hRes = lpddDevice->lpVtbl->Restore(lpddDevice);</P> <P>lpd3dDevice->lpVtbl->Release(lpd3dDevice);</P> <P>lpddZBuffer->lpVtbl->Release(lpddZBuffer);</P> <P>lpddDevice->lpVtbl->Release(lpddDevice);</P> <P>hRes = lpd3dExecuteBuffer->lpVtbl->Lock(lpd3dExecuteBuffer, &d3dExeBufDesc);</P> <P>lpd3dExecuteBuffer->lpVtbl->Unlock(lpd3dExecuteBuffer);</P> <P>hRes = lpd3d->lpVtbl->CreateLight(lpd3d, &lpd3dLight, NULL);</P></DIV></div><br clear=all><hr>Get your FREE download of MSN Explorer at <a href='http://go.msn.com/bql/hmtag_itl_EN.asp'>http://explorer.msn.com</a><br></html> |
|
From: Ioannis V. <no...@ya...> - 2001-10-01 06:59:42
|
Try
=20
#include <stdlib.h>
=20
system("cls");
=20
=20
Ioannis
=20
* Ioannis Vranos
* Programming pages: http://www.noicys.f2s.com
<http://www.noicys.f2s.com/>=20
* Alternative URL: http://run.to/noicys
-----Original Message-----
From: dev...@li...
[mailto:dev...@li...] On Behalf Of
colombianomoren0
Sent: Monday, October 01, 2001 1:48 AM
To: C++ Help
Subject: [Dev-C++] (no subject)
Why isn't the clrscr() working? The compiler says "implicit declaration
of function `int clrscr(...)".
|
|
From: St0fF 6. <st...@gm...> - 2001-10-01 06:49:23
|
DevCPP ain't Borland. That's about it. The standard libraries from = each IDE differ somewhat. It's your turn to find answers in the Man and = FAQ. Best thing to do is not using the standards that differ when = switching between work and home - Computers. Use OpenGL. It's somehow = on all machines the same (some have more lights, ...) and Capable of a = lot more than writing text to screen ... Cheers, St0fF. ----- Original Message -----=20 From: colombianomoren0=20 To: C++ Help=20 Sent: Monday, October 01, 2001 1:48 AM Subject: [Dev-C++] (no subject) Why isn't the clrscr() working? The compiler says "implicit = declaration of function `int clrscr(...)". |
|
From: Vas <v.v...@bt...> - 2001-10-01 05:25:46
|
To get the date of the form dd-mm-yy
#include <time.h>
#include <stdio.h>
void main()
{
/* to store the time in seconds since 1970 */
time_t time_secs;
/* to store time and date in the various fields of structure tm */
struct tm todays_date;
/* get the calendar time, seconds since 1970 */
time_secs = time(NULL);
/* convert to broken-down time, see struct tm */
todays_date = *localtime(&time_secs);
/* output */
printf("Todays date is %d-%d-%d",
todays_date.tm_mday, /* day, 1-31 */
todays_date.tm_mon+1, /* month, 0-11,
hence +1 */
todays_date.tm_year); /* year since
1900 */
}
----- Original Message -----
From: "Ricky boytoy" <boy...@ho...>
To: <dev...@li...>
Sent: Friday, September 28, 2001 5:01 AM
Subject: [Dev-C++] i need help
> hey there hope u guys r in great shape!
> i need so examples of using the headerfile time.h in c++
>
> cud u just tell me some basic functions of time.h
> i look forward to hear from u
> thank u
>
> _________________________________________________________________
> Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
>
>
> _______________________________________________
> Dev-cpp-users mailing list
> Dev...@li...
> https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
|
|
From: colombianomoren0 <col...@ne...> - 2001-09-30 23:47:04
|
Why isn't the clrscr() working? The compiler says "implicit declaration = of function `int clrscr(...)". |