dev-cpp-users Mailing List for Dev-C++ (Page 304)
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: Per W. <pw...@ia...> - 2003-10-18 12:33:56
|
Since it is a - at the most - 10 minute exercise, I don't think you need to bother your examiner by complaining about lack of time. /Per W On Sat, 18 Oct 2003, Coosa wrote: > Hi all, > > > > I had today a lab test in C++ and one of the 10 questions was to write a > program which accepts a string input and reverse the words separately > between spaces and outputs it to the stream. I couldn't solve it in time and > I lost the marks for this section and went home and solved it. > > As a complain I want to know first, if this code could be simplified more as > compact as possible, then write my lecturer a complain that the time wasn't > enough to solve such questions, any way, the code is attached and working > fine and I tried to make it as compact as possible, so please if some one > can make it shorter, I'll be thankful. > > > > Best Regards > > > > Coosa > > > > Program output example: > > > > The words separated between spaces are isolated first and then reversed, not > the entire string! > > > > Original Name : This is a test! > > Reversed Name: sihT si a !tset > > > > |
|
From: Per W. <pw...@ia...> - 2003-10-17 21:18:42
|
Don't know about the resolution of the previously reported problem, but somehow there seems to be a missing #define IDC_STATIC (-1) in an include file somewhere. I have it defined in winuser.h which gets included from winresrc.h which gets included from windows.h /Per W On Fri, 17 Oct 2003, EXT-Meyer, Robert J wrote: > I'm new to windows programming and dev-c++. As I was going through an online tutorial, I ran across the exact same problem as yokosima on your mailing list dated 2003-08-12 02:48. Is this user error or a larger problem? His problem states: > > The two lines at the bottom (commented out) gives me a 'parse error' when I try to compile. I basically copied & pasted it from a tutorial example and modified the text between the quotes and changed the ID to DLG_HELP which I defined in the second included header file but it won't work, not even before I made any changes. > With the GROUPBOX and CTEXT lines commented out it does work.. But what good is it without the taunting? :) I'm using 4.9.8.0 > #include "resource.h" > #include "windows.h" > > IDR_MYMENU MENU > BEGIN > POPUP "&File" > BEGIN > MENUITEM "E&xit", ID_FILE_EXIT > END > > POPUP "&Stuff" > BEGIN > MENUITEM "&Go", ID_STUFF_GO > MENUITEM "&About", ID_HELP_ABOUT > MENUITEM "G&o somewhere else", 0, GRAYED > END > END > > IDI_MYICON ICON "Simple.ico" > > IDD_ABOUT DIALOG DISCARDABLE 0, 0, 239, 66 > STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU > CAPTION "My About Box" > FONT 8, "MS Sans Serif" > BEGIN > DEFPUSHBUTTON "&OK", IDOK, 174, 18, 50, 14 > PUSHBUTTON "&Cancel", IDCANCEL, 174, 35, 50, 14 > //GROUPBOX "About this program...", IDC_STATIC, 7, 7, 225, 52 > //CTEXT "An example program showing how to use Dialog Boxes\r\n\r\nby theForger", IDC_STATIC, 16, 18, 144, 33 > END > > > > ------------------------------------------------------- > This SF.net email sponsored by: Enterprise Linux Forum Conference & Expo > The Event For Linux Datacenter Solutions & Strategies in The Enterprise > Linux in the Boardroom; in the Front Office; & in the Server Room > http://www.enterpriselinuxforum.com > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > |
|
From: EXT-Meyer, R. J <rob...@bo...> - 2003-10-17 21:06:22
|
I'm new to windows programming and dev-c++. As I was going through an =
online tutorial, I ran across the exact same problem as yokosima on your =
mailing list dated 2003-08-12 02:48. Is this user error or a larger =
problem? His problem states:
The two lines at the bottom (commented out) gives me a 'parse error' =
when I try to compile. I basically copied & pasted it from a tutorial =
example and modified the text between the quotes and changed the ID to =
DLG_HELP which I defined in the second included header file but it won't =
work, not even before I made any changes.=20
With the GROUPBOX and CTEXT lines commented out it does work.. But what =
good is it without the taunting? :) I'm using 4.9.8.0
#include "resource.h"
#include "windows.h"
IDR_MYMENU MENU
BEGIN
POPUP "&File"
BEGIN
MENUITEM "E&xit", ID_FILE_EXIT
END
POPUP "&Stuff"
BEGIN
MENUITEM "&Go", ID_STUFF_GO
MENUITEM "&About", ID_HELP_ABOUT
MENUITEM "G&o somewhere else", 0, GRAYED
END
END
IDI_MYICON ICON "Simple.ico"
IDD_ABOUT DIALOG DISCARDABLE 0, 0, 239, 66
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "My About Box"
FONT 8, "MS Sans Serif"
BEGIN
DEFPUSHBUTTON "&OK", IDOK, 174, 18, 50, 14
PUSHBUTTON "&Cancel", IDCANCEL, 174, 35, 50, 14
//GROUPBOX "About this program...", IDC_STATIC, 7, 7, 225, 52
//CTEXT "An example program showing how to use Dialog =
Boxes\r\n\r\nby theForger", IDC_STATIC, 16, 18, 144, 33
END
|
|
From: Nabeel H. <mn...@li...> - 2003-10-17 20:03:49
|
dear friends It is the first time to use DEV C++ 4.9.8.0 so I need an example on how = to write dll=20 Library. Please replay to nab...@ga... |
|
From: Per W. <pw...@ia...> - 2003-10-17 16:11:57
|
If you look a bit closer at the two methods, you will notice the different
signatures
Employee::printCheck() is const
HourlyEmployee::printCheck() isn't const
/Per W
On Fri, 17 Oct 2003, Opacki, Joseph wrote:
> Can someone please tell me why my main() function isn't accepting the
> redefined function of my base class? Everything seems to be compiling
> correctly, but the base class printCheck function is executing and not the
> derived class function.
>
> Here are the excepts of code:
>
> // -- BASE CLASS -- //
> void Employee::printCheck() const
> {
> cout << "\nERROR: print_check FUNCTION CALLED FOR AN \n"
> << "UNDIFFERENTIATED EMPLOYEE. Aborting program.\n"
> << "Check with the author of the progrm about this bug.\n";
> exit(1);
> }
>
> // -- DERIVED CLASS -- //
> void HourlyEmployee::printCheck()
> {
> setNetPay(hours * wageRate);
>
> cout <<
> "\n__________________________________________________________\n";
> cout << "Pay o the order of " << getName() << endl;
> cout << "The sum of " << getNetPay() << " Dollars\n";
> cout <<
> "\n__________________________________________________________\n";
> cout << "Check Stub: NOT NEGOTIABLE:\n";
> cout << "Employee Number: " << getSSN() << endl;
> cout << "Hourly employee.\n Hours Worked: " << hours
> << " Rate: " << wageRate << " Pay: " << getNetPay() << endl;
> cout <<
> "\n__________________________________________________________\n";
> }
>
> // -- MAIN -- //
> HourlyEmployee joe;
> joe.setName("Mighty Joe");
> joe.setSSN("123-65-6547");
> joe.setRate(50.20);
> joe.setHours(40);
> cout << "Check for " << joe.getName() << " for " << joe.getHours() << "
> hours\n";
> joe.printCheck();
> ^this call is where thing go crazy
>
>
> -------------------------------------------------------
> This SF.net email sponsored by: Enterprise Linux Forum Conference & Expo
> The Event For Linux Datacenter Solutions & Strategies in The Enterprise
> Linux in the Boardroom; in the Front Office; & in the Server Room
> http://www.enterpriselinuxforum.com
> _______________________________________________
> Dev-cpp-users mailing list
> Dev...@li...
> TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm
> https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
>
|
|
From: Ravi D. <rav...@ho...> - 2003-10-17 15:44:01
|
I have just loaded Red Hat Linux 8 on my computer, Could anyone tell me how I may install Dev C++ for linux? Thanks in advance, Ravster. _________________________________________________________________ Buy now! Receive a gold coin on Dhan Teras. http://server1.msn.co.in/features/general/dhanteras/index.asp Celebrate prosperity! |
|
From: Opacki, J. <Jos...@ng...> - 2003-10-17 15:25:03
|
Can someone please tell me why my main() function isn't accepting the
redefined function of my base class? Everything seems to be compiling
correctly, but the base class printCheck function is executing and not the
derived class function.
Here are the excepts of code:
// -- BASE CLASS -- //
void Employee::printCheck() const
{
cout << "\nERROR: print_check FUNCTION CALLED FOR AN \n"
<< "UNDIFFERENTIATED EMPLOYEE. Aborting program.\n"
<< "Check with the author of the progrm about this bug.\n";
exit(1);
}
// -- DERIVED CLASS -- //
void HourlyEmployee::printCheck()
{
setNetPay(hours * wageRate);
cout <<
"\n__________________________________________________________\n";
cout << "Pay o the order of " << getName() << endl;
cout << "The sum of " << getNetPay() << " Dollars\n";
cout <<
"\n__________________________________________________________\n";
cout << "Check Stub: NOT NEGOTIABLE:\n";
cout << "Employee Number: " << getSSN() << endl;
cout << "Hourly employee.\n Hours Worked: " << hours
<< " Rate: " << wageRate << " Pay: " << getNetPay() << endl;
cout <<
"\n__________________________________________________________\n";
}
// -- MAIN -- //
HourlyEmployee joe;
joe.setName("Mighty Joe");
joe.setSSN("123-65-6547");
joe.setRate(50.20);
joe.setHours(40);
cout << "Check for " << joe.getName() << " for " << joe.getHours() << "
hours\n";
joe.printCheck();
^this call is where thing go crazy
|
|
From: Daniel G. <sp...@ho...> - 2003-10-17 13:00:16
|
Did you fix the problem you were having? >From: "Smitha V. Babu" <smi...@so...> >To: Daniel Glenfield <sp...@ho...> >Subject: RE: [Dev-C++] MSAccess >Date: Thu, 16 Oct 2003 17:52:32 +0530 > >We are sending the application and a copy of database.. >I want to encrypt the database and allow the client to do the apllication >which will update the database and allow the client >to view the report only >Is it possible >Can u help me.. >regds >smitha > > > -----Original Message----- > > From: Daniel Glenfield [SMTP:sp...@ho...] > > Sent: Thursday, October 16, 2003 5:44 PM > > To: smi...@so...; dev...@li... > > Subject: Re: [Dev-C++] MSAccess > > > > A number of options are available. > > > > You can create a data access page where you can present the information > > like > > a report, or (the way I prefer) build a web page that displays it using > > ASP. > > How is your client connecting to the database, over the internet or via >an > > > > internal intranet? > > > > Daniel > > > > > > >From: "Smitha V. Babu" <smi...@so...> > > >To: dev...@li... > > >Subject: [Dev-C++] MSAccess > > >Date: Thu, 16 Oct 2003 17:07:52 +0530 > > > > > >Hi to all... > > >I am facing a small problem.. > > >I created a database in MSAccess with 5 tables,1 form,1 query and >report > > . > > >I want my client to view the report only..not the entire database... > > >What should i do.. > > >He should not able to even view tables... > > >Does anyone can help me.. > > >Any help is appreciated... > > >Thanking in advance > > >smitha > > > > > >********************************************************************* > > >Disclaimer: The information in this e-mail and any attachments is > > >confidential / privileged. It is intended solely for the addressee or > > >addressees. If you are not the addressee indicated in this message, you > > may > > >not copy or deliver this message to anyone. In such case, you should > > >destroy > > >this message and kindly notify the sender by reply email. Please advise > > >immediately if you or your employer does not consent to Internet email > > for > > >messages of this kind. > > >********************************************************************* > > > > > > > > >------------------------------------------------------- > > >This SF.net email is sponsored by: SF.net Giveback Program. > > >SourceForge.net hosts over 70,000 Open Source Projects. > > >See the people who have HELPED US provide better services: > > >Click here: http://sourceforge.net/supporters.php > > >_______________________________________________ > > >Dev-cpp-users mailing list > > >Dev...@li... > > >TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm > > >https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > > > > _________________________________________________________________ > > Stay in touch with absent friends - get MSN Messenger > > http://www.msn.co.uk/messenger >********************************************************************* >Disclaimer: The information in this e-mail and any attachments is >confidential / privileged. It is intended solely for the addressee or >addressees. If you are not the addressee indicated in this message, you may >not copy or deliver this message to anyone. In such case, you should >destroy >this message and kindly notify the sender by reply email. Please advise >immediately if you or your employer does not consent to Internet email for >messages of this kind. >********************************************************************* _________________________________________________________________ Stay in touch with absent friends - get MSN Messenger http://www.msn.co.uk/messenger |
|
From: Pascal <p.t...@ti...> - 2003-10-17 08:18:14
|
Hi, Your code source is good compiled to me in last version of DEV C++ = 4.9.8.3. But i have question for this release (dev c++): The soft is to slow unlike 4.9.8.1,and especially when opening a project = or source in parsing mode. Why? |
|
From: Frank W. <F.W...@wi...> - 2003-10-17 07:42:38
|
Hi, I also needed access to the serial port and was trying out for a long time. The documents mentioned below helped me a lot. Try to find: The Serial-Programming-HOWTO, the Serial Programming Guide for POSIX Operating Systems and maybe the serial-HOWTO. These documents helped me a lot but I have to mention that I use the Cygwin System and I don't know whether the Mingw is providing the same header files. I also have the code of a dump terminal wich shows how to configer the serial interface. If it is helpful for you I can send you the source of this simple terminal program. With these example I derived my own class to do the basic control of the serial terminal. Greetings Frank >>> Roberto Ricardi <rob...@ar...> 10/16 3:38 >>> Hi all, I need take control over the serial ports to monitoring reads data, I saw a lot of info about c++, clases and so on. I wish to stay in c only by the while, in a console application, gcc 2.9xxx, dev-cpp & win32. Where I can found serial ports libraries to work in it ? Im confuse about. Thanks in advance Roberto ------------------------------------------------------- This SF.net email is sponsored by: SF.net Giveback Program. SourceForge.net hosts over 70,000 Open Source Projects. See the people who have HELPED US provide better services: Click here: http://sourceforge.net/supporters.php _______________________________________________ Dev-cpp-users mailing list Dev...@li... TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm https://lists.sourceforge.net/lists/listinfo/dev-cpp-users |
|
From: Per W. <pw...@ia...> - 2003-10-17 06:22:07
|
It's a variable declaration, just as
int my_integer;
Note that in C++ you can place variable declarations just about
everywhere, while a C compiler only want them at start of a block.
You must make sure that you are including the file where RASCONNSTATUS is
declared.
/Per W
On Thu, 16 Oct 2003, Michael D. Smith wrote:
>
> Can anyone, please, help me explain this statement?
>
> I know I don't know C, but most of it at least kind of looks like familiar
> things from other languages. I don't get it. It doesn't even look like a
> valid statement. I have no idea where to start to look it up. It's not an
> 'if' or a 'print' or a loop, or a math statement, or anything you could
> look up. It's just there and the compiler says it's a parse error.
>
> RASCONNSTATUS rasConnStatus;
>
> The rest of the subroutine is below if that helps but my main focus at the
> moment is the purpose of this statement.
>
> BTW, I tried sticking an = in there and that blew up even worse :)
>
> ms
>
>
>
>
>
>
> void wd_hangup (HRASCONN x_conn)
> {
> RasHangUp (x_conn);
>
>
> // Wait for a second before checking to see if it's been disconnected.
> //
> Sleep (1000);
>
>
> // Keep checking in a loop until the connection is no longer valid.
> //
> RASCONNSTATUS rasConnStatus;
>
>
> rasConnStatus.dwSize = sizeof (RASCONNSTATUS);
>
>
> while (RasGetConnectStatus (x_conn, &rasConnStatus) !=
> ERROR_INVALID_HANDLE)
> {
> // Wait a bit before checking again.
> //
> Sleep (250);
> }
>
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: SF.net Giveback Program.
> SourceForge.net hosts over 70,000 Open Source Projects.
> See the people who have HELPED US provide better services:
> Click here: http://sourceforge.net/supporters.php
> _______________________________________________
> Dev-cpp-users mailing list
> Dev...@li...
> TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm
> https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
>
|
|
From: Michael D. S. <for...@hi...> - 2003-10-17 05:14:03
|
Can anyone, please, help me explain this statement?
I know I don't know C, but most of it at least kind of looks like familiar
things from other languages. I don't get it. It doesn't even look like a
valid statement. I have no idea where to start to look it up. It's not an
'if' or a 'print' or a loop, or a math statement, or anything you could
look up. It's just there and the compiler says it's a parse error.
RASCONNSTATUS rasConnStatus;
The rest of the subroutine is below if that helps but my main focus at the
moment is the purpose of this statement.
BTW, I tried sticking an = in there and that blew up even worse :)
ms
void wd_hangup (HRASCONN x_conn)
{
RasHangUp (x_conn);
// Wait for a second before checking to see if it's been disconnected.
//
Sleep (1000);
// Keep checking in a loop until the connection is no longer valid.
//
RASCONNSTATUS rasConnStatus;
rasConnStatus.dwSize = sizeof (RASCONNSTATUS);
while (RasGetConnectStatus (x_conn, &rasConnStatus) !=
ERROR_INVALID_HANDLE)
{
// Wait a bit before checking again.
//
Sleep (250);
}
|
|
From: Jeffrey H. <jh...@ho...> - 2003-10-17 02:24:46
|
the warning is pointing at the wrong spot, it's yelling about a declaration,
and pointing at the call in main
> warning: friend declaration `std::ostream&
>opacki::operator<<(std::ostream&, const opacki::List<ItemType>&)'
> declares a non-template function
note: friend 'declaration'
the problem is probably in class declaration
most likely:
>friend ostream& operator <<(ostream& outs, const List<ItemType>& theList);
involving the 'friend ostream&'
that is all I have found
as a guess: there is no template for a friend declaration in this context
if anyone else can find more, please let me know
if I'm chasing a wild goose, please let me know
Jeff
>From: "Opacki, Joseph" <Jos...@ng...>
>To: "'dev...@li...'"
><dev...@li...>
>Subject: [Dev-C++] I've never seen this one before.
>Date: Thu, 16 Oct 2003 09:59:45 -0700
>
>Can someone tell me if they see something blatantly obvious.
>
>My compile.log relays the following, please note I have wrapped my class
>def
>in my own namespace(opacki):
>
> warning: friend declaration `std::ostream&
>opacki::operator<<(std::ostream&, const opacki::List<ItemType>&)'
> declares a non-template function
>
>// function type inside my class declaration //
>
>friend ostream& operator <<(ostream& outs, const List<ItemType>& theList);
>
>// full function in my implementation template //
>
>template<class ItemType>
>ostream& operator <<(ostream& outs, const List<ItemType>& theList)
>{
> for ( int i = 0; i < theList.currentLength; i++ )
> {
> outs << theList.item[i] << endl;
> }
>
> return outs;
>}
>
>// inside main() //
>
> List<int> firstList(2);
> firstList.add(1);
> firstList.add(2);
> cout << "first list = " << firstList;
_________________________________________________________________
Cheer a special someone with a fun Halloween eCard from American Greetings!
Go to http://www.msn.americangreetings.com/index_msn.pd?source=msne134
|
|
From: Opacki, J. <Jos...@ng...> - 2003-10-16 17:46:27
|
Can someone tell me if they see something blatantly obvious.
My compile.log relays the following, please note I have wrapped my class def
in my own namespace(opacki):
warning: friend declaration `std::ostream&
opacki::operator<<(std::ostream&, const opacki::List<ItemType>&)'
declares a non-template function
// function type inside my class declaration //
friend ostream& operator <<(ostream& outs, const List<ItemType>& theList);
// full function in my implementation template //
template<class ItemType>
ostream& operator <<(ostream& outs, const List<ItemType>& theList)
{
for ( int i = 0; i < theList.currentLength; i++ )
{
outs << theList.item[i] << endl;
}
return outs;
}
// inside main() //
List<int> firstList(2);
firstList.add(1);
firstList.add(2);
cout << "first list = " << firstList;
// ^ error occurs here //
|
|
From: Pascal <p.t...@ti...> - 2003-10-16 16:34:46
|
Hello, In compile mode,my error message is: bits/c++config.h :No such file or directory, My DEV C++ version is 4.9.8.1. Enyone can help me for help you :) HS:how correct respons in this news group? Pascal. |
|
From: Per W. <pw...@ia...> - 2003-10-16 14:43:39
|
I don't have the book or anything to compare with, but I saw one strange
line:
/Per W
On Thu, 16 Oct 2003, Opacki, Joseph wrote:
> Hello All,
>
> I'm working on building a generic sort function with templates that I got
> out of Walter Savitch's book "Problem Solving with C++". My error is this
> that it is not sorting correctly for me. I think I have just been staring
> at it for too long. Can someone take a peak and tell me of my obvious
> mistake. Thanks.
>
> Joe
>
> ---------------------
>
> // sorting function using templates
> #include <iostream>
> #include <cstdlib>
>
> using namespace std;
>
> template<class T>
> void swapValues(T& var1, T& var2)
> {
> T temp;
> temp = var1;
> var1 = var2;
> var2 = temp;
> }
>
> template<class BaseType>
> int indexOfSmallest(const BaseType a[], int startIndex, int numberUsed)
> {
> BaseType min = a[startIndex];
> int indexOfMin = startIndex;
>
> for (int index = startIndex + 1; index < numberUsed; index++)
> {
> if (a[index] < min)
> {
> min = a[index] < min;
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Shouldn't previous line be min = a[index];
> indexOfMin = index;
> // min is the smallest of a[startIndex] through a[index]
> }
> }
>
> return indexOfMin;
> }
>
> template<class BaseType>
> void sort(BaseType a[], int numberUsed)
> {
> int indexNextSmallest;
> for(int index = 0; index < numberUsed - 1; index++)
> {
> // place the correct value in a[index]
> indexNextSmallest = indexOfSmallest(a, index, numberUsed);
> swapValues(a[index], a[indexNextSmallest]);
> // a[0] <= a[1] ... <= a[index] are the smallest of the original array
> // elements. The rest of the elements are in the remaining positions
> }
> }
>
> int main()
> {
> int i;
>
> // sorting integers
> int a[10] = {9, 8, 3, 1, 5, 2, 1, 7, 3, 9};
> cout << "Unsorted integers: " << endl;
> for (i = 0; i < 10; i++)
> {
> cout << a[i] << " ";
> }
> cout << endl;
> sort(a, 10);
> cout << "In sorted order: " << endl;
> for (i = 0; i < 10; i++)
> {
> cout << a[i] << " ";
> }
> cout << endl;
>
> // sorting doubles
> double b[10] = {9.3, 8.8, 3.32, 1.21, 5.36, 2.45, 1.11, 7.3, 3.96,
> 9.36};
> cout << "Unsorted doubles: " << endl;
> for (i = 0; i < 10; i++)
> {
> cout << b[i] << " ";
> }
> cout << endl;
> sort(b, 10);
> cout << "In sorted order: " << endl;
> for (i = 0; i < 10; i++)
> {
> cout << b[i] << " ";
> }
> cout << endl;
>
> // sorting chars
> char c[10] = {'G', 'Z', 'M', 'A', 'R', 'N', 'B', 'W', 'C', 'D'};
> cout << "Unsorted chars: " << endl;
> for (i = 0; i < 10; i++)
> {
> cout << c[i] << " ";
> }
> cout << endl;
> sort(c, 10);
> cout << "In sorted order: " << endl;
> for (i = 0; i < 10; i++)
> {
> cout << c[i] << " ";
> }
> cout << endl;
>
> system("pause");
> return 0;
> }
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: SF.net Giveback Program.
> SourceForge.net hosts over 70,000 Open Source Projects.
> See the people who have HELPED US provide better services:
> Click here: http://sourceforge.net/supporters.php
> _______________________________________________
> Dev-cpp-users mailing list
> Dev...@li...
> TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm
> https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
>
|
|
From: Daniel G. <sp...@ho...> - 2003-10-16 14:38:12
|
Ok I'm going to leave work soon but here is a solution. You can set up an account for the client (part of the security, the .mdw file) and specify that they only have access to the reports. you will want to build a 'switchboard' form that greets the client when they open up the database with a button(s) that launch the report(s). Daniel >From: "Smitha V. Babu" <smi...@so...> >To: Daniel Glenfield <sp...@ho...> >Subject: RE: [Dev-C++] MSAccess >Date: Thu, 16 Oct 2003 17:52:32 +0530 > >We are sending the application and a copy of database.. >I want to encrypt the database and allow the client to do the apllication >which will update the database and allow the client >to view the report only >Is it possible >Can u help me.. >regds >smitha > > > -----Original Message----- > > From: Daniel Glenfield [SMTP:sp...@ho...] > > Sent: Thursday, October 16, 2003 5:44 PM > > To: smi...@so...; dev...@li... > > Subject: Re: [Dev-C++] MSAccess > > > > A number of options are available. > > > > You can create a data access page where you can present the information > > like > > a report, or (the way I prefer) build a web page that displays it using > > ASP. > > How is your client connecting to the database, over the internet or via >an > > > > internal intranet? > > > > Daniel > > > > > > >From: "Smitha V. Babu" <smi...@so...> > > >To: dev...@li... > > >Subject: [Dev-C++] MSAccess > > >Date: Thu, 16 Oct 2003 17:07:52 +0530 > > > > > >Hi to all... > > >I am facing a small problem.. > > >I created a database in MSAccess with 5 tables,1 form,1 query and >report > > . > > >I want my client to view the report only..not the entire database... > > >What should i do.. > > >He should not able to even view tables... > > >Does anyone can help me.. > > >Any help is appreciated... > > >Thanking in advance > > >smitha > > > > > >********************************************************************* > > >Disclaimer: The information in this e-mail and any attachments is > > >confidential / privileged. It is intended solely for the addressee or > > >addressees. If you are not the addressee indicated in this message, you > > may > > >not copy or deliver this message to anyone. In such case, you should > > >destroy > > >this message and kindly notify the sender by reply email. Please advise > > >immediately if you or your employer does not consent to Internet email > > for > > >messages of this kind. > > >********************************************************************* > > > > > > > > >------------------------------------------------------- > > >This SF.net email is sponsored by: SF.net Giveback Program. > > >SourceForge.net hosts over 70,000 Open Source Projects. > > >See the people who have HELPED US provide better services: > > >Click here: http://sourceforge.net/supporters.php > > >_______________________________________________ > > >Dev-cpp-users mailing list > > >Dev...@li... > > >TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm > > >https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > > > > _________________________________________________________________ > > Stay in touch with absent friends - get MSN Messenger > > http://www.msn.co.uk/messenger >********************************************************************* >Disclaimer: The information in this e-mail and any attachments is >confidential / privileged. It is intended solely for the addressee or >addressees. If you are not the addressee indicated in this message, you may >not copy or deliver this message to anyone. In such case, you should >destroy >this message and kindly notify the sender by reply email. Please advise >immediately if you or your employer does not consent to Internet email for >messages of this kind. >********************************************************************* _________________________________________________________________ Hotmail messages direct to your mobile phone http://www.msn.co.uk/msnmobile |
|
From: Opacki, J. <Jos...@ng...> - 2003-10-16 13:38:52
|
Hello All,
I'm working on building a generic sort function with templates that I got
out of Walter Savitch's book "Problem Solving with C++". My error is this
that it is not sorting correctly for me. I think I have just been staring
at it for too long. Can someone take a peak and tell me of my obvious
mistake. Thanks.
Joe
---------------------
// sorting function using templates
#include <iostream>
#include <cstdlib>
using namespace std;
template<class T>
void swapValues(T& var1, T& var2)
{
T temp;
temp = var1;
var1 = var2;
var2 = temp;
}
template<class BaseType>
int indexOfSmallest(const BaseType a[], int startIndex, int numberUsed)
{
BaseType min = a[startIndex];
int indexOfMin = startIndex;
for (int index = startIndex + 1; index < numberUsed; index++)
{
if (a[index] < min)
{
min = a[index] < min;
indexOfMin = index;
// min is the smallest of a[startIndex] through a[index]
}
}
return indexOfMin;
}
template<class BaseType>
void sort(BaseType a[], int numberUsed)
{
int indexNextSmallest;
for(int index = 0; index < numberUsed - 1; index++)
{
// place the correct value in a[index]
indexNextSmallest = indexOfSmallest(a, index, numberUsed);
swapValues(a[index], a[indexNextSmallest]);
// a[0] <= a[1] ... <= a[index] are the smallest of the original array
// elements. The rest of the elements are in the remaining positions
}
}
int main()
{
int i;
// sorting integers
int a[10] = {9, 8, 3, 1, 5, 2, 1, 7, 3, 9};
cout << "Unsorted integers: " << endl;
for (i = 0; i < 10; i++)
{
cout << a[i] << " ";
}
cout << endl;
sort(a, 10);
cout << "In sorted order: " << endl;
for (i = 0; i < 10; i++)
{
cout << a[i] << " ";
}
cout << endl;
// sorting doubles
double b[10] = {9.3, 8.8, 3.32, 1.21, 5.36, 2.45, 1.11, 7.3, 3.96,
9.36};
cout << "Unsorted doubles: " << endl;
for (i = 0; i < 10; i++)
{
cout << b[i] << " ";
}
cout << endl;
sort(b, 10);
cout << "In sorted order: " << endl;
for (i = 0; i < 10; i++)
{
cout << b[i] << " ";
}
cout << endl;
// sorting chars
char c[10] = {'G', 'Z', 'M', 'A', 'R', 'N', 'B', 'W', 'C', 'D'};
cout << "Unsorted chars: " << endl;
for (i = 0; i < 10; i++)
{
cout << c[i] << " ";
}
cout << endl;
sort(c, 10);
cout << "In sorted order: " << endl;
for (i = 0; i < 10; i++)
{
cout << c[i] << " ";
}
cout << endl;
system("pause");
return 0;
}
|
|
From: Daniel G. <sp...@ho...> - 2003-10-16 12:45:28
|
So you have written an application that updates the MS Access database, but you want to send the database itself so the client can update this local copy using your application and let the client view the report only? am I correct? >From: "Smitha V. Babu" <smi...@so...> >To: Daniel Glenfield <sp...@ho...> >Subject: RE: [Dev-C++] MSAccess >Date: Thu, 16 Oct 2003 17:52:32 +0530 > >We are sending the application and a copy of database.. >I want to encrypt the database and allow the client to do the apllication >which will update the database and allow the client >to view the report only >Is it possible >Can u help me.. >regds >smitha > > > -----Original Message----- > > From: Daniel Glenfield [SMTP:sp...@ho...] > > Sent: Thursday, October 16, 2003 5:44 PM > > To: smi...@so...; dev...@li... > > Subject: Re: [Dev-C++] MSAccess > > > > A number of options are available. > > > > You can create a data access page where you can present the information > > like > > a report, or (the way I prefer) build a web page that displays it using > > ASP. > > How is your client connecting to the database, over the internet or via >an > > > > internal intranet? > > > > Daniel > > > > > > >From: "Smitha V. Babu" <smi...@so...> > > >To: dev...@li... > > >Subject: [Dev-C++] MSAccess > > >Date: Thu, 16 Oct 2003 17:07:52 +0530 > > > > > >Hi to all... > > >I am facing a small problem.. > > >I created a database in MSAccess with 5 tables,1 form,1 query and >report > > . > > >I want my client to view the report only..not the entire database... > > >What should i do.. > > >He should not able to even view tables... > > >Does anyone can help me.. > > >Any help is appreciated... > > >Thanking in advance > > >smitha > > > > > >********************************************************************* > > >Disclaimer: The information in this e-mail and any attachments is > > >confidential / privileged. It is intended solely for the addressee or > > >addressees. If you are not the addressee indicated in this message, you > > may > > >not copy or deliver this message to anyone. In such case, you should > > >destroy > > >this message and kindly notify the sender by reply email. Please advise > > >immediately if you or your employer does not consent to Internet email > > for > > >messages of this kind. > > >********************************************************************* > > > > > > > > >------------------------------------------------------- > > >This SF.net email is sponsored by: SF.net Giveback Program. > > >SourceForge.net hosts over 70,000 Open Source Projects. > > >See the people who have HELPED US provide better services: > > >Click here: http://sourceforge.net/supporters.php > > >_______________________________________________ > > >Dev-cpp-users mailing list > > >Dev...@li... > > >TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm > > >https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > > > > _________________________________________________________________ > > Stay in touch with absent friends - get MSN Messenger > > http://www.msn.co.uk/messenger >********************************************************************* >Disclaimer: The information in this e-mail and any attachments is >confidential / privileged. It is intended solely for the addressee or >addressees. If you are not the addressee indicated in this message, you may >not copy or deliver this message to anyone. In such case, you should >destroy >this message and kindly notify the sender by reply email. Please advise >immediately if you or your employer does not consent to Internet email for >messages of this kind. >********************************************************************* _________________________________________________________________ Use MSN Messenger to send music and pics to your friends http://www.msn.co.uk/messenger |
|
From: Daniel G. <sp...@ho...> - 2003-10-16 12:17:28
|
A number of options are available. You can create a data access page where you can present the information like a report, or (the way I prefer) build a web page that displays it using ASP. How is your client connecting to the database, over the internet or via an internal intranet? Daniel >From: "Smitha V. Babu" <smi...@so...> >To: dev...@li... >Subject: [Dev-C++] MSAccess >Date: Thu, 16 Oct 2003 17:07:52 +0530 > >Hi to all... >I am facing a small problem.. >I created a database in MSAccess with 5 tables,1 form,1 query and report . >I want my client to view the report only..not the entire database... >What should i do.. >He should not able to even view tables... >Does anyone can help me.. >Any help is appreciated... >Thanking in advance >smitha > >********************************************************************* >Disclaimer: The information in this e-mail and any attachments is >confidential / privileged. It is intended solely for the addressee or >addressees. If you are not the addressee indicated in this message, you may >not copy or deliver this message to anyone. In such case, you should >destroy >this message and kindly notify the sender by reply email. Please advise >immediately if you or your employer does not consent to Internet email for >messages of this kind. >********************************************************************* > > >------------------------------------------------------- >This SF.net email is sponsored by: SF.net Giveback Program. >SourceForge.net hosts over 70,000 Open Source Projects. >See the people who have HELPED US provide better services: >Click here: http://sourceforge.net/supporters.php >_______________________________________________ >Dev-cpp-users mailing list >Dev...@li... >TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm >https://lists.sourceforge.net/lists/listinfo/dev-cpp-users _________________________________________________________________ Stay in touch with absent friends - get MSN Messenger http://www.msn.co.uk/messenger |
|
From: Canko <ca...@er...> - 2003-10-16 11:48:49
|
confirm 724045 |
|
From: Smitha V. B. <smi...@so...> - 2003-10-16 11:38:42
|
Hi to all... I am facing a small problem.. I created a database in MSAccess with 5 tables,1 form,1 query and report . I want my client to view the report only..not the entire database... What should i do.. He should not able to even view tables... Does anyone can help me.. Any help is appreciated... Thanking in advance smitha ********************************************************************* Disclaimer: The information in this e-mail and any attachments is confidential / privileged. It is intended solely for the addressee or addressees. If you are not the addressee indicated in this message, you may not copy or deliver this message to anyone. In such case, you should destroy this message and kindly notify the sender by reply email. Please advise immediately if you or your employer does not consent to Internet email for messages of this kind. ********************************************************************* |
|
From: Daniel G. <sp...@ho...> - 2003-10-16 10:40:12
|
This wouldn't happen to be university homework would it?
What does this mean?
"Using the function - theUni.foodItem(&apple) - to associate them in a Game
function is clearly not going to work because there are multiple apple
objects?"
Either you need to go into more detail or you don't understand what you're
meant to be doing.
Ouch, scathing aren't I?
>From: "damian knight" <kni...@ho...>
>To: dev...@li...
>Subject: [Dev-C++] Association
>Date: Thu, 16 Oct 2003 04:03:30 +0000
>
Hi
I have a Game(manager) class that contains a list of Apple objects and also
a World object called "theUni". How do I associate the World class with the
Apple class?
class World
{
Apple* apple;
public:
void foodItem(Apple* a)
{ apple = a; }
}
Using the function - theUni.foodItem(&apple) - to associate them in a Game
function is clearly not going to work because there are multiple apple
objects?
Damian
_________________________________________________________________
Tired of 56k? Get a FREE BT Broadband connection
http://www.msn.co.uk/specials/btbroadband
|
|
From: damian k. <kni...@ho...> - 2003-10-16 04:04:45
|
<html><div style='background-color:'><DIV>
<P>Hi</P>
<P>I have a Game(manager) class that contains a list of Apple objects and also a World object called "theUni". How do I associate the World class with the Apple class? <BR></P>
<DIV>class World</DIV>
<DIV>{</DIV>
<DIV> Apple* apple;</DIV>
<DIV> public:</DIV>
<DIV> void foodItem(Apple* a)</DIV>
<DIV> { apple = a; }</DIV>
<DIV>}</DIV>
<P><BR>Using the function - theUni.foodItem(&apple) - to associate them in a Game function is clearly not going to work because there are multiple apple objects?</P>
<P>Damian<BR><BR></P></DIV></div><br clear=all><hr>Hot chart ringtones and polyphonics. <a href="http://g.msn.com/8HMBENAU/2737??PS="> Click here.</a> </html>
|
|
From: Roberto R. <rob...@ar...> - 2003-10-16 01:38:48
|
Hi all, I need take control over the serial ports to monitoring reads data, I saw a lot of info about c++, clases and so on. I wish to stay in c only by the while, in a console application, gcc 2.9xxx, dev-cpp & win32. Where I can found serial ports libraries to work in it ? Im confuse about. Thanks in advance Roberto |