dev-cpp-users Mailing List for Dev-C++ (Page 511)
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: Thorsten M. <to...@ne...> - 2002-10-11 15:45:01
|
Hi we...@ha..., On Fri, 11 Oct 2002 09:41:31 -0300 <we...@ha...> wrote: > I want to code a little porgram that list the pid's and your executables > name. > > I had search in MSDN but i can't found. :/ http://msdn.microsoft.com/library/default.asp?url=/library/en-us/perfmon/base/enumerating_all_processes.asp (untested with gcc, unsure if available at win9x) HTH -- Thorsten Maerz <to...@ne...> Sylpheed-claws/Win32: http://claws-w32.sf.net |
|
From: <we...@ha...> - 2002-10-11 12:40:41
|
Hi Guys, I noted that win9x in task bar ... show only some executables/pid's not all that is running. :/ I want to code a little porgram that list the pid's and your executables name. I had search in MSDN but i can't found. :/ Someone know where can i get it ?? Or how to do it ?? ps.: if possible, the program list all pids from win9x and NT based tecnology. :) Thkz a lot. Best Regards. [ ]'s |
|
From: Gary L. <ga...@lu...> - 2002-10-11 10:49:03
|
I'm trying to compile the Monkey's Audio SDK samples using Dev C++ (Monkey's Audio is a lossless audio format - available at http://www.monkeysaudio.com). However, I get the following error messages from the library header file maclib.h: Line 87 S:\Music\Monkeys Audio\MAC_SDK_397\Shared\maclib.h parse error before `;' Line 88 S:\Music\Monkeys Audio\MAC_SDK_397\Shared\maclib.h declaration of `unsigned int APE_HEADER::__int16' Line 87 S:\Music\Monkeys Audio\MAC_SDK_397\Shared\maclib.h conflicts with previous declaration `unsigned int APE_HEADER::__int16' and this repeats for all of the entries in the APE_HEADER structure which is defined as follows: /*************************************************************************** ************** APE header structure (what's at the front of an APE file) **************************************************************************** *************/ #define APE_HEADER_BYTES 32 struct APE_HEADER { char cID[4]; // should equal 'MAC ' unsigned __int16 nVersion; // version number * 1000 (3.81 = 3810) unsigned __int16 nCompressionLevel; // the compression level unsigned __int16 nFormatFlags; // any format flags (for future use) unsigned __int16 nChannels; // the number of channels (1 or 2) unsigned __int32 nSampleRate; // the sample rate (typically 44100) unsigned __int32 nHeaderBytes; // the bytes after the MAC header that compose the WAV header unsigned __int32 nTerminatingBytes; // the bytes after that raw data (for extended info) unsigned __int32 nTotalFrames; // the number of frames in the file unsigned __int32 nFinalFrameBlocks; // the number of samples in the final frame }; Of course, the same project compiles fine with MSVC so what changes to I need to make to the various files to get this working in DevC++? Has anyone suceeded and/or is there a Dev C++ package available for Monkey's Audio... BTW The source code to Monkey's Audio and the SDK is available at http://www.monkeysaudio.com/files/MAC_SDK_397.zip Thanks Gary |
|
From: <gen...@ya...> - 2002-10-11 06:08:21
|
if anyone is looking on how to create DevPaks, there's some information on that on the Bloodshed software forum on SourceForge. the title of the first post is "[Public Notice] New/Better DevPaks" i hope this helps, and please don not use the link above - it might not be up to date even in the next 5 minutes. www.sf.net/projects/dev-cpp click on 'Forums', then 'Bloodshed Software Forum' --------------------------------- Get a bigger mailbox -- choose a size that fits your needs. |
|
From: Santiago <sa...@ho...> - 2002-10-11 00:05:44
|
just type cin.ignore(); below the cin>>age; statement Check this link for more info: http://www.gunn.palo-alto.ca.us/~jkleinjans/ignore.html ----- Original Message ----- From: "Rafael Charnovscki" <cha...@un...> To: "Administrator" <ad_...@ho...> Cc: "Dev-Cpp List" <dev...@li...> Sent: Thursday, October 10, 2002 10:58 AM Subject: Re: [Dev-C++] DEV-C++ Does Not Pause > Hi, > You probably have a compilation error. > system("PAUSE") needs stdlib.h (#include <stdlib.h>) > > Rafael > cha...@un... > > Administrator wrote: > > //start of code > > > > #include <iostream.h> > > //include stdlib > #include <stdlib.h> > > > > > int main() //Most important part of the program! > > > > { > > > > int age; //Need a variable... > > > > cout<<"Please input your age: "; //Asks for age > > > > cin>>age; //The input is put in age > > > > if(age<100) //If the age is less than 100 > > > > { > > > > cout<<"You are pretty young!"; //Just to show it works > > > > } > > > > else if(age==100) //I use else just to show an example > > > > { > > > > cout<<"You are old"; //Just to show you it works... > > > > } > > > > else > > > > { > > > > cout<<"You are really old"; //Executed if no other statement is executed > > > > > > } > > > > return 0; > > > > } > > //end of code > > > > when I enter "my age" then I must press <ENTER> to run the if > > statements, The DOS window stays up till i press <ENTER> to process. > > > > I cant get the movie to pause and give me the result "You are old". "You > > are really old" or whatever the result must be. > > > > How can I pause the movie and process it? > > > > I tried: > > > > //code > > system("PAUSE"); > > return 0; > > } > > //code > > > > but this just trows an error. > > > > Also I tried to run the EXE by itself, but again, it does the same thing > > > > Thanks for your help > > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > TO UNSUBSCRIBE: http://www.noicys.cjb.net/devcpp/ub.htm > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > |
|
From: Carlos d. M. <cg...@wo...> - 2002-10-10 20:21:44
|
I have Dev-C++ 4.9.6.1 I was working with a project and suddenly and without any prompt (Save changes? dialog, e.g.) the program closed. After it happened again, I was typing if (!ini.is_open()); and it closed when I was typing the underscore. The first time I lost all the changes to the file, but this second time it saved all modifications before this line. And later it launched vRoach after typing the dot, surely while processing the auto completion, which I have active, and it showed this function (and some others I forgot were active), I send the report generated by it, but then it "vRoach.exe has generated errors, it will be closed by windows", when this ocurred in the low corner it was displaying "receiving 56b...". |
|
From: Santiago <sa...@ho...> - 2002-10-10 19:36:08
|
Can anyone please check the URls? Thanks ----- Original Message ----- From: "Ioannis Vranos" <no...@ho...> To: "'Santiago'" <sa...@ho...>; "'Carlos Garcνa del Monte'" <cg...@wo...>; "'dev-cpp-users-list'" <dev...@li...> Sent: Thursday, October 10, 2002 1:57 PM Subject: RE: [Dev-C++] Best book > -----Original Message----- > From: dev...@li... > [mailto:dev...@li...] On Behalf > Of Santiago > Sent: Thursday, October 10, 2002 8:00 PM > To: Carlos Garcνa del Monte; dev-cpp-users-list > Subject: Re: [Dev-C++] Best book > > > Hi, I'm doing a deep research on what book to buy for windows > programming. > Can anyone give me opinions on these book I found on Barnes and Noble: > > http://search.barnesandnoble.com/booksearch/isbnInquiry.asp?us > erid=0FPM8SWOC > Z&isbn=157231995X > > http://search.barnesandnoble.com/booksearch/isbnInquiry.asp?us > erid=0FPM8SWOC > Z&isbn=1572316950&pwb=1 > > http://search.barnesandnoble.com/booksearch/isbnInquiry.asp?us > erid=0FPM8SWOC > Z&isbn=0201758814 I did not check the URLs but be careful to be about .NET and not the (legacy now) Win32/MFC etc stuff. Ioannis * Ioannis Vranos * Programming pages: http://www.noicys.freeurl.com * Alternative URL: http://run.to/noicys |
|
From: Ihsan A. Al D. <ia...@jo...> - 2002-10-10 19:17:22
|
Try this list of books at amazon.com http://www.amazon.com/exec/obidos/tg/browse/-/3868/ref=br_bx_c_2_11/103-9116 913-1051823 Mohammed |
|
From: Ioannis V. <no...@ho...> - 2002-10-10 17:58:00
|
> -----Original Message----- > From: dev...@li...=20 > [mailto:dev...@li...] On Behalf=20 > Of Santiago > Sent: Thursday, October 10, 2002 8:00 PM > To: Carlos Garc=EDa del Monte; dev-cpp-users-list > Subject: Re: [Dev-C++] Best book >=20 >=20 > Hi, I'm doing a deep research on what book to buy for windows=20 > programming. > Can anyone give me opinions on these book I found on Barnes and Noble: >=20 > http://search.barnesandnoble.com/booksearch/isbnInquiry.asp?us > erid=3D0FPM8SWOC > Z&isbn=3D157231995X >=20 > http://search.barnesandnoble.com/booksearch/isbnInquiry.asp?us > erid=3D0FPM8SWOC > Z&isbn=3D1572316950&pwb=3D1 >=20 > http://search.barnesandnoble.com/booksearch/isbnInquiry.asp?us > erid=3D0FPM8SWOC > Z&isbn=3D0201758814 I did not check the URLs but be careful to be about .NET and not the (legacy now) Win32/MFC etc stuff. Ioannis * Ioannis Vranos * Programming pages: http://www.noicys.freeurl.com * Alternative URL: http://run.to/noicys =20 |
|
From: David S. W. <xi...@pr...> - 2002-10-10 17:43:25
|
I am getting some compile errors when compiling the first "TextEditorApp" example from the mini-tutorial. Basically, it is telling me that I need to define string not case specific for my compiler/OS, and that I also am including an unsupported toolkit (fonts.h). Has anyone had experience with this? I did post to the forum...but I am unsure if the question was received or not... ~Dave |
|
From: Daniel G. <sp...@ho...> - 2002-10-10 17:14:21
|
I think we need to see apstring.cpp
I don't think you've declared apstring as a class in a header file have you?
>From: "Gregory Hart" <gr...@fr...>
>Reply-To: "Gregory Hart" <gr...@fr...>
>To: <dev...@li...>
>Subject: [Dev-C++] Apstring
>Date: Wed, 9 Oct 2002 16:28:49 -0700
>
>I'm having trouble using apstring in Dev-C++. My code is:
>#include "iostream.h"
>#include "apstring.cpp"
>
>int main ()
>{
> apstring testString = "test";
> if (testString == "test"){
> cout << apstring
> }
>}
>I get 6 C:\Dev-Cpp\projects\irs\test.cpp `apstring' undeclared (first use
>this function).
>When I put apsting.cpp into the function, the first error is the ::.
>Any suggestions?
>-Greg
>
>
>
>
>-------------------------------------------------------
>This sf.net email is sponsored by:ThinkGeek
>Welcome to geek heaven.
>http://thinkgeek.com/sf
>_______________________________________________
>Dev-cpp-users mailing list
>Dev...@li...
>TO UNSUBSCRIBE: http://www.noicys.cjb.net/devcpp/ub.htm
>https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
_________________________________________________________________
MSN Photos is the easiest way to share and print your photos:
http://photos.msn.com/support/worldwide.aspx
|
|
From: Santiago <sa...@ho...> - 2002-10-10 16:59:54
|
Hi, I'm doing a deep research on what book to buy for windows programming. Can anyone give me opinions on these book I found on Barnes and Noble: http://search.barnesandnoble.com/booksearch/isbnInquiry.asp?userid=0FPM8SWOC Z&isbn=157231995X http://search.barnesandnoble.com/booksearch/isbnInquiry.asp?userid=0FPM8SWOC Z&isbn=1572316950&pwb=1 http://search.barnesandnoble.com/booksearch/isbnInquiry.asp?userid=0FPM8SWOC Z&isbn=0201758814 Thanks for your help! ----- Original Message ----- From: "Carlos García del Monte" <cg...@wo...> To: "dev-cpp-users-list" <dev...@li...> Sent: Wednesday, October 09, 2002 6:33 AM Subject: Re: [Dev-C++] Best book > I think "Windows Programming" by Rector and Newcomer is a better election, it is either fine for > beinners and it is a little (or more than little) deeper, and it treats more things. > I haven't read Petzold's book, but judging by its TOC and a downloadable version I found > somewhere, it is poorer, and nothing you find in Petzold is missing in Rector's book. > By appearance, Petzold's book has minimal C++ orientation, and Rector's has more. However, > Rector's use afx---.h files (MFC), which is not in dev, but you can read the code an adapt to > whatever c++ library can be for dev. I don't know about the book by Petzold, but I guess in its > C++ code MFC is used, too (if it has C++ code), if not you'll can compile all its examples and > work on them for experimenting. > My experience with "windows programming" is that now I have the "feeling" of windows programmin, I > know what's the way, I know what means the win32API reference (and I guess the Petzold's book > readers would say the same). > If someone knows it and I'm wrong, say it. > > Thanks > > > Santiago wrote: > > > > Hi all, > > Can anyone recommend a good book for programming wondows applications with c++/devcpp? > > > > Thanks! > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > TO UNSUBSCRIBE: http://www.noicys.cjb.net/devcpp/ub.htm > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > |
|
From: Administrator <ad_...@ho...> - 2002-10-10 16:43:49
|
i needed to include =3D(
#include <stdlib.h>
so every time i need to pause a move
i must include the=20
stdlib.h
and use the
system("pause");=20
command
thanx |
|
From: matthias <mm...@ma...> - 2002-10-10 16:36:09
|
we...@ha... wrote: > Hi Guys, > > Thkz Matthias. > > I had test the code that u sent: > > This stat and this code work under windows ?? Yes it should - at least it does here. You must also include <sys/types.h>, <sys/stat.h> and <ctype.h> Or just use FLTK for you whole project ;-) |
|
From: Santiago P. C. <San...@yd...> - 2002-10-10 16:20:59
|
Hi again,
You can use 'cin.ignore();' instead of 'system("pause");'.
This is a portable method also.
Regards,
Santy
PS: Maybe a C++ pedantic issue, but for C++ include style use '#include
<iostream>' instead of '#include <iostream.h>' ;o)
-----Original Message-----
From: Administrator [mailto:ad_...@ho...]
Sent: jueves, 10 de octubre de 2002 16:29
To: Dev...@li...
Subject: [Dev-C++] DEV-C++ Does Not Pause
//start of code
#include <iostream.h>
int main() //Most important part of the program!
{
int age; //Need a variable...
cout<<"Please input your age: "; //Asks for age
cin>>age; //The input is put in age
if(age<100) //If the age is less than 100
{
cout<<"You are pretty young!"; //Just to show it works
}
else if(age==100) //I use else just to show an example
{
cout<<"You are old"; //Just to show you it works...
}
else
{
cout<<"You are really old"; //Executed if no other statement is executed
}
return 0;
}
//end of code
when I enter "my age" then I must press <ENTER> to run the if statements,
The DOS window stays up till i press <ENTER> to process.
I cant get the movie to pause and give me the result "You are old". "You are
really old" or whatever the result must be.
How can I pause the movie and process it?
I tried:
//code
system("PAUSE");
return 0;
}
//code
but this just trows an error.
Also I tried to run the EXE by itself, but again, it does the same thing
Thanks for your help
--------------------------------------------------------------------------------------
This message and any files transmitted with it are confidential and intended solely
for the use of the individual or entity to whom they are addressed. No confidentiality
or privilege is waived or lost by any wrong transmission.
If you have received this message in error, please immediately destroy it and kindly
notify the sender by reply email.
You must not, directly or indirectly, use, disclose, distribute, print, or copy any
part of this message if you are not the intended recipient. Opinions, conclusions and
other information in this message that do not relate to the official business of
Ydilo Advanced Voice Solutions, S.A. shall be understood as neither given nor endorsed by it.
--------------------------------------------------------------------------------------
|
|
From: Helmut G <fla...@ho...> - 2002-10-10 16:06:57
|
yeah i needed to include:
#include <stdlib.h>
so every time i need to pause a move
i must include the=20
stdlib.h
and use the
system("pause");=20
command
thanx |
|
From: Stringer, A. <Adr...@as...> - 2002-10-10 15:38:03
|
-->
You probably have a compilation error.
system("PAUSE") needs stdlib.h (#include <stdlib.h>)
<--
Or, if you're using C++ and are a pedant like me, #include <cstdlib>
Ady
--
Things fall apart; the center cannot hold;
Mere anarchy is loosed upon the world,
The blood-dimmed tide is loosed, and everywhere
The ceremony of innocence is drowned.
|
|
From: Rafael C. <cha...@un...> - 2002-10-10 15:00:43
|
Hi,
You probably have a compilation error.
system("PAUSE") needs stdlib.h (#include <stdlib.h>)
Rafael
cha...@un...
Administrator wrote:
> //start of code
>
> #include <iostream.h>
//include stdlib
#include <stdlib.h>
>
> int main() //Most important part of the program!
>
> {
>
> int age; //Need a variable...
>
> cout<<"Please input your age: "; //Asks for age
>
> cin>>age; //The input is put in age
>
> if(age<100) //If the age is less than 100
>
> {
>
> cout<<"You are pretty young!"; //Just to show it works
>
> }
>
> else if(age==100) //I use else just to show an example
>
> {
>
> cout<<"You are old"; //Just to show you it works...
>
> }
>
> else
>
> {
>
> cout<<"You are really old"; //Executed if no other statement is executed
>
>
> }
>
> return 0;
>
> }
> //end of code
>
> when I enter "my age" then I must press <ENTER> to run the if
> statements, The DOS window stays up till i press <ENTER> to process.
>
> I cant get the movie to pause and give me the result "You are old". "You
> are really old" or whatever the result must be.
>
> How can I pause the movie and process it?
>
> I tried:
>
> //code
> system("PAUSE");
> return 0;
> }
> //code
>
> but this just trows an error.
>
> Also I tried to run the EXE by itself, but again, it does the same thing
>
> Thanks for your help
|
|
From: Elizabeth B. <sog...@ya...> - 2002-10-10 14:43:34
|
You could do another cin.
"Administrator" <ad_...@ho...> writes:
> This is a multi-part message in MIME format.
>
> ------=_NextPart_000_004F_01C2703F.657C9830
> Content-Type: text/plain;
> charset="iso-8859-1"
> Content-Transfer-Encoding: quoted-printable
>
> //start of code
>
> #include <iostream.h> =09
>
> int main() //Most important part of the program!
>
> {
>
> int age; //Need a variable...
char dummy; // for pausing...
>
> cout<<"Please input your age: "; //Asks for age
>
> cin>>age; //The input is put in age
>
> if(age<100) //If the age is less than 100
>
> {
>
> cout<<"You are pretty young!"; //Just to show it works
>
> }
>
> else if(age=3D=3D100) //I use else just to show an example=20
>
> {
>
> cout<<"You are old"; //Just to show you it works...
>
> }
>
> else
>
> {
>
> cout<<"You are really old"; //Executed if no other statement is =
> executed
>
>
> }
cout << "Hit enter to continue." << endl;
cin >> dummy;
>
> return 0;
>
> }
>
> //end of code
-e
|
|
From: Administrator <ad_...@ho...> - 2002-10-10 14:27:09
|
//start of code
#include <iostream.h> =09
int main() //Most important part of the program!
{
int age; //Need a variable...
cout<<"Please input your age: "; //Asks for age
cin>>age; //The input is put in age
if(age<100) //If the age is less than 100
{
cout<<"You are pretty young!"; //Just to show it works
}
else if(age=3D=3D100) //I use else just to show an example=20
{
cout<<"You are old"; //Just to show you it works...
}
else
{
cout<<"You are really old"; //Executed if no other statement is =
executed
}
return 0;
}
//end of code
when I enter "my age" then I must press <ENTER> to run the if =
statements, The DOS window stays up till i press <ENTER> to process.=20
I cant get the movie to pause and give me the result "You are old". "You =
are really old" or whatever the result must be.
How can I pause the movie and process it?
I tried:
//code
system("PAUSE");
return 0;
}
//code
but this just trows an error.
Also I tried to run the EXE by itself, but again, it does the same thing
Thanks for your help |
|
From: <we...@ha...> - 2002-10-10 12:11:50
|
Hi Guys,
Thkz Matthias.
I had test the code that u sent:
#include <stdio.h>
#include <dirent.h>
int fl_filename_isdir(const char* n);
int main(){
fl_filename_isdir("c:\\winnt");
return(0);
}
int fl_filename_isdir(const char* n) {
struct stat s;
#ifdef WIN32
char fn[1024];
int length;
// This workaround brought to you by the fine folks at Microsoft!
// (read lots of sarcasm in that...)
length = strlen(n);
if (length < (int)(sizeof(fn) - 1)) {
if (length < 4 && isalpha(n[0]) && n[1] == ':' &&
(isdirsep(n[2]) || !n[2])) {
// Always use D:/ for drive letters
fn[0] = n[0];
strcpy(fn + 1, ":/");
n = fn;
} else if (length > 0 && isdirsep(n[length - 1])) {
// Strip trailing slash from name...
length --;
memcpy(fn, n, length);
fn[length] = '\0';
n = fn;
}
}
#endif
return !stat(n, &s) && (s.st_mode&0170000)==0040000;
}
But it gave-me errors:
Executing g++.exe...
g++.exe "C:\tmp\test.cpp" -o
C:\tmp\test.exe" -s -I"E:\dev-c++\Dev-Cpp\include" -I"E:\dev-c++\Dev-Cpp
\include\g++-3" -I"E:\dev-c++\Dev-Cpp\include" -L"E:\dev-c++\Dev-Cpp\lib"
C:\tmp\test.cpp: In function `int fl_filename_isdir(const char *)':
C:\tmp\test.cpp:15: aggregate `struct stat s' has incomplete type and cannot
be initialized
C:\tmp\test.cpp:24: implicit declaration of function `int isalpha(...)'
C:\tmp\test.cpp:25: implicit declaration of function `int isdirsep(...)'
C:\tmp\test.cpp:40: type `stat' is not yet defined
Execution terminated
This stat and this code work under windows ??
I'm under windows. :)
Thkz a lot.
Best Regards.
[ ]'s
|
|
From: Mr P. X. <xpo...@ch...> - 2002-10-10 10:31:00
|
***************** URGENT ****************** Hi, I have a problem of calling an external dll function into an existing=20 dll created with dev-cpp. System Win2000 I create my dll with this params : --no-export-all-symbols --add-stdcall-alias --def fusappel.def --> it is OK but now I want to call an external function of another dll, I' ve=20 added: int __declspec(dllimport) Convert128(const char *code128res,const=20 char *code128);=20 in fusappel.def file I added next to the EXPORTS : IMPORTS Convert128=3DHB_DLL32.HB_MakeTranslation @8 The error I have is : Undefined Reference to _imp__Convert128 It seems like an "_" problem ? Anyone have an idea ? Thanks. It is very urgent for completing my project , thanks for any help. Xavier Poirier Service Informatique - H=F4pital Fleyriat Tel: 04 74 45 41 17=20 eFax: 04 74 23 04 53 mailto:xpo...@ch... -------------------------------------------------------------------- Ce courriel est envoy=E9 au travers de l' interface IMP: ch-bourg01.fr Ce message a =E9t=E9 pass=E9 automatiquement =E0 l' antivirus=20 This email have been sent through Imap Mail Program: ch-bourg01.fr This message have been scanned with an antivirus scanner |
|
From: Santiago P. C. <San...@yd...> - 2002-10-10 08:40:22
|
Hi again Greg,
I forgot to tell you that the following statement is wrong:
cout << apstring // ???
1st - apstring is a class, isn't it? So you can not use it like an object,
it is 'a type of object' but NOT an object itself.
2nd - you must output something valid and fully informational (a greeting,
an error string, or something).
3rd - you must end the statement with ';' if you want to avoid compiler
errors.
BTW, it should be fine also if you put the statement
using namespace std;
after your '#include' statements.
Just my 2 cents!
Best regards,
Santy
-----Original Message-----
From: Gregory Hart [mailto:gr...@fr...]
Sent: jueves, 10 de octubre de 2002 1:29
To: dev...@li...
Subject: [Dev-C++] Apstring
I'm having trouble using apstring in Dev-C++. My code is: #include
"iostream.h" #include "apstring.cpp"
int main ()
{
apstring testString = "test";
if (testString == "test"){
cout << apstring
}
}
I get 6 C:\Dev-Cpp\projects\irs\test.cpp `apstring' undeclared (first use
this function). When I put apsting.cpp into the function, the first error is
the ::. Any suggestions? -Greg
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf _______________________________________________
Dev-cpp-users mailing list
Dev...@li...
TO UNSUBSCRIBE: http://www.noicys.cjb.net/devcpp/ub.htm
https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
--------------------------------------------------------------------------------------
This message and any files transmitted with it are confidential and intended solely
for the use of the individual or entity to whom they are addressed. No confidentiality
or privilege is waived or lost by any wrong transmission.
If you have received this message in error, please immediately destroy it and kindly
notify the sender by reply email.
You must not, directly or indirectly, use, disclose, distribute, print, or copy any
part of this message if you are not the intended recipient. Opinions, conclusions and
other information in this message that do not relate to the official business of
Ydilo Advanced Voice Solutions, S.A. shall be understood as neither given nor endorsed by it.
--------------------------------------------------------------------------------------
|
|
From: Santiago P. C. <San...@yd...> - 2002-10-10 08:13:19
|
Hi Greg,
You should NOT include a '.cpp' file within another '.cpp' file (this is, of
course, valid for main.cpp also), you should only include "header" files:
'.h'/'.hpp'/'.hxx'/... These are files for class/functions/types/...
definitions, and '.cpp'/'.c' files are for class/functions/...
implementation.
So, I think your problem is that 'apstring' class definition is in
'apstring.h'/'apstring.hpp'/apstring.hxx'/whatever file, but NOT in
'apstring.cpp' file (remember: that file should contain the implementation,
but not the definition).
So you should include the appropriate header file and add the 'apstring.cpp'
file to the project (within Dev-C++ environment).
OTOH, you should:
1st -
Use the line
#include <iostream> // C++ style
Instead of using
#include "iostream.h" // C style for NON-SYSTEM headers
2nd -
Return some value from main function... It is declared as 'int main()'.
Hope this helps,
Santy
-----Original Message-----
From: Gregory Hart [mailto:gr...@fr...]
Sent: jueves, 10 de octubre de 2002 1:29
To: dev...@li...
Subject: [Dev-C++] Apstring
I'm having trouble using apstring in Dev-C++. My code is: #include
"iostream.h" #include "apstring.cpp"
int main ()
{
apstring testString = "test";
if (testString == "test"){
cout << apstring
}
}
I get 6 C:\Dev-Cpp\projects\irs\test.cpp `apstring' undeclared (first use
this function). When I put apsting.cpp into the function, the first error is
the ::. Any suggestions? -Greg
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf _______________________________________________
Dev-cpp-users mailing list
Dev...@li...
TO UNSUBSCRIBE: http://www.noicys.cjb.net/devcpp/ub.htm
https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
--------------------------------------------------------------------------------------
This message and any files transmitted with it are confidential and intended solely
for the use of the individual or entity to whom they are addressed. No confidentiality
or privilege is waived or lost by any wrong transmission.
If you have received this message in error, please immediately destroy it and kindly
notify the sender by reply email.
You must not, directly or indirectly, use, disclose, distribute, print, or copy any
part of this message if you are not the intended recipient. Opinions, conclusions and
other information in this message that do not relate to the official business of
Ydilo Advanced Voice Solutions, S.A. shall be understood as neither given nor endorsed by it.
--------------------------------------------------------------------------------------
|
|
From: <do...@ed...> - 2002-10-10 03:19:46
|
Hi all, anyone managed to compile the C++ demo's from OSG? If so would you please supply any tips for setting up DevC for correct linking? I keep getting "undefined reference" errors. Ta |