dev-cpp-users Mailing List for Dev-C++
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
|
| S | M | T | W | T | F | S |
|---|---|---|---|---|---|---|
|
|
|
|
|
|
|
1
(12) |
|
2
(2) |
3
(4) |
4
(12) |
5
(9) |
6
(10) |
7
(11) |
8
(9) |
|
9
(10) |
10
(27) |
11
(20) |
12
(5) |
13
(13) |
14
(14) |
15
(18) |
|
16
(5) |
17
(12) |
18
(13) |
19
(5) |
20
(14) |
21
(18) |
22
(6) |
|
23
(7) |
24
(12) |
25
(29) |
26
(17) |
27
(4) |
28
(23) |
29
(20) |
|
30
(8) |
|
|
|
|
|
|
|
From: Luigi S. <gi...@li...> - 2002-06-30 22:45:58
|
At 15.13 06/29/02 -0400, CSt...@ao... wrote: >Hello CPP user community, > >Can anyone give me the basics on linking in the debugger and point me to >an online users manual for it? I'm trying to learn from Jesse Liberty's >book, Teach yourself C++ in 24 hours and he provides a link to get the >Bloodshed compiler. > >Charles in LA Hi ! In Dev-C++ 4.9.3.0, to include debug information into the binary file of a program, make sure that "Tools->Compiler Options->Linker->Generate Debugging Information" is checked. As for manuals I have found something on gdb at the URL: http://www.delorie.com/gnu/docs/ once there look for "gdb 4.18" In the meanwhile, just to get you started, I have included some very simple ideas in an html file which I've zipped and attached to this mail. -- gisan |
|
From: Ioannis V. <no...@ho...> - 2002-06-30 20:56:11
|
> -----Original Message-----
> From: dev...@li...
> [mailto:dev...@li...] On Behalf
> Of Ioannis Vranos
> Sent: Sunday, June 30, 2002 11:34 PM
> To: 'Dev-C++ Mailing List'
> Subject: RE: [Dev-C++] Array of function pointers
>
>
> > -----Original Message-----
> > From: dev...@li...
> > [mailto:dev...@li...] On Behalf
> > Of Abhijit Shylanath
> > Sent: Sunday, June 30, 2002 9:27 PM
> > To: Dev-C++ Mailing List
> > Subject: [Dev-C++] Array of function pointers
> >
> >
> > Sorry for my repeated OT posts, but I don't subscribe to many
> > lists because
> > they have too much of traffic, and poor little me has a
> > dial-up account. Of
> > all the lists I do subscribe to, Dev-C++ seems to have the most
> > knowledgeable (and tolerant) people.
> >
> > Having finished buttering you up, here's my question:
>
>
>
> Always ask. That is why this list is for. Coders talking with
> coders. :)
>
>
> > How do I create an array of function pointers?
> >
> > I declare a function pointer as:
> >
> > void (*fnPtr)(int arg1) = fn;
>
>
> Or better: void (*fnPtr)(int);
>
>
>
>
>
> > I tried making an array like this:
> >
> > void *(*fnPtrs)(int)
>
>
> This is a pointer to a function returning void * and getting an int.
>
>
>
> >
> > Didn't work.
> >
> > void (*fnPtrs)(int)[] = { fn, foo, NULL };
>
>
> void (*fnPtrs[])(int) = { fn, foo, NULL };
>
>
> Or if you cannot think that big, you can make things simpler:
>
>
> typedef void (*p2f)(int);
>
> p2f fnPtrs[]= { fn, foo, NULL };
>
>
>
> > Didn't work either.
> >
> > Ultimately, I got frustrated and made an array of dwords:
> >
> > dword fnPtrs[] = { (dword)fn, (dword)foo, (dword)NULL };
> >
> > This worked, without any warnings. Is this portable and safe?
>
>
> It depends on what dword is, but it doesn't sound safe.
>
>
>
> > Is there any
> > other ANSI way of making an array of function pointers?
> >
> > Thanks for any help.
If you do it in C++, instead of a built in arrray use a vector of
pointers.
An example:
#include <vector>
// ...
using std::vector;
// ...
vector<void (*)(int)>fnPtrs(2, fn);
fnPtrs[1]=foo;
Ioannis
* Ioannis Vranos
* Programming pages: http://www.noicys.cjb.net
* Alternative URL: http://run.to/noicys
|
|
From: Ioannis V. <no...@ho...> - 2002-06-30 20:34:34
|
> -----Original Message-----
> From: dev...@li...
> [mailto:dev...@li...] On Behalf
> Of Abhijit Shylanath
> Sent: Sunday, June 30, 2002 9:27 PM
> To: Dev-C++ Mailing List
> Subject: [Dev-C++] Array of function pointers
>
>
> Sorry for my repeated OT posts, but I don't subscribe to many
> lists because
> they have too much of traffic, and poor little me has a
> dial-up account. Of
> all the lists I do subscribe to, Dev-C++ seems to have the most
> knowledgeable (and tolerant) people.
>
> Having finished buttering you up, here's my question:
Always ask. That is why this list is for. Coders talking with coders. :)
> How do I create an array of function pointers?
>
> I declare a function pointer as:
>
> void (*fnPtr)(int arg1) = fn;
Or better: void (*fnPtr)(int);
> I tried making an array like this:
>
> void *(*fnPtrs)(int)
This is a pointer to a function returning void * and getting an int.
>
> Didn't work.
>
> void (*fnPtrs)(int)[] = { fn, foo, NULL };
void (*fnPtrs[])(int) = { fn, foo, NULL };
Or if you cannot think that big, you can make things simpler:
typedef void (*p2f)(int);
p2f fnPtrs[]= { fn, foo, NULL };
> Didn't work either.
>
> Ultimately, I got frustrated and made an array of dwords:
>
> dword fnPtrs[] = { (dword)fn, (dword)foo, (dword)NULL };
>
> This worked, without any warnings. Is this portable and safe?
It depends on what dword is, but it doesn't sound safe.
> Is there any
> other ANSI way of making an array of function pointers?
>
> Thanks for any help.
Ioannis
* Ioannis Vranos
* Programming pages: http://www.noicys.cjb.net
* Alternative URL: http://run.to/noicys
|
|
From: Hongli L. <h....@ch...> - 2002-06-30 19:01:41
|
On Sun, 2002-06-30 at 20:27, Abhijit Shylanath wrote:
> Sorry for my repeated OT posts, but I don't subscribe to many lists because
> they have too much of traffic, and poor little me has a dial-up account. Of
> all the lists I do subscribe to, Dev-C++ seems to have the most
> knowledgeable (and tolerant) people.
>
> Having finished buttering you up, here's my question:
> How do I create an array of function pointers?
>
typedef void (*FooFunction) (int data);
void foo(int data);
void bar(int data);
FooFunction function_array[] = { foo, bar };
|
|
From: Abhijit S. <mu...@gm...> - 2002-06-30 18:28:12
|
Sorry for my repeated OT posts, but I don't subscribe to many lists because
they have too much of traffic, and poor little me has a dial-up account. Of
all the lists I do subscribe to, Dev-C++ seems to have the most
knowledgeable (and tolerant) people.
Having finished buttering you up, here's my question:
How do I create an array of function pointers?
I declare a function pointer as:
void (*fnPtr)(int arg1) = fn;
I tried making an array like this:
void *(*fnPtrs)(int)
Didn't work.
void (*fnPtrs)(int)[] = { fn, foo, NULL };
Didn't work either.
Ultimately, I got frustrated and made an array of dwords:
dword fnPtrs[] = { (dword)fn, (dword)foo, (dword)NULL };
This worked, without any warnings. Is this portable and safe? Is there any
other ANSI way of making an array of function pointers?
Thanks for any help.
--------------------------
http://mudeth.tripod.com
|
|
From: jcmatsusue <jcm...@bo...> - 2002-06-30 12:03:26
|
After typing na program, save and compile appears two screens: One shows =93compilation completed=94 whitout error, another shows =93compiler and linker output=94 and when open the save file .exe it doesn=92t exist. __________________________________________________________________________ AcessoBOL, s=F3 R$ 9,90! O menor pre=E7o do mercado! Assine j=E1! http://www.bol.com.br/acessobol |
|
From: Abhijit S. <mu...@gm...> - 2002-06-30 06:17:07
|
> I think you can search in Google itself. In the search box, type: > > http://lists.sourceforge.net/lists/archive/dev-cpp-users: foo Sorry, that's: foo site:http://lists.sourceforge.net/bar -------------------------- http://mudeth.tripod.com TO UNSUBSCRIBE DEV-C++ CLICK THE LINK BELOW http://www.noicys.cjb.net/devcpp/ub.htm |
|
From: Abhijit S. <mu...@gm...> - 2002-06-30 05:40:16
|
I think you can search in Google itself. In the search box, type:
http://lists.sourceforge.net/lists/archive/dev-cpp-users: foo
where foo is what you want to find and the part before the colon is the site
you want to search in. I'm not very sure about the syntax. Look up 'search
help' or 'advanced search'. And the site, too.
--------------------------
http://mudeth.tripod.com
TO UNSUBSCRIBE DEV-C++ CLICK THE LINK BELOW
http://www.noicys.cjb.net/devcpp/ub.htm
----- Original Message -----
From: "Carlos García del Monte" <cg...@wo...>
To: "dev-cpp-users-list" <dev...@li...>
Sent: Saturday, June 29, 2002 11:15 PM
Subject: [Dev-C++] mailing list search
> I think it would be very good think have the possibility of searching
> the list archive, now the site has no search it, and the search engine
> such as altavista, google and others don't find it, they give a lot of
> other lists which have -dev] in the begin of the subject, and by url or
> host it neither appear, with luck I found a couple of pages, in the
> fifth page of search results. Now searching the archive is really
> annoying, I must search through a million of pages for find messages, if
> I find them. I don't remember where are the messages which appeared at
> least two months ago, (perhaps five), and what if I want search a
> message from more than one year?.
|
|
From: Ioannis V. <no...@ho...> - 2002-06-29 23:51:47
|
I apologise too, because apparently i rushed to wrong conclusion that you are a spammer. Oh well. Keep coding, Ioannis * Ioannis Vranos * Programming pages: http://www.noicys.cjb.net <http://www.noicys.cjb.net/> * Alternative URL: http://run.to/noicys -----Original Message----- From: dev...@li... [mailto:dev...@li...] On Behalf Of Napoleon Ahiable Sent: Saturday, June 29, 2002 9:59 PM To: dev...@li... Subject: [Dev-C++] Re: Reliable Software. Hello, I'll like to applogise if the mail I sent with the above subject upset anyone. That was not the intent. Neither was it to spam. Sorry once again. napo. --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.372 / Virus Database: 207 - Release Date: 20/06/02 |
|
From: Ioannis V. <no...@ho...> - 2002-06-29 23:47:40
|
Where is the code? Ioannis * Ioannis Vranos * Programming pages: http://www.noicys.cjb.net * Alternative URL: http://run.to/noicys > -----Original Message----- > From: dev...@li... > [mailto:dev...@li...] On Behalf > Of Bryan Arant > Sent: Sunday, June 30, 2002 2:42 AM > To: dev...@li... > Subject: [Dev-C++] STL with Dev-C++ > > > Does it work for everyone? I get strange ass errors WITH the > STL files I > include. > > -Bryan Arant > AfroFire's Tomb > http://aft.barant.net/ > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > No, I will not fix your computer. > http://thinkgeek.com/sf > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > |
|
From: Bryan A. <br...@ba...> - 2002-06-29 23:42:27
|
Does it work for everyone? I get strange ass errors WITH the STL files I include. -Bryan Arant AfroFire's Tomb http://aft.barant.net/ |
|
From: <CSt...@ao...> - 2002-06-29 19:13:39
|
Hello CPP user community, Can anyone give me the basics on linking in the debugger and point me to an online users manual for it? I'm trying to learn from Jesse Liberty's book, Teach yourself C++ in 24 hours and he provides a link to get the Bloodshed compiler. Charles in LA |
|
From: Napoleon A. <nah...@so...> - 2002-06-29 19:01:03
|
Hello, I'll like to applogise if the mail I sent with the above subject upset = anyone. That was not the intent. Neither was it to spam. Sorry once = again. napo.=20 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.372 / Virus Database: 207 - Release Date: 20/06/02 |
|
From: Abhijit S. <mu...@gm...> - 2002-06-29 18:57:28
|
I fixed the error, thanks. Sorry for the useless post. I should look around
a bit longer before I start crying for help. You were right, I'd not flagged
the function as non-modifying...
const char *GetNum() const { foo(); }
--------------------------
http://mudeth.tripod.com
----- Original Message -----
From: "Daniel Glenfield" <sp...@ho...>
To: <mu...@gm...>
Sent: Saturday, June 29, 2002 11:21 PM
Subject: Re: [Dev-C++] Const something problem...
> Can you send the code?
>
> It may be to do with the const keyword, in the wrong place perhaps?
|
|
From: Abhijit S. <mu...@gm...> - 2002-06-29 18:22:45
|
Heh... just kiddin'... :) Suggestion: Everyone on the list add http://www.noicys.cjb.net/devcpp/ub.htm to their signature. > I suspect that they go to that link but they can't complete the > unsubscription process. People with small stack i guess. :) Check out this page for a more detailed explanation on the above phenomenon... really funny :) http://bofh.ntk.net/StackMode.html -------------------------- http://mudeth.tripod.com TO UNSUBSCRIBE DEV-C++ CLICK THE LINK BELOW http://www.noicys.cjb.net/devcpp/ub.htm |
|
From: Ioannis V. <no...@ho...> - 2002-06-29 18:20:11
|
-----Original Message----- From: dev...@li... [mailto:dev...@li...] On Behalf Of Napoleon Ahiable Sent: Saturday, June 29, 2002 9:12 PM To: dev...@li... Subject: [Dev-C++] Reliable Software. Hello Folks, I have found a web site I want to share with you. It is www.relisoft.com . In my quest to learn C++ programming I came accross several myths. One was that I had to learn C before C++. I didn't make much sense to me why so I kept searching till I came accross the book Accelerated C++. With that I can say that I'm making a head way in C++ without C. The second myths is about the Win32 API, It looked at first that without C it would be immposible to do Win32 programming without MFC but after finding www.relisoft.com I can say that is not true. Infact the site is against using MFC. They have what I think is the best Win32 tutorial online for C++ users. I find it revolutionary. I mean how about this for a Hello World program: #include <iostream> class World { public: World () { std::cout << "Hello!\n"; } ~World () { std::cout << "Good bye!\n"; } }; World TheWorld; Why a global variable? void main() {} int main() {} Maybe I'm going on too much and sorry if I am. All I'm saying is if C++ is your thing then please visit this site. It can only help and challenge you. Thanks. Thanks for the spamming. Ioannis * Ioannis Vranos * Programming pages: http://www.noicys.cjb.net <http://www.noicys.cjb.net/> * Alternative URL: http://run.to/noicys |
|
From: Napoleon A. <nah...@so...> - 2002-06-29 18:14:08
|
Hello Fellas, Thanks for your help but I think what it's alright now. I unistalled dev-C++ and did a fresh download and installed and it seems to be fine. Thanks for your help. Napoleon. ----- Original Message ----- From: "Ioannis Vranos" <no...@ho...> To: <dev...@li...> Sent: Saturday, June 29, 2002 5:18 PM Subject: RE: [Dev-C++] Error using std::cout > > -----Original Message----- > > From: dev...@li... > > [mailto:dev...@li...] On Behalf > > Of Napoleon Ahiable > > Sent: Saturday, June 29, 2002 7:12 PM > > To: dev...@li... > > Subject: Re: [Dev-C++] Error using std::cout > > > > > > Hello and thanks, > > > > I don,t know what I'm doing wrong but all I've done is create > > a console > > project with the source code. and when I compile I get the > > following error > > still: > > > > /C++Lab/Temp/test.cpp C:\C++Lab\Temp\C > > In constructor `World::World(int)': > > 10 C:\C++Lab\Temp\test.cpp > > `cout' undeclared in namespace `std' > > > > I'm still scratching my head . > > > It may be a Dev-C++ bug. Try to create a blank file without any project, > save it as .cpp and compile it. > > > > Ioannis > > * Ioannis Vranos > * Programming pages: http://www.noicys.cjb.net > * Alternative URL: http://run.to/noicys --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.372 / Virus Database: 207 - Release Date: 20/06/02 |
|
From: Napoleon A. <nah...@so...> - 2002-06-29 18:14:05
|
Hello Folks, I have found a web site I want to share with you. It is www.relisoft.com = . In my quest to learn C++ programming I came accross several myths. One = was that I had to learn C before C++. I didn't make much sense to me why = so I kept searching till I came accross the book Accelerated C++. With = that I can say that I'm making a head way in C++ without C. The second myths is about the Win32 API, It looked at first that without = C it would be immposible to do Win32 programming without MFC but after = finding www.relisoft.com I can say that is not true. Infact the site is = against using MFC. They have what I think is the best Win32 tutorial = online for C++ users. I find it revolutionary. I mean how about this for = a Hello World program: #include <iostream> class World { public: World () { std::cout << "Hello!\n"; } ~World () { std::cout << "Good bye!\n"; } }; World TheWorld; void main() {} Maybe I'm going on too much and sorry if I am. All I'm saying is if C++ = is your thing then please visit this site. It can only help and = challenge you. Thanks. Napoleon. --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.372 / Virus Database: 207 - Release Date: 20/06/02 |
|
From: Carlos d. M. <cg...@wo...> - 2002-06-29 17:48:31
|
I think it would be very good think have the possibility of searching the list archive, now the site has no search it, and the search engine such as altavista, google and others don't find it, they give a lot of other lists which have -dev] in the begin of the subject, and by url or host it neither appear, with luck I found a couple of pages, in the fifth page of search results. Now searching the archive is really annoying, I must search through a million of pages for find messages, if I find them. I don't remember where are the messages which appeared at least two months ago, (perhaps five), and what if I want search a message from more than one year?. |
|
From: Rob A. <ro...@us...> - 2002-06-29 16:35:03
|
I just created a new console application project and pasted your code in to replace the default code. Still no problems. I received the clock skew error on the first compile, but the second compile proceeded without incident. Rob http://uselesspython.com Ioannis Vranos wrote: >>-----Original Message----- >>I don,t know what I'm doing wrong but all I've done is create >>a console >>project with the source code. and when I compile I get the >>following error >>still: >> >>/C++Lab/Temp/test.cpp C:\C++Lab\Temp\C >>In constructor `World::World(int)': >>10 C:\C++Lab\Temp\test.cpp >>`cout' undeclared in namespace `std' >> >>I'm still scratching my head . >> -- "Giving the Linus Torvalds Award to the Free Software Foundation is a bit like giving the Han Solo Award to the Rebel Alliance." --Richard Stallman at the 1999 LinuxWorld show |
|
From: Ioannis V. <no...@ho...> - 2002-06-29 16:18:47
|
> -----Original Message----- > From: dev...@li... > [mailto:dev...@li...] On Behalf > Of Napoleon Ahiable > Sent: Saturday, June 29, 2002 7:12 PM > To: dev...@li... > Subject: Re: [Dev-C++] Error using std::cout > > > Hello and thanks, > > I don,t know what I'm doing wrong but all I've done is create > a console > project with the source code. and when I compile I get the > following error > still: > > /C++Lab/Temp/test.cpp C:\C++Lab\Temp\C > In constructor `World::World(int)': > 10 C:\C++Lab\Temp\test.cpp > `cout' undeclared in namespace `std' > > I'm still scratching my head . It may be a Dev-C++ bug. Try to create a blank file without any project, save it as .cpp and compile it. Ioannis * Ioannis Vranos * Programming pages: http://www.noicys.cjb.net * Alternative URL: http://run.to/noicys |
|
From: Napoleon A. <nah...@so...> - 2002-06-29 16:13:33
|
Hello and thanks, I don,t know what I'm doing wrong but all I've done is create a console project with the source code. and when I compile I get the following error still: /C++Lab/Temp/test.cpp C:\C++Lab\Temp\C In constructor `World::World(int)': 10 C:\C++Lab\Temp\test.cpp `cout' undeclared in namespace `std' I'm still scratching my head . Napoleon. ----- Original Message ----- From: "Rob Andrews" <ro...@us...> To: "Napoleon Ahiable" <nah...@so...> Sent: Saturday, June 29, 2002 4:48 PM Subject: Re: [Dev-C++] Error using std::cout > I just pasted your code into a blank source file on Dev-C++ 4.9.4.0 and > compiled it without problem. Here's the output: > > Hello from 1. > Hello from 2. > Hello from main! > Good bye. > Good bye. > > Rob Andrews > http://uselesspython.com > > Napoleon Ahiable wrote: > > > Hello, > > > > > > > > I just tried to compile this program and I had an error saying cout not > > declared: > > > > > > > > > > #include <iostream> > > #include <stdlib.h> > > > > > > > > using std::cout; > > > > > > > > class World > > { > > public: > > World (int i) > > { > > std::cout << "Hello from " << i << ".\n"; > > } > > > > > > > > ~World () > > { > > std::cout << "Good bye.\n"; > > } > > }; > > > > > > > > World TheWorld (1); > > > > > > > > int main() > > { > > World myWorld (2); > > std::cout << "Hello from main!\n"; > > } > > > > > > > > I'll appreciate any help you can give me. > > > > > > > > Napoleon. --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.372 / Virus Database: 207 - Release Date: 20/06/02 |
|
From: Abhijit S. <mu...@gm...> - 2002-06-29 16:09:53
|
I have a Node class, containing the method
const char *GetNum() { return num; }
in it. In another method, MakeNum(), I use this code:
num = new char[strlen(parentNode.GetNum()) + sizeof(word)*3 + 1];
where parentNode is a const reference to a node.
When I try to compile it, I get this error:
node.cpp: In method `void Node::MakeNum(const Node &)':
node.cpp:76: passing `const Node' as `this' argument of `const char *
Node::GetN
um()' discards qualifiers
node.cpp:79: passing `const Node' as `this' argument of `const char *
Node::GetT
itle()' discards qualifiers
node.cpp:82: passing `const Node' as `this' argument of `const word
Node::GetNum
Child()' discards qualifiers
I have three .cpp files: node.cpp contains the methods' definitions,
test.cpp has a main() which declares a single Node, and doqspc.cpp has the
namespace declarations.
The program compiles using BC5.5 but when I run it, I get an exception, and
GCC simply refuses to compile it...
--------------------------
http://mudeth.tripod.com
|
|
From: Ioannis V. <no...@ho...> - 2002-06-29 16:06:38
|
I found no errors, the code is ok. How did you try to compile it? Ioannis * Ioannis Vranos * Programming pages: http://www.noicys.cjb.net <http://www.noicys.cjb.net/> * Alternative URL: http://run.to/noicys -----Original Message----- From: dev...@li... [mailto:dev...@li...] On Behalf Of Napoleon Ahiable Sent: Saturday, June 29, 2002 6:21 PM To: dev...@li... Subject: [Dev-C++] Error using std::cout Hello, I just tried to compile this program and I had an error saying cout not declared: #include <iostream> #include <stdlib.h> using std::cout; class World { public: World (int i) { std::cout << "Hello from " << i << ".\n"; } ~World () { std::cout << "Good bye.\n"; } }; World TheWorld (1); int main() { World myWorld (2); std::cout << "Hello from main!\n"; } I'll appreciate any help you can give me. Napoleon. --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.372 / Virus Database: 207 - Release Date: 20/06/02 |
|
From: Rob A. <ro...@us...> - 2002-06-29 15:49:48
|
I just pasted your code into a blank source file on Dev-C++ 4.9.4.0 and compiled it without problem. Here's the output: Hello from 1. Hello from 2. Hello from main! Good bye. Good bye. Rob Andrews http://uselesspython.com Napoleon Ahiable wrote: > Hello, > > I just tried to compile this program and I had an error saying cout not > declared: > -- "Giving the Linus Torvalds Award to the Free Software Foundation is a bit like giving the Han Solo Award to the Rebel Alliance." --Richard Stallman at the 1999 LinuxWorld show |