dev-cpp-users Mailing List for Dev-C++ (Page 711)
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: <Dou...@ao...> - 2001-03-18 16:08:06
|
I am hoping someone who uses winsock can help me. I get the following linker
errors when I build the textbook example program shown below the error
listing:
c:\windows\TEMP\ccdc2agb.o: In function `doit(int, char **)':
//c/dev-c_~1/localh~1.cpp:7: undefined reference to `gethostname@8'
//c/dev-c_~1/localh~1.cpp:9: undefined reference to `WSAGetLastError@0'
//c/dev-c_~1/localh~1.cpp:14: undefined reference to `gethostbyname@4'
//c/dev-c_~1/localh~1.cpp:23: undefined reference to `inet_ntoa@4'
c:\windows\TEMP\ccdc2agb.o: In function `main':
//c/dev-c_~1/localh~1.cpp:32: undefined reference to `WSAStartup@8'
//c/dev-c_~1/localh~1.cpp:38: undefined reference to `WSACleanup@0'
#include <iostream.h>
#include <winsock.h>
int doit(int, char **)
{
char ac[80];
if (gethostname(ac, sizeof(ac)) == SOCKET_ERROR) {
cerr << "Error " << WSAGetLastError() <<
" when getting local host name." << endl;
return 1;
}
cout << "Host name is " << ac << "." << endl;
struct hostent *phe = gethostbyname(ac);
if (phe == 0) {
cerr << "Yow! Bad host lookup." << endl;
return 1;
}
for (int i = 0; phe->h_addr_list[i] != 0; ++i) {
struct in_addr addr;
memcpy(&addr, phe->h_addr_list[i], sizeof(struct in_addr));
cout << "Address " << i << ": " << inet_ntoa(addr) << endl;
}
return 0;
}
int main(int argc, char *argv[])
{
WSAData wsaData;
if (WSAStartup(MAKEWORD(1, 1), &wsaData) != 0) {
return 255;
}
int retval = doit(argc, argv);
WSACleanup();
return retval;
}
When I substitute "winsock2.h" for "winsock.h" I get the compiler error:
... \INCLUDE\winsock2.h:46:unbalanced '#endif'
|
|
From: Rick <Jly...@em...> - 2001-03-18 05:25:54
|
Guys, Whoever is using MIME on this list is making it unreadable to those of use who don't like to use it. As a courtesy to others, could you please only use plain text messages? Thank you, Rick |
|
From: Sam <sch...@ho...> - 2001-03-18 02:36:50
|
Thanks for all the suggestions. I'll try them out...
Sam
----- Original Message -----=20
From: Ioannis Vranos=20
To: dev...@li...=20
Sent: Saturday, March 17, 2001 3:25 PM
Subject: RE: [Dev-C++] feof question
You can also use :
=20
do
{=20
/* ... */
}while(!feof(filePtr));
=20
In this way you gain one less check for end of file (where performance =
is important).
=20
=20
About the second read of the "same data" at the end:
=20
This happens because the end of file is true only after a failed =
attempt (because the end of file has been already reached and it has no =
more to read). That means it doesn't read the data for the second time, =
but you have a failed attempt to read more data.
As for the counter you can either decrease it by one after the loop =
or initialize it with -1.
=20
=20
Ioannis
=20
* 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 Sam
Sent: Saturday, March 17, 2001 8:01 PM
To: dev...@li...
Subject: [Dev-C++] feof question
I'm trying to read through a file using the following statement:
while(!feof(filePtr)
{
fread(&phone, sizeof(struct record), 1, filePtr);
printf("%d%s", int, name);
count++;
}
The problem is that it reads the last record twice and increments =
the count one more time than needed. Could someone explain why this =
happens and how to avoid it using the feof function? Thanks.
Sam
|
|
From: Ioannis V. <no...@ya...> - 2001-03-17 20:22:07
|
You can also use :
do
{
/* ... */
}while(!feof(filePtr));
In this way you gain one less check for end of file (where performance is
important).
About the second read of the "same data" at the end:
This happens because the end of file is true only after a failed attempt
(because the end of file has been already reached and it has no more to
read). That means it doesn't read the data for the second time, but you have
a failed attempt to read more data.
As for the counter you can either decrease it by one after the loop or
initialize it with -1.
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 Sam
Sent: Saturday, March 17, 2001 8:01 PM
To: dev...@li...
Subject: [Dev-C++] feof question
I'm trying to read through a file using the following statement:
while(!feof(filePtr)
{
fread(&phone, sizeof(struct record), 1, filePtr);
printf("%d%s", int, name);
count++;
}
The problem is that it reads the last record twice and increments the
count one more time than needed. Could someone explain why this happens and
how to avoid it using the feof function? Thanks.
Sam
|
|
From: Vassili <v.v...@bt...> - 2001-03-17 19:58:47
|
you can use the fread in the while, when the eof is read it exits the =
loop
while(fread(&phone, sizeof(struct record), 1, filePtr))
{ =20
printf("%d%s", int, name);
count++;
}
----- Original Message -----=20
From: Sam=20
To: dev...@li...=20
Sent: Saturday, March 17, 2001 6:00 PM
Subject: [Dev-C++] feof question
I'm trying to read through a file using the following statement:
while(!feof(filePtr)
{
fread(&phone, sizeof(struct record), 1, filePtr);
printf("%d%s", int, name);
count++;
}
The problem is that it reads the last record twice and increments the =
count one more time than needed. Could someone explain why this happens =
and how to avoid it using the feof function? Thanks.
Sam
|
|
From: Robert D B. <lon...@ju...> - 2001-03-17 18:20:17
|
The last file is read then you do the next while with the EOF pointing to
the last record.
Use
do
{
.......
}while(!feof(filePtr));
On Sat, 17 Mar 2001 13:00:39 -0500 "Sam" <sch...@ho...> writes:
I'm trying to read through a file using the following statement:
while(!feof(filePtr)
{
fread(&phone, sizeof(struct record), 1, filePtr);
printf("%d%s", int, name);
count++;
}
The problem is that it reads the last record twice and increments the
count one more time than needed. Could someone explain why this happens
and how to avoid it using the feof function? Thanks.
Sam |
|
From: Sam <sch...@ho...> - 2001-03-17 17:55:39
|
I'm trying to read through a file using the following statement:
while(!feof(filePtr)
{
fread(&phone, sizeof(struct record), 1, filePtr);
printf("%d%s", int, name);
count++;
}
The problem is that it reads the last record twice and increments the =
count one more time than needed. Could someone explain why this happens =
and how to avoid it using the feof function? Thanks.
Sam
|
|
From: Chirag D. <MrChirag@i.am> - 2001-03-17 04:08:57
|
use winsock.h and winsock2.h -----Original Message----- From: dev...@li... [mailto:dev...@li...]On Behalf Of LaParson Me Sent: Friday, March 16, 2001 7:13 PM To: Dev-C++ To ask Q Subject: [Dev-C++] Socks Some one please let where can I get sockets.h BTW I am using Win95 Dev c++ 4.1 ThankX |
|
From: Ian W. <lak...@ho...> - 2001-03-16 17:57:46
|
hi all. i'm trying to teach myself how to program windows applications in
c++ but i've got a bit stuck.
you know you've got the file menu? well i was wondering how i make a menu
of my own, as in, how do i change the words?
also, does anyone know how to create areas where you enter text?
thanks
ian
_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
|
|
From: LaParson M. <Laa...@ho...> - 2001-03-16 13:41:06
|
Some one please let where can I get sockets.h BTW I am using Win95 Dev c++ 4.1 ThankX |
|
From: James G. <Jam...@Cl...> - 2001-03-16 10:38:46
|
You know. If you give us the actual error message then we can help you by telling you what it means. Send the snippet of code and the error message. Regards, James. -----Original Message----- From: Louis Barba [mailto:bar...@ho...] Sent: Thursday, March 15, 2001 5:10 PM To: dev...@li... Subject: RE: [Dev-C++] Anybody no about error messages ?? The error message was a compile/Link time error. Thanks >From: James Gordon <Jam...@Cl...> >Reply-To: dev...@li... >To: "'dev...@li...'" ><dev...@li...> >Subject: RE: [Dev-C++] Anybody no about error messages ?? >Date: Thu, 15 Mar 2001 09:30:04 -0000 > >Depends on what you want to know? > >Are you talking about errno in C? >Exceptions in C++? >Returns from standard functions? >Compile/Link time errors? > >Regards, > >James. > > >-----Original Message----- >From: Louis Barba [mailto:bar...@ho...] >Sent: Wednesday, March 14, 2001 5:29 PM >To: dev...@li... >Subject: [Dev-C++] Anybody no about error messages ?? > > >Hi Everyone, > > Can someone tell me about error messages ? > >Louis >_________________________________________________________________ >Get your FREE download of MSN Explorer at http://explorer.msn.com > > >_______________________________________________ >Dev-cpp-users mailing list >Dev...@li... >http://lists.sourceforge.net/lists/listinfo/dev-cpp-users > > >* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * >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 > > >_______________________________________________ >Dev-cpp-users mailing list >Dev...@li... >http://lists.sourceforge.net/lists/listinfo/dev-cpp-users _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com _______________________________________________ Dev-cpp-users mailing list Dev...@li... http://lists.sourceforge.net/lists/listinfo/dev-cpp-users * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 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: Yeoh H. <ye...@ya...> - 2001-03-16 01:07:49
|
Hi, There's a sample code for MP3 playback that you can download at: http://www.planet-source-code.com/xq/ASP/txtCodeId.372/lngWId.3/qx/vb/script s/ShowCode.htm You can also download sample code for VOC player at: http://codeguru.earthweb.com/multimedia/VocPlayer.shtml The code uses the waveOutxxx() functions. If you can't download, let me know so that I can e-mail you the zip files. Yeoh ----- Original Message ----- From: Gregor Peter <Gre...@dl...> To: <dev...@li...> Sent: Friday, March 16, 2001 1:52 AM Subject: Re: [Dev-C++] *.wav OK! *.voc *mp3 *.mid aren`t > Hi, > > after some reading about mci-stuff WAV- and MID-files seems to be handable. > > But I have to play back a bunch of VOC(Creative Voice)-files and like to > play MP3-files. > Does exist MCI-devices for those file formats? > > Gregor > > -------- schnipp -------- > > Yeoh HS wrote: > > > Hi, > > > > You can use the mciSendString API function to play midi files. > > > > Yeoh > > ----- Original Message ----- > > From: Gregor Peter <Gre...@dl...> > > To: dev cpp <dev...@li...> > > Sent: Thursday, March 15, 2001 9:38 AM > > Subject: [Dev-C++] *.wav OK! *.voc *mp3 *.mid aren`t > > > > > Hi there, > > > > > > I got libwinmm.a (for PlaySound() ) linked and working so I'am able to > > > play *.wav files. > > > But how to play other musik formats like *.voc *.mp3 or *.mid? > > > > > > Can annybody tell me how to control sounds during playing? > > > How to stop a currently playing file for example? > > > > > > Gregor > > > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > http://lists.sourceforge.net/lists/listinfo/dev-cpp-users |
|
From: Gregor P. <Gre...@dl...> - 2001-03-15 17:49:35
|
Hi, after some reading about mci-stuff WAV- and MID-files seems to be handable. But I have to play back a bunch of VOC(Creative Voice)-files and like to play MP3-files. Does exist MCI-devices for those file formats? Gregor -------- schnipp -------- Yeoh HS wrote: > Hi, > > You can use the mciSendString API function to play midi files. > > Yeoh > ----- Original Message ----- > From: Gregor Peter <Gre...@dl...> > To: dev cpp <dev...@li...> > Sent: Thursday, March 15, 2001 9:38 AM > Subject: [Dev-C++] *.wav OK! *.voc *mp3 *.mid aren`t > > > Hi there, > > > > I got libwinmm.a (for PlaySound() ) linked and working so I'am able to > > play *.wav files. > > But how to play other musik formats like *.voc *.mp3 or *.mid? > > > > Can annybody tell me how to control sounds during playing? > > How to stop a currently playing file for example? > > > > Gregor |
|
From: Louis B. <bar...@ho...> - 2001-03-15 17:07:30
|
The error message was a compile/Link time error. Thanks >From: James Gordon <Jam...@Cl...> >Reply-To: dev...@li... >To: "'dev...@li...'" ><dev...@li...> >Subject: RE: [Dev-C++] Anybody no about error messages ?? >Date: Thu, 15 Mar 2001 09:30:04 -0000 > >Depends on what you want to know? > >Are you talking about errno in C? >Exceptions in C++? >Returns from standard functions? >Compile/Link time errors? > >Regards, > >James. > > >-----Original Message----- >From: Louis Barba [mailto:bar...@ho...] >Sent: Wednesday, March 14, 2001 5:29 PM >To: dev...@li... >Subject: [Dev-C++] Anybody no about error messages ?? > > >Hi Everyone, > > Can someone tell me about error messages ? > >Louis >_________________________________________________________________ >Get your FREE download of MSN Explorer at http://explorer.msn.com > > >_______________________________________________ >Dev-cpp-users mailing list >Dev...@li... >http://lists.sourceforge.net/lists/listinfo/dev-cpp-users > > >* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * >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 > > >_______________________________________________ >Dev-cpp-users mailing list >Dev...@li... >http://lists.sourceforge.net/lists/listinfo/dev-cpp-users _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com |
|
From: James G. <Jam...@Cl...> - 2001-03-15 09:09:00
|
Depends on what you want to know?
Are you talking about errno in C?
Exceptions in C++?
Returns from standard functions?
Compile/Link time errors?
Regards,
James.
-----Original Message-----
From: Louis Barba [mailto:bar...@ho...]
Sent: Wednesday, March 14, 2001 5:29 PM
To: dev...@li...
Subject: [Dev-C++] Anybody no about error messages ??
Hi Everyone,
Can someone tell me about error messages ?
Louis
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com
_______________________________________________
Dev-cpp-users mailing list
Dev...@li...
http://lists.sourceforge.net/lists/listinfo/dev-cpp-users
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
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: <jos...@ya...> - 2001-03-15 07:36:01
|
Don't forget to add the semicolons after each text string hth Chemanuel > cout << "\n\n Select a function\n\n" > << " Command Description \n\n" > << " Enter S Execute the set functions\n" > << " G Execute the get functions\n" > << " R Execute run parameter functions\n" > << " D Execute display functions\n" > << " 5 to show standard date and time \n" > << " 6 to show military date and time \n" > << " ------------------------------------------- \n" > << " E to exit\n"; __________________________________________________ Do You Yahoo!? Yahoo! Auctions - Buy the things you want at great prices. http://auctions.yahoo.com/ |
|
From: Yeoh H. <ye...@ya...> - 2001-03-15 05:09:40
|
Hi, You can use the mciSendString API function to play midi files. Yeoh ----- Original Message ----- From: Gregor Peter <Gre...@dl...> To: dev cpp <dev...@li...> Sent: Thursday, March 15, 2001 9:38 AM Subject: [Dev-C++] *.wav OK! *.voc *mp3 *.mid aren`t > Hi there, > > I got libwinmm.a (for PlaySound() ) linked and working so I'am able to > play *.wav files. > But how to play other musik formats like *.voc *.mp3 or *.mid? > > Can annybody tell me how to control sounds during playing? > How to stop a currently playing file for example? > > Gregor > > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > http://lists.sourceforge.net/lists/listinfo/dev-cpp-users |
|
From: Gregor P. <Gre...@dl...> - 2001-03-15 01:35:39
|
Hi there, I got libwinmm.a (for PlaySound() ) linked and working so I'am able to play *.wav files. But how to play other musik formats like *.voc *.mp3 or *.mid? Can annybody tell me how to control sounds during playing? How to stop a currently playing file for example? Gregor |
|
From: Louis B. <bar...@ho...> - 2001-03-14 22:20:03
|
Thanks, But in the menu I had there was a semi-colon missing, sorry. Then I the menu went into an infinit loop, thats when I change the int to a char. Thanks, Louis... >From: Dou...@ao... >Reply-To: dev...@li... >To: <dev...@li...> >Subject: Re: [Dev-C++] (33) : error C2001: newline in constant ? Can't find >syntax error >Date: Wed, 14 Mar 2001 14:39:48 EST > >Change your declaration of choice to: > > char choice; > >_______________________________________________ >Dev-cpp-users mailing list >Dev...@li... >http://lists.sourceforge.net/lists/listinfo/dev-cpp-users _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com |
|
From: <Dou...@ao...> - 2001-03-14 19:49:39
|
Change your declaration of choice to:
char choice;
|
|
From: <Dou...@ao...> - 2001-03-14 19:40:09
|
Change your declaration of choice to:
char choice;
|
|
From: Louis B. <bar...@ho...> - 2001-03-14 19:12:03
|
Hi again,
I don't know if the message I put out earlier had the code so please
excuse me if this is redundant.
I get the error message: newline in constant from the fllowing code,
and I don't understand.
#include <iostream>
using std::cout;
using std::cin;
using std::endl;
#include "DateAndTime.h"
/*void incrementMinutes( DateAndTime &, const int );*/
int main()
{
DateAndTime dt;
int choice;
do
{
cout << "\n\n Select a function\n\n"
<< " Command Description \n\n"
<< " Enter S Execute the set functions\n"
<< " G Execute the get functions\n"
<< " R Execute run parameter functions\n"
<< " D Execute display functions\n"
<< " 5 to show standard date and time \n"
<< " 6 to show military date and time \n"
<< " ------------------------------------------- \n"
<< " E to exit\n";
cin >> choice;
switch (choice)
{
case 'S':
cout << "Set functions\n";
break;
case 'G':
cout << "Get functions\n";
break;
case 'R':
cout << "Run functions\n";
break;
case 'P':
cout << "Problem exercises\n";
break;
case 'E':
cout << "End of Program\n";
break;
default:
cout << "Invalid Selection, Try S, G, R, P, E\n";
}
} while (choice != 'E');
dt.setHour( 17 );
dt.setMinute( 34 );
dt.setSecond( 25 );
cout << "Result of setting all valid values:\n"
<< " Hour: " << dt.getHour()
<< " Minute: " << dt.getMinute()
<< " Second: " << dt.getSecond();
dt.setHour( 234 ); // invalid hour set to 0
dt.setMinute( 43 );
dt.setSecond( 6373 ); // invalid second set to 0
cout << "\n\nResult of attempting to set invalid hour and\n"
<< " Hour: " << dt.getHour()
<< " Minute: " << dt.getMinute()
<< " Second: " << dt.getSecond() << "\n\n";
dt.setDateAndTime(10, 21, 2001, 11, 58, 0 );
int spin_me;
cout << "Enter the number of times to spin this: ";
cin >> spin_me;
cout << "\nSpinning the counters " << spin_me
<< " times:\nStart time: ";
dt.printStandard();
cout << "\nTime: ";
dt.ticks( dt, spin_me);
cout << "\n";
return (0);
}
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com
|
|
From: Louis B. <bar...@ho...> - 2001-03-14 17:26:45
|
Hi Everyone,
Can someone tell me about error messages ?
Louis
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com
|
|
From: Louis B. <bar...@ho...> - 2001-03-14 15:41:41
|
Hello,
I can't seem to find the cause of this error message, can anyone help ??
#include <iostream>
using std::cout;
using std::cin;
using std::endl;
#include "DateAndTime.h"
/*void incrementMinutes( DateAndTime &, const int );*/
int main()
{
DateAndTime dt;
int choice;
do
{
cout << "\n\n Select a function\n\n"
<< " Command Description \n\n"
<< " Enter S Execute the set functions\n"
<< " G Execute the get functions\n"
<< " R Execute run parameter functions menu\n"
<< " D Execute display functions\n"
<< " 5 to show standard date and time \n"
<< " 6 to show military date and time \n"
<< " ------------------------------------------- \n"
<< " E to exit\n";
cin >> choice;
switch (choice)
{
case 'S':
cout << "Set functions\n";
break;
case 'G':
cout << "Get functions\n";
break;
case 'R':
cout << "Run functions\n";
break;
case 'P':
cout << "Problem exercises\n";
break;
case 'E':
cout << "End of Program\n";
break;
default:
cout << "Invalid Selection, Try S, G, R, P, E\n";
}
} while (choice != 'E');
dt.setHour( 17 );
dt.setMinute( 34 );
dt.setSecond( 25 );
cout << "Result of setting all valid values:\n"
<< " Hour: " << dt.getHour()
<< " Minute: " << dt.getMinute()
<< " Second: " << dt.getSecond();
dt.setHour( 234 ); // invalid hour set to 0
dt.setMinute( 43 );
dt.setSecond( 6373 ); // invalid second set to 0
cout << "\n\nResult of attempting to set invalid hour and\n"
<< " Hour: " << dt.getHour()
<< " Minute: " << dt.getMinute()
<< " Second: " << dt.getSecond() << "\n\n";
dt.setDateAndTime(10, 21, 2001, 11, 58, 0 );
int spin_me;
cout << "Enter the number of times to spin this: ";
cin >> spin_me;
cout << "\nSpinning the counters " << spin_me
<< " times:\nStart time: ";
dt.printStandard();
cout << "\nTime: ";
dt.ticks( dt, spin_me);
cout << "\n";
return (0);
}
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com
|
|
From: Yeoh H. <ye...@ya...> - 2001-03-14 11:46:47
|
Try this site: http://www.relisoft.com/ ----- Original Message ----- From: Ian Weston <lak...@ho...> To: <dev...@li...> Sent: Wednesday, March 14, 2001 1:38 AM Subject: [Dev-C++] web sites > hi all. > i was just wondering if anyone knows of a web site where i can get > tutorials or examples of code for windows applications in c++. i would be > glad if anyone knows. > > thanks |