dev-cpp-users Mailing List for Dev-C++ (Page 693)
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: Ewald H. <sl...@ya...> - 2001-06-07 23:51:04
|
>Is there anyway to get a resolution size of the users computer? >Also, can anyone help me with launching an external .exe file from my program? >Any help would be muchly appreciated. :) >Jay Silverman Howdy... For executing an external file try WinExec(). As for the resolution - there is a way - I'll have to look it up though! Chow Ewald _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com |
|
From: Ioannis V. <no...@ya...> - 2001-06-07 23:20:36
|
The system(char *) function executes system commands. E.g.
system("dir"); executes the dir command. system("t.exe"); executes
t.exe.
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 Jay
Silverman
Sent: Thursday, June 07, 2001 11:40 PM
To: dev...@li...
Subject: [Dev-C++] Resolution Size, run external exe?
Is there anyway to get a resolution size of the users computer?
Also, can anyone help me with launching an external .exe file from my
program?
Any help would be muchly appreciated. :)
Jay Silverman
|
|
From: Jay S. <mys...@op...> - 2001-06-07 21:43:18
|
Is there anyway to get a resolution size of the users computer? Also, can anyone help me with launching an external .exe file from my program? Any help would be muchly appreciated. :) Jay Silverman |
|
From: Ioannis V. <no...@ya...> - 2001-06-07 20:48:13
|
The previous code that I sent is for converting a dos/windows path to unix path. I hadn't read carefully what you have written. If you want to split the directory path from the filename in a dos/windows environment use this: #include <string.h> ... char s[]=3D"path\\filename"; char filename[255]; char path[1024]; size_t i; char *p=3Dstrrchr(s, "\\"); strcpy(filename, p); for(i=3D0; i<p-s; i++) path[i]=3Ds[i]; path[i]=3D'\0'; This can be done better but it is a quick (and error-prone) example. 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 Albert Vilella Bertran Sent: Thursday, June 07, 2001 10:51 AM To: DevC MAILING List Subject: [Dev-C++] ANSI C: How to split path and filename Hello, how do I split my path and my filename? Example: c:\things\alfa\myfile.txt like: char *thepath ----> c:\things\alfa char *thefile ----> myfile.txt in ANSI C (or C), meaning the same way with DOS or UNIX There is anywhere to find this kind of things? (I couldn't find in the help neither in Bob Stout's snippets) Thanks. _______________________________________________________________ Do You Yahoo!? Yahoo! Messenger: Comunicaci=F3n instant=E1nea gratis con tu gente - http://messenger.yahoo.es _______________________________________________ Dev-cpp-users mailing list Dev...@li... http://lists.sourceforge.net/lists/listinfo/dev-cpp-users |
|
From: Ioannis V. <no...@ya...> - 2001-06-07 20:37:04
|
Use something like:
#include <string.h>
/* ... */
char s[]=3D"...";
while(strstr(s, "\\")!=3DNULL)
*strstr(s, "\\")=3D'/';
/* ... */
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 Albert
Vilella Bertran
Sent: Thursday, June 07, 2001 10:51 AM
To: DevC MAILING List
Subject: [Dev-C++] ANSI C: How to split path and filename
Hello,
how do I split my path and my filename?
Example:
c:\things\alfa\myfile.txt
like: char *thepath ----> c:\things\alfa
char *thefile ----> myfile.txt
in ANSI C (or C), meaning the same way with DOS or UNIX
There is anywhere to find this kind of things? (I couldn't find in the
help neither in Bob Stout's snippets)
Thanks.
_______________________________________________________________
Do You Yahoo!?
Yahoo! Messenger: Comunicaci=F3n instant=E1nea gratis con tu gente -
http://messenger.yahoo.es
_______________________________________________
Dev-cpp-users mailing list
Dev...@li...
http://lists.sourceforge.net/lists/listinfo/dev-cpp-users
|
|
From: Fabien V. <fv...@fr...> - 2001-06-07 15:31:23
|
Sure it would be faster. LOL! = P And for the matter of the "/" (UNIX) and "\" ( DOS ) well, you could perform a first research on the "/" or the "\". If you don't get one then you know which one to use, and you could set a state variable to remember which one to find next. ----- Original Message ----- From: "Max The Hunted" <ma...@va...> To: <dev...@li...> Sent: Thursday, June 07, 2001 1:18 PM Subject: Re: [Dev-C++] ANSI C: How to split path and filename Why wouldn't you go from the end to the beginning, and try to find a '\'? When you do, everything after is a file, and before is the path. Similar, but I'd say a little bit faster. Max ----- Original Message ----- From: "Fabien VIVES" <fv...@fr...> To: <dev...@li...> Sent: Thursday, June 07, 2001 11:29 AM Subject: Re: [Dev-C++] ANSI C: How to split path and filename > What you can do is a loop, where the condition is " do I find another \ " ? > And you could do like this. > You find the first "\" > copy "c:\" in a string. > Look for another "\" > paste the sequel to the first string > I mean : "things\" to " c:\" > and you get a string with : "c:\things\" > then you look for another "\" > And you have : "alfa\" paste it to your string, and you get > "c:\things\alfa\" > Since you don't have anymore "\" the rest of the string will be a filename. > Use the strstr() function > strcp() ( if I remember the name ). > They are all in the string.h > Hope it helps. > > Fabien. > fv...@fr... > > ----- Original Message ----- > From: "Albert Vilella Bertran" <vil...@ya...> > To: "DevC MAILING List" <dev...@li...> > Sent: Thursday, June 07, 2001 10:50 AM > Subject: [Dev-C++] ANSI C: How to split path and filename > > > > Hello, > > how do I split my path and my filename? > > Example: > > > > c:\things\alfa\myfile.txt > > > > like: char *thepath ----> c:\things\alfa > > char *thefile ----> myfile.txt > > > > in ANSI C (or C), meaning the same way with DOS or UNIX > > > > There is anywhere to find this kind of things? (I couldn't find in the > help > > neither in Bob Stout's snippets) > > > > Thanks. > > > > _______________________________________________________________ > > Do You Yahoo!? > > Yahoo! Messenger: Comunicación instantánea gratis con tu gente - > > http://messenger.yahoo.es > > > > _______________________________________________ > > Dev-cpp-users mailing list > > Dev...@li... > > http://lists.sourceforge.net/lists/listinfo/dev-cpp-users > > > > > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > http://lists.sourceforge.net/lists/listinfo/dev-cpp-users > _______________________________________________ Dev-cpp-users mailing list Dev...@li... http://lists.sourceforge.net/lists/listinfo/dev-cpp-users |
|
From: Schedler, K. <Kur...@hi...> - 2001-06-07 14:30:50
|
Don't forget that Unix uses forward slashes and DOS (somewhat =
annoyingly,
IMO) uses backslashes. So if you're testing for a particular =
character, it
won't work indentically on different platforms.
-----Original Message-----
From: Albert Vilella Bertran [mailto:vil...@ya...]
Sent: Thursday, June 07, 2001 1:51 AM
To: DevC MAILING List
Subject: [Dev-C++] ANSI C: How to split path and filename
Hello,
how do I split my path and my filename?
Example:
c:\things\alfa\myfile.txt
like: char *thepath ----> c:\things\alfa
char *thefile ----> myfile.txt
in ANSI C (or C), meaning the same way with DOS or UNIX
There is anywhere to find this kind of things? (I couldn't find in the =
help
neither in Bob Stout's snippets)
Thanks.
_______________________________________________________________
Do You Yahoo!?
Yahoo! Messenger: Comunicaci=F3n instant=E1nea gratis con tu gente -
http://messenger.yahoo.es
_______________________________________________
Dev-cpp-users mailing list
Dev...@li...
http://lists.sourceforge.net/lists/listinfo/dev-cpp-users
"The sender believes that this E-mail and any attachments were free of =
any
virus, worm, Trojan horse, and/or malicious code when sent. This =
message
and its attachments could have been infected during transmission. By
reading the message and opening any attachments, the recipient accepts =
full
responsibility for taking protective and remedial action about viruses =
and
other defects. The sender's employer is not liable for any loss or =
damage
arising in any way from this message or its attachments."
|
|
From: Paul B. <pb...@no...> - 2001-06-07 13:22:53
|
To whom it may concern, > I downloaded dev-c++ and I get the GUI and I > enter some code. When I hit compile and run I get a > compiler/linker output showing no errors but the > execute button is not highlighted and no execute > code is produced. Even if I purposely enter errors > in the source code, I still get no errors reported. > Nothing seems to be happening. Does this Dev-C++ > compiler actually work??? > Any help appreciated. Paul |
|
From: Max T. H. <ma...@va...> - 2001-06-07 11:19:23
|
Why wouldn't you go from the end to the beginning, and try to find a '\'? When you do, everything after is a file, and before is the path. Similar, but I'd say a little bit faster. Max ----- Original Message ----- From: "Fabien VIVES" <fv...@fr...> To: <dev...@li...> Sent: Thursday, June 07, 2001 11:29 AM Subject: Re: [Dev-C++] ANSI C: How to split path and filename > What you can do is a loop, where the condition is " do I find another \= " ? > And you could do like this. > You find the first "\" > copy "c:\" in a string. > Look for another "\" > paste the sequel to the first string > I mean : "things\" to " c:\" > and you get a string with : "c:\things\" > then you look for another "\" > And you have : "alfa\" paste it to your string, and you get > "c:\things\alfa\" > Since you don't have anymore "\" the rest of the string will be a filename. > Use the strstr() function > strcp() ( if I remember the name ). > They are all in the string.h > Hope it helps. > > Fabien. > fv...@fr... > > ----- Original Message ----- > From: "Albert Vilella Bertran" <vil...@ya...> > To: "DevC MAILING List" <dev...@li...> > Sent: Thursday, June 07, 2001 10:50 AM > Subject: [Dev-C++] ANSI C: How to split path and filename > > > > Hello, > > how do I split my path and my filename? > > Example: > > > > c:\things\alfa\myfile.txt > > > > like: char *thepath ----> c:\things\alfa > > char *thefile ----> myfile.txt > > > > in ANSI C (or C), meaning the same way with DOS or UNIX > > > > There is anywhere to find this kind of things? (I couldn't find in th= e > help > > neither in Bob Stout's snippets) > > > > Thanks. > > > > _______________________________________________________________ > > Do You Yahoo!? > > Yahoo! Messenger: Comunicaci=F3n instant=E1nea gratis con tu gente - > > http://messenger.yahoo.es > > > > _______________________________________________ > > Dev-cpp-users mailing list > > Dev...@li... > > http://lists.sourceforge.net/lists/listinfo/dev-cpp-users > > > > > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > http://lists.sourceforge.net/lists/listinfo/dev-cpp-users > |
|
From: Fabien V. <fv...@fr...> - 2001-06-07 09:29:08
|
What you can do is a loop, where the condition is " do I find another \ " ? And you could do like this. You find the first "\" copy "c:\" in a string. Look for another "\" paste the sequel to the first string I mean : "things\" to " c:\" and you get a string with : "c:\things\" then you look for another "\" And you have : "alfa\" paste it to your string, and you get "c:\things\alfa\" Since you don't have anymore "\" the rest of the string will be a filename. Use the strstr() function strcp() ( if I remember the name ). They are all in the string.h Hope it helps. Fabien. fv...@fr... ----- Original Message ----- From: "Albert Vilella Bertran" <vil...@ya...> To: "DevC MAILING List" <dev...@li...> Sent: Thursday, June 07, 2001 10:50 AM Subject: [Dev-C++] ANSI C: How to split path and filename > Hello, > how do I split my path and my filename? > Example: > > c:\things\alfa\myfile.txt > > like: char *thepath ----> c:\things\alfa > char *thefile ----> myfile.txt > > in ANSI C (or C), meaning the same way with DOS or UNIX > > There is anywhere to find this kind of things? (I couldn't find in the help > neither in Bob Stout's snippets) > > Thanks. > > _______________________________________________________________ > Do You Yahoo!? > Yahoo! Messenger: Comunicación instantánea gratis con tu gente - > http://messenger.yahoo.es > > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > http://lists.sourceforge.net/lists/listinfo/dev-cpp-users > |
|
From: <vil...@ya...> - 2001-06-07 09:03:18
|
Hello,
how do I split my path and my filename?
Example:
c:\things\alfa\myfile.txt
like: char *thepath ----> c:\things\alfa
char *thefile ----> myfile.txt
in ANSI C (or C), meaning the same way with DOS or UNIX
There is anywhere to find this kind of things? (I couldn't find in the help
neither in Bob Stout's snippets)
Thanks.
_______________________________________________________________
Do You Yahoo!?
Yahoo! Messenger: Comunicación instantánea gratis con tu gente -
http://messenger.yahoo.es
|
|
From: Derek B. <der...@ho...> - 2001-06-05 12:51:37
|
I am trying to get dev-C++ to compile the quake 2 dll, and it goes = through the code fine, but when i get to the linking, the linker says = "cannot find -lmingw also, how do i make the compiler use a def file? i tried adding one to = the project, but it stil says no def file, one will be created, but may = not be what you want. ok...i was compiling the dll in the background, and now it says = something diffrent, it compiles the dll(woohoo!), but still cant find = the def file. |
|
From: <lsk...@ao...> - 2001-06-04 07:33:20
|
i am trying to find a good tutorial on opengl for the bloodshed dev c++ can anybody help and were i can find help files on the compiler |
|
From: <LXS...@cs...> - 2001-06-04 03:38:51
|
Well the truth is i dont feel like doing all that but go to filesearching.com, and the type the name of your file such as atliface.h and click search, then download it. |
|
From: Ramana K. <ra...@my...> - 2001-06-03 20:45:57
|
Hello everyone, I have been recently downloading the Platform SDK in hope of getting the following files but it is becoming too long to wait on my slow Internet connection. If anyone can find these files on their hard drive, I would be very pleased if you could send them to me as an attachment: crtdbg.h atliface.h atlconv.h Before you send them, however, would you mind looking through and searching for any #include statements. Any files that need to be included that do not come with Dev-C++ as part of the standard package, I would also like to have, so that my project will compile. Thank you very much, Ramana If you want to make money for surfing the Internet, join Spedia today: http://www.spedia.net/cgi-bin/tz.cgi?run=show_svc&fl=8&vid=2435981 <http://www.spedia.net/cgi-bin/> |
|
From: Purohit P. J. <pra...@si...> - 2001-05-30 18:08:15
|
Hi, If I want to connect to a My-SQL or SQL database you need to download = appropriate API's dont forget to also download deocumentation read the = documentation it s usually 30-40 pages and contains all function calls = in detail. and you will be able to write programes for any other = databases also FOXPRO ORACLE API's are available and can be used in same = way. Also you can write your owns functions which themselves access = database and perform required actions for that you need to know the = structure of the database files Bye Prahlad Purohit ----- Original Message -----=20 From: Simon (MCSD)=20 To: dev...@li...=20 Sent: Sunday, May 27, 2001 3:58 PM Subject: [Dev-C++] Connect to a database Guys, where can i find info about connecting a dev-c program to a = Access database for example? Simon. |
|
From: JEAN-BRUNO D. <jb...@ab...> - 2001-05-29 22:32:07
|
NO, for the USB, your have to upgrade to NT5 or work on Millenium, win95C= , or win98. I hear some application who can open the USB port on NT4 but cost $$$. I don't remember where... Jean-Bruno Desrosiers jb...@fb... www.fbjbd.com "Lorsque je n'apprendrai plus, c'est que je serai mort!" -----Message d'origine----- De : dev...@li... [mailto:dev...@li...]De la part de Andre` Ni= el Cameron Envoy=E9 : 29 mai, 2001 14:21 =C0 : dev...@li... Objet : Re: [Dev-C++] OS question Does anyone know if NT4 supports USB? |
|
From: Andre` N. C. <ca...@op...> - 2001-05-29 18:19:13
|
Does anyone know if NT4 supports USB? |
|
From: Ioannis V. <no...@ya...> - 2001-05-29 12:49:22
|
I am currently reading the Special Edition (3rd Edition improved). It is a perfect book (I have learned the things I told you from there). May I suggest you read it too? It is almost completely rewritten (it covers the whole ANSI C++). 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 Luigi Santillo Sent: Monday, May 28, 2001 7:21 PM To: dev...@li... Subject: [Dev-C++] Thanks Ioannis Your answer was very clear. I've learned C++ from Stroustrup (second edition), I guess it is time that I read something more up-to-date. At 11.59 28/05/01 +0200, you wrote: >To: <dev...@li...> >Subject: RE: [Dev-C++] BAKERY PROBLEM > >We are talking about C++. ... -- gisan _______________________________________________ Dev-cpp-users mailing list Dev...@li... http://lists.sourceforge.net/lists/listinfo/dev-cpp-users |
|
From: Thomas J. <th...@zi...> - 2001-05-29 09:10:26
|
Hi, I want to create a win console app and then use DOSX to make it a DPMI DOS app. This does not work!. Does anyone know how to di this with DOSX or an other free DOS extender? Thanks in advance, Thomas |
|
From: Luigi S. <gi...@li...> - 2001-05-29 04:43:21
|
Your answer was very clear. I've learned C++ from Stroustrup (second edition), I guess it is time that I read something more up-to-date. At 11.59 28/05/01 +0200, you wrote: >To: <dev...@li...> >Subject: RE: [Dev-C++] BAKERY PROBLEM > >We are talking about C++. ... -- gisan |
|
From: Vassili <v.v...@bt...> - 2001-05-29 02:27:40
|
The advice I should've given to the problem, which I totally neglected to
mention, is, if you find that your repeating statements, like all though's
'for else' statements, sit back and think on how you can get a loop to do
all the work for you, don't rush the job. I use to rush. After I sent my
tests in and had a bit of time to think, clearer and better answers would
come to mind. I'd be slapping my forehead and kicking myself, "If I only
waited and thought about it", my marks would have been much better as they
are now.
----- Original Message -----
From: "Vassili" <v.v...@bt...>
To: <dev...@li...>
Sent: Tuesday, May 29, 2001 3:03 AM
Subject: Re: [Dev-C++] BAKERY PROBLEM
> I've just finished a course on 'C' and I'm starting 'C++', the namespace
> thing from what I've read really comes into its own when you start
defining
> your own headers. No there is nothing wrong with using the 'C' headers,
> that's part of the power of C++. It was just me spouting what I've read,
> take no notice of that. In the end your work should reflect what you are
> comfortable with. Also, a big sorry about my earlier reply, I was drunk at
> the time and thought I was being witty. The compiler has laughed at my
work
> also, more than enough times. But its getting better, its hard to grasp
> these things when your starting off on this road and when they sink in,
the
> laughing gets less and less.
> ----- Original Message -----
> From: "Ioannis Vranos" <no...@ya...>
> To: <dev...@li...>
> Sent: Monday, May 28, 2001 10:59 AM
> Subject: RE: [Dev-C++] BAKERY PROBLEM
>
>
> > We are talking about C++.
> >
> > <cstdlib>, <cctype> e.t.c. have the C library functions defined in
> > namespace std. So, if you want to use printf using <cstdio> you should
> > write:
> >
> > #include <cstdio>
> >
> > int main()
> > {
> > using std::printf;
> > // or using namespace std;
> > printf("Hello World!\n");
> > }
> >
> > If you use <stdio.h> e.t.c. you do not need to use the using statement.
> > For example:
> >
> > #include <stdio.h>
> >
> > int main()
> > {
> > printf("Hello World!\n");
> > }
> >
> >
> > The C subset header files of C++ with the .h extension are defined with
> > something like this:
> >
> > --- stdio.h ---
> >
> > #include <cstdio>
> > using std::printf;
> > // ...
> >
> >
> > Now C++ standard library uses only headers without extensions with the
> > need of using statement.
> >
> > For example:
> >
> > #include <iostream> // Correct
> >
> > // ...
> >
> >
> > #include <iostream.h> // Incorrect in ANSI C++ (1998)!
> >
> >
> >
> > Hope this helps.
> >
> > 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 Luigi
> > Santillo
> > Sent: Saturday, May 26, 2001 9:15 PM
> > To: dev...@li...
> > Subject: Re: [Dev-C++] BAKERY PROBLEM
> >
> > Hi,
> > I took a look at Vassili's solution.
> > At the beginning of the (attached) file there are the lines:
> >
> > -----------
> > ...
> > #include <cstdlib>
> > #include <cctype>
> >
> > -----------
> >
> > I would have included the files: stdlib.h and ctype.h instead of cstdlib
> >
> > and cctype.
> >
> > Is there anything wrong with my approach?
> >
> > At 17.42 26/05/01 +0100, you wrote:
> > >----- Original Message -----
> > >From: <mailto:LO5...@ao...>LO5...@ao...
> > >To:
> > ><mailto:dev...@li...>dev...@li...
> > orge.net
> > >
> > >Sent: Friday, May 25, 2001 4:22 PM
> > >Subject: Fwd: [Dev-C++] BAKERY PROBLEM
> > >
> > >#include <iostream.h>
> > >#include <stdlib.h>
> > >const char a = 61;
> > >const int SENNTINEL= -999;
> > >const char SKIP =' ';
> > > ...
> >
> > --
> > gisan
> >
> >
> > _______________________________________________
> > Dev-cpp-users mailing list
> > Dev...@li...
> > http://lists.sourceforge.net/lists/listinfo/dev-cpp-users
> >
> >
> > _______________________________________________
> > Dev-cpp-users mailing list
> > Dev...@li...
> > http://lists.sourceforge.net/lists/listinfo/dev-cpp-users
> >
>
>
> _______________________________________________
> Dev-cpp-users mailing list
> Dev...@li...
> http://lists.sourceforge.net/lists/listinfo/dev-cpp-users
>
|
|
From: Vassili <v.v...@bt...> - 2001-05-29 02:03:59
|
I've just finished a course on 'C' and I'm starting 'C++', the namespace
thing from what I've read really comes into its own when you start defining
your own headers. No there is nothing wrong with using the 'C' headers,
that's part of the power of C++. It was just me spouting what I've read,
take no notice of that. In the end your work should reflect what you are
comfortable with. Also, a big sorry about my earlier reply, I was drunk at
the time and thought I was being witty. The compiler has laughed at my work
also, more than enough times. But its getting better, its hard to grasp
these things when your starting off on this road and when they sink in, the
laughing gets less and less.
----- Original Message -----
From: "Ioannis Vranos" <no...@ya...>
To: <dev...@li...>
Sent: Monday, May 28, 2001 10:59 AM
Subject: RE: [Dev-C++] BAKERY PROBLEM
> We are talking about C++.
>
> <cstdlib>, <cctype> e.t.c. have the C library functions defined in
> namespace std. So, if you want to use printf using <cstdio> you should
> write:
>
> #include <cstdio>
>
> int main()
> {
> using std::printf;
> // or using namespace std;
> printf("Hello World!\n");
> }
>
> If you use <stdio.h> e.t.c. you do not need to use the using statement.
> For example:
>
> #include <stdio.h>
>
> int main()
> {
> printf("Hello World!\n");
> }
>
>
> The C subset header files of C++ with the .h extension are defined with
> something like this:
>
> --- stdio.h ---
>
> #include <cstdio>
> using std::printf;
> // ...
>
>
> Now C++ standard library uses only headers without extensions with the
> need of using statement.
>
> For example:
>
> #include <iostream> // Correct
>
> // ...
>
>
> #include <iostream.h> // Incorrect in ANSI C++ (1998)!
>
>
>
> Hope this helps.
>
> 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 Luigi
> Santillo
> Sent: Saturday, May 26, 2001 9:15 PM
> To: dev...@li...
> Subject: Re: [Dev-C++] BAKERY PROBLEM
>
> Hi,
> I took a look at Vassili's solution.
> At the beginning of the (attached) file there are the lines:
>
> -----------
> ...
> #include <cstdlib>
> #include <cctype>
>
> -----------
>
> I would have included the files: stdlib.h and ctype.h instead of cstdlib
>
> and cctype.
>
> Is there anything wrong with my approach?
>
> At 17.42 26/05/01 +0100, you wrote:
> >----- Original Message -----
> >From: <mailto:LO5...@ao...>LO5...@ao...
> >To:
> ><mailto:dev...@li...>dev...@li...
> orge.net
> >
> >Sent: Friday, May 25, 2001 4:22 PM
> >Subject: Fwd: [Dev-C++] BAKERY PROBLEM
> >
> >#include <iostream.h>
> >#include <stdlib.h>
> >const char a = 61;
> >const int SENNTINEL= -999;
> >const char SKIP =' ';
> > ...
>
> --
> gisan
>
>
> _______________________________________________
> Dev-cpp-users mailing list
> Dev...@li...
> http://lists.sourceforge.net/lists/listinfo/dev-cpp-users
>
>
> _______________________________________________
> Dev-cpp-users mailing list
> Dev...@li...
> http://lists.sourceforge.net/lists/listinfo/dev-cpp-users
>
|
|
From: Bruno B. <bbe...@cl...> - 2001-05-28 20:26:55
|
Hello Jesse,
To open the CD-ROM tray use:
mciSendStringA("set CDAudio door open",NULL,0,0)
and to close it:
mciSendStringA("set CDAudio door closed",NULL,0,0)
You have to include the file "mmsystem.h" in your program and the file
"libwinmm.a" in the project option (Further object files or linker
options).
Bye.
Bruno
|
|
From: Ioannis V. <no...@ya...> - 2001-05-28 08:58:21
|
We are talking about C++.
<cstdlib>, <cctype> e.t.c. have the C library functions defined in
namespace std. So, if you want to use printf using <cstdio> you should
write:
#include <cstdio>
int main()
{
using std::printf;
// or using namespace std;
printf("Hello World!\n");
}
If you use <stdio.h> e.t.c. you do not need to use the using statement.
For example:
#include <stdio.h>
int main()
{
printf("Hello World!\n");
}
The C subset header files of C++ with the .h extension are defined with
something like this:
--- stdio.h ---
#include <cstdio>
using std::printf;
// ...
Now C++ standard library uses only headers without extensions with the
need of using statement.
For example:
#include <iostream> // Correct
// ...
#include <iostream.h> // Incorrect in ANSI C++ (1998)!
Hope this helps.
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 Luigi
Santillo
Sent: Saturday, May 26, 2001 9:15 PM
To: dev...@li...
Subject: Re: [Dev-C++] BAKERY PROBLEM
Hi,
I took a look at Vassili's solution.
At the beginning of the (attached) file there are the lines:
-----------
...
#include <cstdlib>
#include <cctype>
-----------
I would have included the files: stdlib.h and ctype.h instead of cstdlib
and cctype.
Is there anything wrong with my approach?
At 17.42 26/05/01 +0100, you wrote:
>----- Original Message -----
>From: <mailto:LO5...@ao...>LO5...@ao...
>To:
><mailto:dev...@li...>dev...@li...
orge.net
>
>Sent: Friday, May 25, 2001 4:22 PM
>Subject: Fwd: [Dev-C++] BAKERY PROBLEM
>
>#include <iostream.h>
>#include <stdlib.h>
>const char a = 61;
>const int SENNTINEL= -999;
>const char SKIP =' ';
> ...
--
gisan
_______________________________________________
Dev-cpp-users mailing list
Dev...@li...
http://lists.sourceforge.net/lists/listinfo/dev-cpp-users
|