dev-cpp-users Mailing List for Dev-C++ (Page 743)
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: Alan T. <ala...@3n...> - 2000-12-30 23:21:46
|
The code below gives some interesting results. First return from the
function start_HTML_file is 0 (no error), while the second time it =
returns 1
(could not open file). What does this mean?
Thanks, Alan
#include <iostream.h>
#include <stdlib.h>
#include <fstream.h>
#include <string.h>
// define HTML author
const char *Author =3D "Alan Thomas";
//
// function prototype
//
int start_HTML_file (ofstream&output_file, char *keywords =3D NULL,
char *title =3D NULL);
int main()
{
ofstream invalid; // used to test for error opening file
// Test invalid file checking
cout << "Error return was " << start_HTML_file (invalid, NULL,
"This is the title") << endl;
cout << "Error return was " << start_HTML_file (invalid, NULL,
"This is the title") << endl;
system("PAUSE");
return 0;
}
int start_HTML_file (ofstream&output_file, char *keywords =3D NULL, char
*title =3D NULL)
{
if (!output_file)
{
cout << "Error opening file." << endl;
return 1; // error indication
}
// Write header information
output_file << "<!doctype html public \"-//w3c//dtd html 4.0
transitional//en\">";
output_file << endl;
output_file << "<html>" << endl;
output_file << "<head>" << endl;
output_file << "<meta http-equiv=3D\"Content-Type\" =
content-\"text/html;
charset=3Diso-8859-1\"";
output_file << endl;
output_file << "<meta name=3D\"Author\" content=3D\"" << Author << =
"\">" <<
endl;
if (keywords !=3D NULL)
{
output_file << "<meta name=3D\"KeyWords\" content=3D\"";
output_file << keywords << ">\"" << endl;
}
// Write out title
if (title !=3D NULL)
{
output_file << "<title>";
output_file << title;
output_file << "</title>" << endl;
}
// End header
output_file << "</head>" << endl;
return 0;
}
|
|
From: jag <won...@th...> - 2000-12-30 23:00:15
|
hi, i'm studying a tutorial that makes use of a function named my_number. at the beggining of the code before the main loop it is declared as follows:- void my_number(void); the code for the routine is called from within the main loop by the command my_number(); my question is, if i wanted a return value for one of the values in the function my_number what command would i use? The tutorial explains the use of the term void in the code saying that it is used when there is no return values! Is it possible for anyone to explain how i might send or retrieve values to the function my_number? thanks, jag |
|
From: Ioannis V. <no...@ya...> - 2000-12-30 13:22:30
|
I agree with you, it would be nice. It also would be nice if it was written in C/C++ so we all C/C++ programmers could contribute our code to it. :) Ioannis -----Original Message----- From: dev...@li... [mailto:dev...@li...]On Behalf Of Luc Morin Sent: Saturday, December 30, 2000 2:41 PM To: dev...@li... Subject: Re: [Dev-C++] Using Dev-C++ with Borland's free compiler Hi, ok, so you edit the code with Dev-C++ and compile manually ? It would be nice to be able to customize the IDE to use any compiler :) Regards, |
|
From: Luc M. <lu...@ho...> - 2000-12-30 12:39:50
|
Hi, ok, so you edit the code with Dev-C++ and compile manually ? It would be nice to be able to customize the IDE to use any compiler :) Regards, ----- Original Message ----- From: Ioannis Vranos Sent: 30 d=E9cembre, 2000 02:15 To: dev...@li... Subject: RE: [Dev-C++] Using Dev-C++ with Borland's free compiler I am using Borland C++ 5.5 myself, in this way: I have placed borland's c= ompiler directory in my path environment and i run bcc32 in a command pro= mpt window. Ioannis -----Original Message----- From: dev...@li... [mailto:dev-cpp-users-adm= in...@li...]On Behalf Of Luc Morin Sent: Friday, December 29, 2000 3:22 AM To: Dev...@li... Subject: [Dev-C++] Using Dev-C++ with Borland's free compiler Hi, as subject states, I'd like to use Dev-C++ with Borland's compiler. Has anyone tried that ? If it's possible, could someone post an HOWTO ? Thanks Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.= <br clear=3Dall><hr>Get Your Private, Free E-mail from MSN Hotmail at <a = href=3D"http://www.hotmail.com">http://www.hotmail.com</a>.<br></p> |
|
From: Ioannis V. <no...@ya...> - 2000-12-30 12:15:16
|
Talking about C, has anybody in here realized what crap has been introduced in C, in C99 standard? The language has been totally ruined. Now i completely understand why K&R will not write a new book. Ioannis * Ioannis Vranos * Programming pages: http://members.nbci.com/noicys * Alternative URL: http://run.to/noicys |
|
From: Ioannis V. <no...@ya...> - 2000-12-30 12:14:48
|
I forgot to mention http://www.accu.org , the C/C++ Users Group which has reviews of books. I have discovered this site from Stroustrup's site. Why listen to marketing when you can see reviews from C/C++ professionals? Just visit the site and look at the book reviews. Ioannis * Ioannis Vranos * Programming pages: http://members.nbci.com/noicys * Alternative URL: http://run.to/noicys |
|
From: Ioannis V. <no...@ya...> - 2000-12-30 12:13:51
|
> -----Original Message-----
> From: dev...@li...
> [mailto:dev...@li...]On Behalf Of
> Ramana Kumar
> Sent: Saturday, December 30, 2000 10:56 AM
> To: dev...@li...
> Subject: RE: [Dev-C++] [OT] C++ string vs char *
>
>
> I'm not too good with strings, but based on your e-mail, I would go for
> creating a simple string class.
>
> C++ strings become a pain depending on the things you do because
> they aren't
> compatible with char[]s and vice versa (I'm writing a game that takes in a
> string containing a command in English and acts accordingly, i.e. "Open
> door" opens the door).
I did not understand what exactly you mean by saying they are not compatible
with each other, but you can work with both with C-style strings and C++
strings either by convering the C-style to C++ style or by using the C++
style string functions so as to use them as C-style (although i recommend
the first conversion from C-style to C++ style).
e.g. the string function c_str() enables you to use C++ strings with
functions accepting C-style sttrings (example taken by Bjarne Stroustrup's
"The C++ Programming Language" - Special Edition page 49):
[...]
string name="Niels Stroustrup";
void f()
{
printf("name: %s\n", name.c_str());
}
Ioannis
|
|
From: Ramana K. <ra...@my...> - 2000-12-30 08:53:24
|
I'm not too good with strings, but based on your e-mail, I would go for creating a simple string class. C++ strings become a pain depending on the things you do because they aren't compatible with char[]s and vice versa (I'm writing a game that takes in a string containing a command in English and acts accordingly, i.e. "Open door" opens the door). Using char*'s/char[]s gives you good control. I don't know what you mean by bloat/efficiency, but basically, from what I understand, I think the char*s will give more "efficiency?". The only problem with the char*s is, as you said you have to do your memory management but also some useful functions in string.h (I think) don't work on them. If some of what I'm saying is complete poppycock, I do apologise, I am going by experience, not by facts from the ISO C++ "set of rules". So as I said, I would take option b. Ramana -----Original Message----- From: dev...@li... [mailto:dev...@li...]On Behalf Of bis...@bt... Sent: Friday, December 29, 2000 9:05 PM To: dev...@li... Subject: [Dev-C++] [OT] C++ string vs char * Hi all I'm writing a small application using G++ - this one has a lot of string manipulation (It is a doxygen-like auto documentation system for a propreitory language). I seem to have three options: a) Use char *s and do my own memory management. b) Roll by own lightweight string class c) Use the C++ string class Can anyone tell me how good is the string class in terms of bloat/efficiency compared to char * ? Is (b) a viable option if what I want is basically char * with inbuild memory management ? Also, should I use (io|f|str)string ? How much of a bloat/efficiency concern is that compared to (f|s)printf/write/read and friends ? I don't plan to use the STL stuff. Thanks in advance. Biswa. _______________________________________________ Dev-cpp-users mailing list Dev...@li... http://lists.sourceforge.net/mailman/listinfo/dev-cpp-users |
|
From: Ramana K. <ra...@my...> - 2000-12-30 08:44:02
|
Hi, Firstly, I suggest you get version 4.01 (the latest) unless that is what you meant :). Yes, all the include files end in a .h (or sometimes a .hpp - but rarely) and they should all be found (under default installation) in C:\Dev-C++\Include\. If you have another .h file you want to use, either copy to this folder or, go to Options->Compiler Options and there, in the Include file path thing, put the path of your other file as well (separate the two by ';'s I think) Ramana -----Original Message----- From: dev...@li... [mailto:dev...@li...]On Behalf Of jag Sent: Friday, December 29, 2000 12:29 PM To: devc++ mail-list Subject: [Dev-C++] include files those with a .h? ok i've got my dev cpp ver 4.0 ready to boogy with! cos i'm a novice at the moment bear with me..simple questions first. all the include files for a program end with .h correct? so when you compile a program and it has errors saying it can not find the .h files you have them stored on the hard drive in the wrong place! So saying that do all the include files have to be in the dev cpp include directory? or is there a simpler easier way to go about it? _______________________________________________ Dev-cpp-users mailing list Dev...@li... http://lists.sourceforge.net/mailman/listinfo/dev-cpp-users |
|
From: SpiderMan <Spi...@pr...> - 2000-12-30 02:48:11
|
Hi, thanks for the response! I figured out that the code was right, =
just put in the wrong place. I found that I can load all the stock =
cursors by responding to WM_MOUSEMOVE. Thanks for the help : )
----- Original Message -----=20
From: Elias Pschernig=20
To: dev...@li...=20
Sent: Friday, December 29, 2000 10:52 AM
Subject: Re: [Dev-C++] Change the cursor...
Hi, I would like to know how to change the cursor in a simple =
dialog box based program. I know that I must use SetCursor( ) and =
LoadCursor( ) and ShowCursor, but I can't seem to get it working. I put =
this in the dialog box's initinstance:
SetCursor( LoadCursor(NULL, IDC_WAIT) );
ShowCursor(TRUE);
But it doesn't work, the wait curor doesn't show up. Can any one =
help me? Thank you in advance.=20
I'm not using C++, but in C i have a message WM_SETCURSOR sent to my =
dialog procedure, maybe this is what you need ? Just put your code as =
response to that message and the cursor changes...
-------------------------------------------------------------------------=
-----
Link is external to the Privacyx.com System
|
|
From: jag <won...@th...> - 2000-12-30 02:48:01
|
hi, you may be interested in several tutorials at this site many using dev c++ http://www.gamecoding.co.uk/ some are for beginners and some graphics programming using opengl with dev c++. look under projects and then c/c++ in the menu options on the page. all the best, jag |
|
From: jag <won...@th...> - 2000-12-30 02:47:52
|
thanks for everyones help at the list with my confusion over header files! all the best, jag |
|
From: Ioannis V. <no...@ya...> - 2000-12-29 22:38:02
|
#include <merlin.h> makes compiler to look at the default places for the header file (e.g. in Dev-C++ the include directory). #include "merlin.h" makes compiler to look at the same directory with your source code file to find merlin.h. #include "\temp\merlin.h" looks for merlin.h in directory \temp. (I think Dev-C++ uses the UNIX notation for directories /, so in this case it is #include "/temp/merlin.h"). Ioannis > -----Original Message----- > From: dev...@li... > [mailto:dev...@li...]On Behalf Of jag > Sent: Friday, December 29, 2000 3:29 AM > To: devc++ mail-list > Subject: [Dev-C++] include files those with a .h? > > > ok i've got my dev cpp ver 4.0 ready to boogy with! > > cos i'm a novice at the moment bear with me..simple questions first. > > all the include files for a program end with .h correct? > > so when you compile a program and it has errors saying it can not find the > .h files you have them stored on the hard drive in the wrong place! > > So saying that do all the include files have to be in the dev cpp include > directory? or is there a simpler easier way to go about it? > > > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > http://lists.sourceforge.net/mailman/listinfo/dev-cpp-users > __________________________________________________ Do You Yahoo!? Talk to your friends online with Yahoo! Messenger. http://im.yahoo.com |
|
From: Ioannis V. <no...@ya...> - 2000-12-29 22:38:00
|
I am using Borland C++ 5.5 myself, in this way: I have placed borland's compiler directory in my path environment and i run bcc32 in a command prompt window. Ioannis -----Original Message----- From: dev...@li... [mailto:dev...@li...]On Behalf Of Luc Morin Sent: Friday, December 29, 2000 3:22 AM To: Dev...@li... Subject: [Dev-C++] Using Dev-C++ with Borland's free compiler Hi, as subject states, I'd like to use Dev-C++ with Borland's compiler. Has anyone tried that ? If it's possible, could someone post an HOWTO ? Thanks ---------------------------------------------------------------------------- -- Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. |
|
From: Ioannis V. <no...@ya...> - 2000-12-29 22:37:59
|
At first i suggest you begin directly with C++. For C++ a good book to start with is Sams Publishing "Teach yourself C++ in 21 Days". If you insist on learning C i suggest Sams Publishing "Teach yourself C in 21 Days". I have read both and both are excellent introductory books. Ioannis -----Original Message----- From: dev...@li... [mailto:dev...@li...]On Behalf Of Frazell Thomas Sent: Thursday, December 28, 2000 7:43 PM To: Dev...@li... Subject: [Dev-C++] C/C++ Books I'm new to C/C++, and I have learned a little from web tutorials, but lost the site the great one i was using. I was wondering if anyone can refer me to a great book in which i can get the best understanding of c, and also one for c++. Thanks Frazell Thomas |
|
From: Ioannis V. <no...@ya...> - 2000-12-29 22:37:57
|
If you are talking about C/C++ comparison, string C++ is better to use than char *, since it is a higher level mechanism. Also the myth that C code runs faster and takes less space than C++ is a myth, and usually C++ code is faster than C! Take a look at the following link and look at the end of it with some benchmarks between C & C++ code. http://www.research.att.com/~bs/esc99.html Ioannis > -----Original Message----- > From: dev...@li... > [mailto:dev...@li...]On Behalf Of > bis...@bt... > Sent: Friday, December 29, 2000 12:05 PM > To: dev...@li... > Subject: [Dev-C++] [OT] C++ string vs char * > > > Hi all > > I'm writing a small application using G++ - this one has a lot of string > manipulation (It is a doxygen-like auto documentation system for a > propreitory language). I seem to have three options: > > a) Use char *s and do my own memory management. > b) Roll by own lightweight string class > c) Use the C++ string class > > Can anyone tell me how good is the string class in terms of > bloat/efficiency > compared to char * ? > Is (b) a viable option if what I want is basically char * with inbuild > memory management ? > > Also, should I use (io|f|str)string ? How much of a > bloat/efficiency concern > is that compared to (f|s)printf/write/read and friends ? > > I don't plan to use the STL stuff. > > Thanks in advance. > Biswa. > > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > http://lists.sourceforge.net/mailman/listinfo/dev-cpp-users > __________________________________________________ Do You Yahoo!? Talk to your friends online with Yahoo! Messenger. http://im.yahoo.com |
|
From: jag <won...@th...> - 2000-12-29 22:37:54
|
pdf book by bruce eckel :-vol1 and 2 (you need acrobat reader to use the documents) http://www.planetpdf.com/binthing~WebPageID,315.htm ----- Original Message ----- From: "Frazell Thomas" <fr...@fl...> To: <dev...@li...> Sent: Friday, December 29, 2000 3:46 AM Subject: Re: [Dev-C++] C/C++ Books > Thankx > ----- Original Message ----- > From: "Dario Peralta" <do...@ho...> > To: <dev...@li...> > Sent: Thursday, December 28, 2000 10:33 PM > Subject: Re: [Dev-C++] C/C++ Books > > > > > > >I'm new to C/C++, and I have learned a little from web tutorials, but > >lost > > >the site the great one i was using. I was wondering if anyone can >refer > me > > >to a great book in which i can get the best understanding of >c, and also > > >one for c++. > > > > > >Thanks > > >Frazell Thomas > > > > There are loads of online free tutorials, just do a search on google. > > But if you want a book for C try 'The C Programming Language Second > Edition' > > by Brian Kernighan and Dennis Ritchie. > > > > also try www.cprogramming.com, theres a pretty good C++ tutorial there... > > > > HTH. > > > > adios, > > biterman > > _________________________________________________________________________ > > Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. > > > > > > _______________________________________________ > > Dev-cpp-users mailing list > > Dev...@li... > > http://lists.sourceforge.net/mailman/listinfo/dev-cpp-users > > > > > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > http://lists.sourceforge.net/mailman/listinfo/dev-cpp-users > |
|
From: Fabien V. <fv...@fr...> - 2000-12-29 22:37:03
|
Hi. You can include whatever file you want. The files don't have to end with the .h extension. However, the file you include must contain datas that are understandable by the Compiler. The .h extension is here just to say that it is a HEADER file. To include files you 2 ways: #include <stdio.h> Using < > you tell the compiler that the file is stored in the include folder of Dev C++. If your files is somewhere else you use: #include "C:/SOMEWHERE/myfile.txt" Between the " " you put the complete path where your file is. That's all. VIVES Fabien. fv...@fr... http://fvives.free.fr ( Ti92 Fargo programming...). > ok i've got my dev cpp ver 4.0 ready to boogy with! > > cos i'm a novice at the moment bear with me..simple questions first. > > all the include files for a program end with .h correct? > > so when you compile a program and it has errors saying it can not find the > .h files you have them stored on the hard drive in the wrong place! > > So saying that do all the include files have to be in the dev cpp include > directory? or is there a simpler easier way to go about it? > > > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > http://lists.sourceforge.net/mailman/listinfo/dev-cpp-users > |
|
From: Elias P. <Eli...@ao...> - 2000-12-29 22:36:57
|
Hi, I would like to know how to change the cursor in a simple =
dialog box based program. I know that I must use SetCursor( ) and =
LoadCursor( ) and ShowCursor, but I can't seem to get it working. I put =
this in the dialog box's initinstance:
SetCursor( LoadCursor(NULL, IDC_WAIT) );
ShowCursor(TRUE);
But it doesn't work, the wait curor doesn't show up. Can any one =
help me? Thank you in advance.=20
I'm not using C++, but in C i have a message WM_SETCURSOR sent to my =
dialog procedure, maybe this is what you need ? Just put your code as =
response to that message and the cursor changes...
|
|
From: Elias P. <Eli...@ao...> - 2000-12-29 22:36:57
|
> ok i've got my dev cpp ver 4.0 ready to boogy with! > > cos i'm a novice at the moment bear with me..simple questions first. > > all the include files for a program end with .h correct? yes, although in C++ they can also end in .hpp > so when you compile a program and it has errors saying it can not find the > .h files you have them stored on the hard drive in the wrong place! > > So saying that do all the include files have to be in the dev cpp include > directory? or is there a simpler easier way to go about it? You can add additional pathes for include files in Dev-C++ for a project when you type them in the "extra include directories" box. Or you can add them to Options/Compiler Options/Directories. And of course, your own include files can always be in the same directory as the source code files. But you have to use #include "..." instead of <...> then. |
|
From: Frazell T. <fr...@fl...> - 2000-12-29 21:21:11
|
Yea i looked at one of those books actually learned my basics in in a =
few days ago so i think those are excellent books and are greatly layed =
out thenks for the addition of the reference manual and the added help =
peace
---- Original Message -----=20
From: Chris Bunney=20
To: dev...@li...=20
Sent: Friday, December 29, 2000 4:04 PM
Subject: Re: [Dev-C++] C/C++ Books
Hi!
I would recommend Herb Shildt's 'Teach Yourself C' and 'Teach Yourself =
C++', and also 'The C++ Primer' by S. Lippman & J. Lajoie when you are a =
little more comfortable with the basics.
As a reference book, I have found Herb Shildt's 'The Complete C++ =
Reference' an invaluable aid.
I hope you do well - C/C++ is an excellent language and a joy to =
program in.
Good Luck!!
Chris B.
----- Original Message -----=20
From: Frazell Thomas=20
To: Dev...@li...=20
Sent: 28 December 2000 17:43
Subject: [Dev-C++] C/C++ Books
I'm new to C/C++, and I have learned a little from web tutorials, =
but lost the site the great one i was using. I was wondering if anyone =
can refer me to a great book in which i can get the best understanding =
of c, and also one for c++.=20
=20
Thanks
Frazell Thomas
|
|
From: Chris B. <ch...@cb...> - 2000-12-29 21:14:52
|
Hi! I would recommend Herb Shildt's 'Teach Yourself C' and 'Teach Yourself = C++', and also 'The C++ Primer' by S. Lippman & J. Lajoie when you are a = little more comfortable with the basics. As a reference book, I have found Herb Shildt's 'The Complete C++ = Reference' an invaluable aid. I hope you do well - C/C++ is an excellent language and a joy to program = in. Good Luck!! Chris B. ----- Original Message -----=20 From: Frazell Thomas=20 To: Dev...@li...=20 Sent: 28 December 2000 17:43 Subject: [Dev-C++] C/C++ Books I'm new to C/C++, and I have learned a little from web tutorials, but = lost the site the great one i was using. I was wondering if anyone can = refer me to a great book in which i can get the best understanding of c, = and also one for c++.=20 =20 Thanks Frazell Thomas |
|
From: Chris B. <ch...@cb...> - 2000-12-29 21:14:50
|
Hi Jag,
There two ways to include header (*.h) files, and it sounds like you are
using the wrong one!
1. #include <filename>
2. #include "filename"
The first version tells the compiler to look in a predetermined list of
directories for the file. This is usually used to include the standard
include files like iostream.h etc, as they are not stored in the same
directory as your source.
The second version tells the compiler to look for the file in the directory
you specify between the quotes. If you just type in the file name it will
look in the current working directory.
So, if you write your own header file, #include it with the quotes ("")
version. If it is not in the same directory as the working directory, make
sure to qualify it with the full path name.
Remember, you dont have to use the 2nd version for standard include files,
use the first #include <> version.
I hope this helps!
Chris.
----- Original Message -----
From: "jag" <won...@th...>
To: "devc++ mail-list" <dev...@li...>
Sent: 29 December 2000 01:29
Subject: [Dev-C++] include files those with a .h?
> ok i've got my dev cpp ver 4.0 ready to boogy with!
>
> cos i'm a novice at the moment bear with me..simple questions first.
>
> all the include files for a program end with .h correct?
>
> so when you compile a program and it has errors saying it can not find the
> .h files you have them stored on the hard drive in the wrong place!
>
> So saying that do all the include files have to be in the dev cpp include
> directory? or is there a simpler easier way to go about it?
>
>
> _______________________________________________
> Dev-cpp-users mailing list
> Dev...@li...
> http://lists.sourceforge.net/mailman/listinfo/dev-cpp-users
>
|
|
From: <bis...@bt...> - 2000-12-29 10:05:16
|
Hi all I'm writing a small application using G++ - this one has a lot of string manipulation (It is a doxygen-like auto documentation system for a propreitory language). I seem to have three options: a) Use char *s and do my own memory management. b) Roll by own lightweight string class c) Use the C++ string class Can anyone tell me how good is the string class in terms of bloat/efficiency compared to char * ? Is (b) a viable option if what I want is basically char * with inbuild memory management ? Also, should I use (io|f|str)string ? How much of a bloat/efficiency concern is that compared to (f|s)printf/write/read and friends ? I don't plan to use the STL stuff. Thanks in advance. Biswa. |
|
From: Frazell T. <fr...@fl...> - 2000-12-29 03:43:06
|
Thankx ----- Original Message ----- From: "Dario Peralta" <do...@ho...> To: <dev...@li...> Sent: Thursday, December 28, 2000 10:33 PM Subject: Re: [Dev-C++] C/C++ Books > > >I'm new to C/C++, and I have learned a little from web tutorials, but >lost > >the site the great one i was using. I was wondering if anyone can >refer me > >to a great book in which i can get the best understanding of >c, and also > >one for c++. > > > >Thanks > >Frazell Thomas > > There are loads of online free tutorials, just do a search on google. > But if you want a book for C try 'The C Programming Language Second Edition' > by Brian Kernighan and Dennis Ritchie. > > also try www.cprogramming.com, theres a pretty good C++ tutorial there... > > HTH. > > adios, > biterman > _________________________________________________________________________ > Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. > > > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > http://lists.sourceforge.net/mailman/listinfo/dev-cpp-users > |