dev-cpp-users Mailing List for Dev-C++ (Page 482)
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: P.D. v. Z. <pd...@xs...> - 2002-11-23 00:16:54
|
Hi, I'm trying to write a program which should be able to compile on Linux using gcc (actually, g++, but still), as well as under Dev-C++ (that's my goal). It appears mingw (I suppose?) doesn't implement 'socket()' or any of these functions, and the only way I can develop my program at the moment, is by writing my code in Dev-C++, then using cygwin to compile it, and then in a command window execute the program to see if it all works well... seems to me like this could be done simpler.... for example, by hitting 'Compile' from within Dev-C++ :P I hope it's somehow possible to perform these socket calls and be able to compile the code from within the IDE (I think the ones that are giving the most trouble are "fnctl", "ioctl", "socket", "write" etc). Why oh why did I have to make this project cross-platform :| Anyway, I hope anyone can help me with this... or if someone could tell me "it can't be done" or anything. Thanks in advance, Paul |
|
From: Carlos d. M. <cg...@wo...> - 2002-11-22 17:26:37
|
Dev4 didn't have libconio.a (I never saw it) Matthews escribi=F3: > Of course, you can also put -lconio in your linker options, #include > <conio.h> in your program and use the gotoxy(x,y) function. Unless you= 're > talking about some older version which has problems with this (I don't = know > why though.) > > At 11:32 PM 21/11/2002 +0100, you wrote: > >#include <conio.c> or make a project with conio.c and #include <conio.= h> > >(But then you must copy conio to the project's directory, since dev 4 > >Hadn't support for different dirs) > >Or search in the archive, months ago (perhaps March???) someone sent a > >message using some functions in winstyle you could prefer. > > > >ricardo Guerra escribi=F3: > > > >> Could anyone tell me how to make a gotoxy(x,y) in Dev C 4.0 .Pascal = can > >> maake it... > >> thz a lot....!!!!! > >> > >> _________________________________________________________________ > >> MSN. M=E1s =DAtil Cada D=EDa http://www.msn.es/intmap/ > >> > >> ------------------------------------------------------- > >> 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 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: Louis G. <lg...@ya...> - 2002-11-22 16:30:38
|
Hi all, I trying to get C souce code for the gnu lib function getdelim(). Can anyone help ? __________________________________________________ Do you Yahoo!? Yahoo! Mail Plus Powerful. Affordable. Sign up now. http://mailplus.yahoo.com |
|
From: shar1 <sh...@ar...> - 2002-11-22 13:25:40
|
Hi all, I've installed last Dev-C++ version, installed ImageLib and WxWindows packages, and tried to compile. I got undefined reference errors, and I've linked the ole32.lib. Any help? Linker options: -lkernel32 -luser32 -lgdi32 -lwinspool -lcomdlg32 -ladvapi32 -lshell32 - ole32 -loleaut32 -luuid -lodbc32 -lodbccp32 -lcomctl32 -lrpcrt4 - lwsock32 -lwinmm -lwx -lxpm -lpng -lz -ljpeg -ltiff Here is the error message: D:/tmp/david/Dev-Cpp/lib/libwx.a(app.o)(.text+0x447): undefined reference to `InitCommonControls@0' D:/tmp/david/Dev-Cpp/lib/libwx.a(app.o)(.text+0x451): undefined reference to `OleInitialize@4' D:/tmp/david/Dev-Cpp/lib/libwx.a(app.o)(.text+0x102a): undefined reference to `OleUninitialize@0' D:/tmp/david/Dev-Cpp/lib/libwx.a(utils.o)(.text+0x31e): undefined reference to `WSAStartup@8' D:/tmp/david/Dev-Cpp/lib/libwx.a(utils.o)(.text+0x348): undefined reference to `gethostname@8' [...] and so on Command line shows as: make.exe -f "D:\tmp\david\David\Atlantis\ah_2.1.5\Makefile.win" all g++.exe ahapp.o ahframe.o cfgfile.o collection.o consts_ah.o cstr.o data.o editpane.o editsframe.o errs.o files.o listpane.o mapframe.o mappane.o msgframe.o objs.o optionsdlg.o parser.o unitframe.o unitframefltr.o unitpane.o unitpanefltr.o utildlgs.o ah_private.res - o "ah.exe" -L"D:/tmp/david/Dev-Cpp/lib" -L"/lib" -L"D:/tmp/david/Dev- Cpp/lib" -lkernel32 -luser32 -lgdi32 -lwinspool -lcomdlg32 -ladvapi32 - lshell32 -ole32 -loleaut32 -luuid -lodbc32 -lodbccp32 -lcomctl32 - lrpcrt4 -lwsock32 -lwinmm -lwx -lxpm -lpng -lz -ljpeg -ltiff - I"D:/tmp/david/Dev-Cpp/include" -I"D:/tmp/david/Dev-Cpp/include/g++- 3" -I"D:/tmp/david/Dev-Cpp/include" -D__GNUWIN32__ -W -finline- functions -DNDEBUG -DWIN32 -D_WINDOWS -D__WINDOWS__ -D__WXMSW__ - D__WIN95__ -D__WIN32__ -DWINVER=0x0400 -DSTRICT -s -mwindows |
|
From: shar1 <sh...@ar...> - 2002-11-22 13:24:36
|
Hi all, I've installed last Dev-C++ version, installed ImageLib and WxWindows packages, and tried to compile. I got undefined reference errors, and I've linked the ole32.lib. Any help? Linker options: -lkernel32 -luser32 -lgdi32 -lwinspool -lcomdlg32 -ladvapi32 -lshell32 - ole32 -loleaut32 -luuid -lodbc32 -lodbccp32 -lcomctl32 -lrpcrt4 - lwsock32 -lwinmm -lwx -lxpm -lpng -lz -ljpeg -ltiff Here is the error message: D:/tmp/david/Dev-Cpp/lib/libwx.a(app.o)(.text+0x447): undefined reference to `InitCommonControls@0' D:/tmp/david/Dev-Cpp/lib/libwx.a(app.o)(.text+0x451): undefined reference to `OleInitialize@4' D:/tmp/david/Dev-Cpp/lib/libwx.a(app.o)(.text+0x102a): undefined reference to `OleUninitialize@0' D:/tmp/david/Dev-Cpp/lib/libwx.a(utils.o)(.text+0x31e): undefined reference to `WSAStartup@8' D:/tmp/david/Dev-Cpp/lib/libwx.a(utils.o)(.text+0x348): undefined reference to `gethostname@8' [...] and so on Command line shows as: make.exe -f "D:\tmp\david\David\Atlantis\ah_2.1.5\Makefile.win" all g++.exe ahapp.o ahframe.o cfgfile.o collection.o consts_ah.o cstr.o data.o editpane.o editsframe.o errs.o files.o listpane.o mapframe.o mappane.o msgframe.o objs.o optionsdlg.o parser.o unitframe.o unitframefltr.o unitpane.o unitpanefltr.o utildlgs.o ah_private.res - o "ah.exe" -L"D:/tmp/david/Dev-Cpp/lib" -L"/lib" -L"D:/tmp/david/Dev- Cpp/lib" -lkernel32 -luser32 -lgdi32 -lwinspool -lcomdlg32 -ladvapi32 - lshell32 -ole32 -loleaut32 -luuid -lodbc32 -lodbccp32 -lcomctl32 - lrpcrt4 -lwsock32 -lwinmm -lwx -lxpm -lpng -lz -ljpeg -ltiff - I"D:/tmp/david/Dev-Cpp/include" -I"D:/tmp/david/Dev-Cpp/include/g++- 3" -I"D:/tmp/david/Dev-Cpp/include" -D__GNUWIN32__ -W -finline- functions -DNDEBUG -DWIN32 -D_WINDOWS -D__WINDOWS__ -D__WXMSW__ - D__WIN95__ -D__WIN32__ -DWINVER=0x0400 -DSTRICT -s -mwindows |
|
From: Carlos d. M. <cg...@wo...> - 2002-11-21 22:34:43
|
#include <conio.c> or make a project with conio.c and #include <conio.h> (But then you must copy conio to the project's directory, since dev 4 Hadn't support for different dirs) Or search in the archive, months ago (perhaps March???) someone sent a message using some functions in winstyle you could prefer. ricardo Guerra escribi=F3: > Could anyone tell me how to make a gotoxy(x,y) in Dev C 4.0 .Pascal can > maake it... > thz a lot....!!!!! > > _________________________________________________________________ > MSN. M=E1s =DAtil Cada D=EDa http://www.msn.es/intmap/ > > ------------------------------------------------------- > 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: ricardo G. <el_...@ho...> - 2002-11-21 20:54:46
|
Could anyone tell me how to make a gotoxy(x,y) in Dev C 4.0 .Pascal can maake it... thz a lot....!!!!! _________________________________________________________________ MSN. Más Útil Cada Día http://www.msn.es/intmap/ |
|
From: Ioannis V. <no...@ho...> - 2002-11-21 20:18:34
|
> -----Original Message----- > From: Ioannis Vranos [mailto:no...@ho...] > Sent: Thursday, November 21, 2002 10:16 PM > To: Dev-C++ Mailing List (dev...@li...) > Subject: RE: [Dev-C++] 2 more questions > > > > -----Original Message----- > > From: dev...@li... > > [mailto:dev...@li...] On Behalf > > Of Paul Ardeleanu > > Sent: Thursday, November 21, 2002 8:40 PM > > To: Dev-C++ Mailing List > > Subject: RE: [Dev-C++] 2 more questions > > > > > > Why are you all so keen in returning a value at the end of main? > > > It is required in C90. By "required" i mean that if you do not return a value, "undefined behaviour" occurs. Not required in C++98 and C99 (=if you > do not return anything, a value indicating success is > returned implicitly). > > > > Ioannis Vranos > > * Programming pages: http://www.noicys.freeurl.com > * Alternative URL: http://run.to/noicys > > > |
|
From: Ioannis V. <no...@ho...> - 2002-11-21 20:16:21
|
> -----Original Message----- > From: dev...@li... > [mailto:dev...@li...] On Behalf > Of Paul Ardeleanu > Sent: Thursday, November 21, 2002 8:38 PM > To: dev...@li... > Subject: Re: [Dev-C++] A simple problem > > > Is there any place where all these options are explain? > Thanks! http://gcc.gnu.org at the documentation area. Ioannis Vranos * Programming pages: http://www.noicys.freeurl.com * Alternative URL: http://run.to/noicys |
|
From: Ioannis V. <no...@ho...> - 2002-11-21 20:15:42
|
> -----Original Message----- > From: dev...@li... > [mailto:dev...@li...] On Behalf > Of Paul Ardeleanu > Sent: Thursday, November 21, 2002 8:40 PM > To: Dev-C++ Mailing List > Subject: RE: [Dev-C++] 2 more questions > > > Why are you all so keen in returning a value at the end of main? It is required in C90. Not required in C++98 and C99 (=if you do not return anything, a value indicating success is returned implicitly). Ioannis Vranos * Programming pages: http://www.noicys.freeurl.com * Alternative URL: http://run.to/noicys |
|
From: <or...@vp...> - 2002-11-21 19:39:27
|
Hello CRV§ADER! I have a few things differently set, and it also works. Also I have a few questions, if you can, please answer them. Thursday, November 21, 2002, 6:13:12 PM, you wrote: CK> For some reasons I don't know (I suppose they've just forgot it) rm.exe is CK> not provided by MinGW-2.0.0-3.exe, so you should include it in your CK> "executable only" release. rm.exe is provided with MSys (Minimal system). It is a collection of tools that are available on Unix systems, ported to windows. They include rm.exe among other useful things (it also includes the normal make.exe). It can be downloaded from http://www.mingw.org It's bin directory is added to my PATH and DevCpp uses rm.exe from there. CK> 1)Install Dev-C++ exe CK> 2)Install MinGW into the same directory of Dev-C++ I have it separately installed, and it also works. CK> 3)rename <DEV-CPP DIR>\BIN\mingw32-make.exe to make.exe CK> 4)You'll need rm.exe; put it in <DEV-CPP DIR>\BIN CK> 6)Make sure that in C:\AUTOEXEC.BAT there is an entry in PATH that states CK> "<DEV-CPP DIR>\BIN" CK> 7)Run Dev-C++ and go to Tools->Compiler Options->Directories. CK> In "binaries" add <DEV-CPP DIR>\BIN *Please help me here. If the \BIN directory is already in the PATH, it wouldn't need to be set, but DevCpp complains about it. How can I NOT set it? CK> In "C++ includes" remove <DEV-CPP DIR>\INCLUDE\G++3 and add <DEV-CPP DIR>>\INCLUDE\C++\3.2 *Please help here _too_. Is it possible not to set any of these??? Because when I don't set them I get an error, that I explained quite a few days ago (Subject: includes and libraries), but still haven't got any answer. I don't need any includes globally, GCC automatically finds them anyway. Please answer if you have the time. I would be VERY greatful. -- Best regards, Oroszi Balázs mailto:or...@vp... PGP-FP: FB80 8A43 2664 6126 E465 46E2 2546 CFA3 C25B 9F70 finger -l or...@se... |
|
From: <par...@ya...> - 2002-11-21 18:40:04
|
Why are you all so keen in returning a value at the end of main? Paul --- Ioannis Vranos <no...@ho...> wrote: > int main(void) ... > return 0; > > > } __________________________________________________ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com |
|
From: <par...@ya...> - 2002-11-21 18:38:32
|
Is there any place where all these options are explain? Thanks! Paul --- Luigi Santillo <gi...@li...> wrote: > Try adding the options "-ansi -pedantic" and you'll see that > the compiler complains about strings extending past the end > of a line. > > If you replace "-pedantic" by "-pedantic-errors", the compiler > will refuse to generate object file. __________________________________________________ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com |
|
From: Charles <cha...@at...> - 2002-11-21 18:27:24
|
Wilson - > anyone knows a plugin, or something like that, to format the code in the code editor ? I use Artistic Style. (http://astyle.sourceforge.net) "Artistic Style is a reindenter and reformatter of C, C++, C# and Java source code." You might also look at a program named Great Code. Chuck |
|
From: /KY <cru...@in...> - 2002-11-21 17:15:31
|
For some reasons I don't know (I suppose they've just forgot it) rm.exe is=
=20
not provided by MinGW-2.0.0-3.exe, so you should include it in your=20
"executable only" release. Also, some guide on how to install a functional=
=20
system starting from the two indipendent packages should be provided. I=20
wrote one:
1)Install Dev-C++ exe
2)Install MinGW into the same directory of Dev-C++
3)rename <DEV-CPP DIR>\BIN\mingw32-make.exe to make.exe
4)You'll need rm.exe; put it in <DEV-CPP DIR>\BIN
6)Make sure that in C:\AUTOEXEC.BAT there is an entry in PATH that states=20
"<DEV-CPP DIR>\BIN"
7)Run Dev-C++ and go to Tools->Compiler Options->Directories.
In "binaries" add <DEV-CPP DIR>\BIN
In "C++ includes" remove <DEV-CPP DIR>\INCLUDE\G++3 and add <DEV-CPP=20
DIR>\INCLUDE\C++\3.2
(note that these path may vary with different versions)
Apropos: why are you still running with gcc-2.95 in your main distro?
Guido Imperiale
cru...@in...
-------------------------------
CRV=A7ADER/KY
KnowledgE is PoweR
|
|
From: Wilson A. D. J. <wj...@un...> - 2002-11-21 17:01:48
|
anyone knows a plugin, or something like that, to format the code in the code editor ? tks Wilson (from Brazil) |
|
From: Ioannis V. <no...@ho...> - 2002-11-20 18:53:35
|
> -----Original Message-----
> From: Ioannis Vranos [mailto:no...@ho...]
> Sent: Wednesday, November 20, 2002 8:49 PM
> To: Dev-C++ Mailing List (dev...@li...)
> Subject: RE: [Dev-C++] 2 more questions
>
>
> > -----Original Message-----
> > From: dev...@li...
> > [mailto:dev...@li...] On Behalf
> > Of Paul Ardeleanu
> > Sent: Tuesday, November 19, 2002 10:56 PM
> > To: dev...@li...
> > Subject: [Dev-C++] 2 more questions
> >
> >
> > Hi again!
> > Is there an equivalent of clrscr() in Dev-C++?
> > Also can you give me a solution for the counting characters program?
> > I tried the following but it seems that the printf statement is not
> > executed.
> > Thank you!
> > Paul
> >
> >
> > #include <stdlib.h>
> > #include <stdio.h>
> >
> > void main(void)
>
> int main(void)
>
>
> > {
> > double nc;
> > for(nc=0;getchar()!=EOF;nc++)
> > ;
> > printf("%.0f\n",nc);
>
> printf("%.0lf\n", nc);
Forget the above line. My mistake.
>
>
>
> > system("PAUSE");
>
> return 0;
>
> > }
>
>
> What do you mean? The above fixed-to-be-portable code works:
>
> C:\c>temp <temp.c
> 182
> Press any key to continue . . .
>
> C:\c>
>
>
>
> Ioannis Vranos
>
> * Programming pages: http://www.noicys.freeurl.com
> * Alternative URL: http://run.to/noicys
>
|
|
From: Ioannis V. <no...@ho...> - 2002-11-20 18:49:32
|
> -----Original Message-----
> From: dev...@li...
> [mailto:dev...@li...] On Behalf
> Of Paul Ardeleanu
> Sent: Tuesday, November 19, 2002 10:56 PM
> To: dev...@li...
> Subject: [Dev-C++] 2 more questions
>
>
> Hi again!
> Is there an equivalent of clrscr() in Dev-C++?
system("cls");
Ioannis Vranos
* Programming pages: http://www.noicys.freeurl.com
* Alternative URL: http://run.to/noicys
|
|
From: Ioannis V. <no...@ho...> - 2002-11-20 18:49:05
|
> -----Original Message-----
> From: dev...@li...
> [mailto:dev...@li...] On Behalf
> Of Paul Ardeleanu
> Sent: Tuesday, November 19, 2002 10:56 PM
> To: dev...@li...
> Subject: [Dev-C++] 2 more questions
>
>
> Hi again!
> Is there an equivalent of clrscr() in Dev-C++?
> Also can you give me a solution for the counting characters program?
> I tried the following but it seems that the printf statement is not
> executed.
> Thank you!
> Paul
>
>
> #include <stdlib.h>
> #include <stdio.h>
>
> void main(void)
int main(void)
> {
> double nc;
> for(nc=0;getchar()!=EOF;nc++)
> ;
> printf("%.0f\n",nc);
printf("%.0lf\n", nc);
> system("PAUSE");
return 0;
> }
What do you mean? The above fixed-to-be-portable code works:
C:\c>temp <temp.c
182
Press any key to continue . . .
C:\c>
Ioannis Vranos
* Programming pages: http://www.noicys.freeurl.com
* Alternative URL: http://run.to/noicys
|
|
From: Luigi S. <gi...@li...> - 2002-11-20 17:58:21
|
On Tue, Nov 19, 2002 at 11:47:21AM +0000, Paul Ardeleanu wrote:
> Can Anyone tell me why this code WORKS FINE in DevC++?
> ...
> -----------------------------------------------------------
> main ()
> {
> printf("hello, world
> \n
>
>
> ");
> ...
Try adding the options "-ansi -pedantic" and you'll see that
the compiler complains about strings extending past the end
of a line.
If you replace "-pedantic" by "-pedantic-errors", the compiler
will refuse to generate object file.
--
>> gisan >>
Q: Why did Menachem Begin invade Lebanon?
A: To impress Jodie Foster.
|
|
From: Graeme F. <gr...@dr...> - 2002-11-20 16:00:27
|
clrscr()...
Actually you almost answered your own question. The system() function calls
an O/S function and good ole DOS - the O/S has the - cls function so all you
need to do is...
system ("cls");
Graeme.
|
|
From: <par...@ya...> - 2002-11-20 15:29:40
|
Thanks guys for all your input! Cheers! Paul --- Oroszi Balázs <or...@vp...> wrote: > Hello Paul! > > Well, I examined your problem further. On my Linux (Debian) YOUR code > works fine (no need for the first '\n'). > > NOTE that on Linux AND in DevCpp the SAME compiler (gcc) is used, with > the same standard library (just different implementation). > > So the problem is with Microslut's Windblows' console stdin/stdout > handling. It is not a suprise that things don't work on Windblows as > you would expect. > > -- > Best regards, > Oroszi Balázs mailto:or...@vp... > > PGP-FP: FB80 8A43 2664 6126 E465 46E2 2546 CFA3 C25B 9F70 > finger -l or...@se... __________________________________________________ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com |
|
From: <or...@vp...> - 2002-11-20 14:57:30
|
Hello Paul!
> #include <stdio.h>
>
> int main(void)
> {
> int nc;
> for(nc=0;getchar()!=EOF;nc++)
> ;
> printf("\n"); /* On Linux this is NOT needed */
> printf("%d\n",nc);
>
> return 0;
> }
Paul wrote:
> Also can you give me a solution for the counting characters program?
> I tried the following but it seems that the printf statement is not
> executed.
Well, I examined your problem further. On my Linux (Debian) YOUR code
works fine (no need for the first '\n').
NOTE that on Linux AND in DevCpp the SAME compiler (gcc) is used, with
the same standard library (just different implementation).
So the problem is with Microslut's Windblows' console stdin/stdout
handling. It is not a suprise that things don't work on Windblows as
you would expect.
--
Best regards,
Oroszi Balázs mailto:or...@vp...
PGP-FP: FB80 8A43 2664 6126 E465 46E2 2546 CFA3 C25B 9F70
finger -l or...@se...
|
|
From: Cidar F. R. S. <ci...@gm...> - 2002-11-20 13:48:56
|
In Dev-C++/Include: Exists two files called "conio.c" and "conio.h", then copy them and paste them into your source project directory. Now ADD this two files copied to your project. Add this line code in your include section of your program; #include "conio.h" ____________________-- And NOW use all CONIO FUNCTIONS.(See conio.h to find al functions included) ______________________________________ Ing. Cidar F. Rojas Santamaria http://www.ecotourism.co.cr - Costa Rica. |
|
From: Carlos d. M. <cg...@wo...> - 2002-11-20 11:44:05
|
For clrscr(). Use conio. The way for use it dependes on the version of
compiler you have. First it was #include <conio.h>, after it lost
everything, and after it was #include <conio.h> and linker -lconio. Or yo=
u
can #include <mingw_conio.h> (check it in the include directory, perhaps
it is conio_mingw.h>.
Anders Eriksson escribi=F3:
> Hello Paul,
>
> Tuesday, November 19, 2002, 9:55:35 PM, you wrote:
>
> PA> Hi again!
> PA> Is there an equivalent of clrscr() in Dev-C++?
> I assume that you are doing a console application.
>
> There is two ways (.or more.)
> Do enough linefeeds to push the last written text above the screen.
> e.g. for(int i=3D0;i<30;i++)printf("\n");
>
> Or use a curses library. PDCurses is a Public Domain library
> http://pdcurses.sourceforge.net/
>
> --
> Best regards,
> Anders mailto:am...@sw...
>
> -------------------------------------------------------
> This sf.net email is sponsored by: To learn the basics of securing
> your web site with SSL, click here to get a FREE TRIAL of a Thawte
> Server Certificate: http://www.gothawte.com/rd524.html
> _______________________________________________
> 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
|