dev-cpp-users Mailing List for Dev-C++ (Page 303)
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: Daniel G. <sp...@ho...> - 2003-10-23 21:20:05
|
Sounds 32-bit to me >From: John Ramshur <jt...@ya...> >Reply-To: jt...@ya... >To: dev...@li... >Subject: [Dev-C++] 16 or 32 bit c program >Date: Wed, 22 Oct 2003 08:12:59 -0700 (PDT) > >I have a console application written it C using >Dev-C++. I need to know if it is a 16 or 32 bit >application. Can anyone help? > >John > >__________________________________ >Do you Yahoo!? >The New Yahoo! Shopping - with improved product search >http://shopping.yahoo.com > > >------------------------------------------------------- >This SF.net email is sponsored by OSDN developer relations >Here's your chance to show off your extensive product knowledge >We want to know what you know. Tell us and you have a chance to win $100 >http://www.zoomerang.com/survey.zgi?HRPT1X3RYQNC5V4MLNSV3E54 >_______________________________________________ >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 _________________________________________________________________ Sign-up for a FREE BT Broadband connection today! http://www.msn.co.uk/specials/btbroadband |
|
From: John R. <jt...@ya...> - 2003-10-23 17:04:54
|
Apparently outportb() or inportb() isn't supported in Dev-cpp header files. Does anyone know what Dev-cpp uses to write and read to port or memory locations in C? With borland I just typed outportb(0x378, 0xff). John R __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com |
|
From: Roberto R. <rob...@ar...> - 2003-10-23 06:34:29
|
Sorry guys, I took a lot to answer you. Well, basically yes, but there are more sites who make reference to the same, of course, some ... maybe: http://www.epanorama.net (Lot of hardware) http://www.beyondlogic.org (Lot of hardware) http://www.naughter.com/ (free app to serial ports, with MFC, VC) http://webclub.kcom.ne.jp/ma/colinp/win32/index.html (great, basic windows not serial ports) more and more round the same ... or pay libraries to do. But all still the same, mingw people tell they using standards libraries for windows, bhu ... I wish to stand over c, and a console win32 app, devcpp is great for me, so I thinking about to buy a win32 book or something else, have not good windows env training to prog. Still confuse about. Looks complex to do a simple capture from serial ports without old dos style. Regards Roberto Daniel Glenfield wrote: > Where did you find the information on doing it in C++ ? On msdn? I > wouldn't mind having a go myself. > > >> From: Roberto Ricardi <rob...@ar...> >> To: 'Dev-C++ -Users-List' <dev...@li...> >> Subject: [Dev-C++] Help managing serial ports libraries >> Date: Wed, 15 Oct 2003 22:38:15 -0300 >> >> 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 > > > _________________________________________________________________ > Find a cheaper internet access deal - choose one to suit you. > http://www.msn.co.uk/internetaccess > > > |
|
From: Eric <eri...@cl...> - 2003-10-23 06:23:29
|
does it have a linux version=20
Installation.=20
rpm -ivh [*.rpm FILE] Install a new program.=20
rpm -Uvh [*.rpm FILE] Upgrade a program.=20
tar -zxvf [*.tar.gz FILE] Unzip a file.=20
tar xvfj [*.bz2.* FILE] Unzip a bz2 file.(The j will handle the =
bz2 part)=20
Contact my direct and I could let you know more if you get stuck, unless =
anybody else would like to know more.=20
----- Original Message -----=20
From: "Ravi Desai" <rav...@ho...>
To: <dev...@li...>
Sent: Saturday, October 18, 2003 4:37 AM
Subject: [Dev-C++] Dev C++ for Red Hat Linux
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.=20
http://server1.msn.co.in/features/general/dhanteras/index.asp Celebrate=20
prosperity!
-------------------------------------------------------
This SF.net email sponsored by: Enterprise Linux Forum Conference & Expo
The Event For Linux Datacenter Solutions & Strategies in The Enterprise=20
Linux in the Boardroom; in the Front Office; & in the Server Room=20
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: Mic <mi...@ex...> - 2003-10-23 03:32:58
|
Hello The statement cout does not display anything on my DOS terminal. Could you help? Mic _______________________________________________ Join Excite! - http://www.excite.com The most personalized portal on the Web! |
|
From: cm <c....@fr...> - 2003-10-22 17:31:25
|
32 bits, the underling compiler in Mingw32 a GCC port for Win32 ----- Original Message ----- From: "John Ramshur" <jt...@ya...> To: <dev...@li...> Sent: Wednesday, October 22, 2003 5:12 PM Subject: [Dev-C++] 16 or 32 bit c program > I have a console application written it C using > Dev-C++. I need to know if it is a 16 or 32 bit > application. Can anyone help? > > John > > __________________________________ > Do you Yahoo!? > The New Yahoo! Shopping - with improved product search > http://shopping.yahoo.com > > > ------------------------------------------------------- > This SF.net email is sponsored by OSDN developer relations > Here's your chance to show off your extensive product knowledge > We want to know what you know. Tell us and you have a chance to win $100 > http://www.zoomerang.com/survey.zgi?HRPT1X3RYQNC5V4MLNSV3E54 > _______________________________________________ > 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: John R. <jt...@ya...> - 2003-10-22 16:13:28
|
I have a console application written it C using Dev-C++. I need to know if it is a 16 or 32 bit application. Can anyone help? John __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com |
|
From: chea s. o. <y2k...@ya...> - 2003-10-22 15:47:21
|
\\\\\\\\\\\\\\\\\BEGIN\\\\\\\\\\\\\\\\\\\\\\\\\\\
inline bool lt_nocase(char c1, char c2) { return
tolower(c1) < tolower(c2); }
int main()
{
char A3[] = {'a'};
char A4[] = {'a','b'};
const int N3 = sizeof(A3);
const int N4 = sizeof(A4);
cout<< "Union of A3 and A4: ";
cout<<"{" ;
set_union(A3, A3 + N3, A4, A4 + N4,
ostream_iterator<char>(cout,", "),lt_nocase);
cout<<"}"<<endl;
cout << endl;
system("pause");
}
//////////////////////////END////////////////////////
do anyone of u have use the algo function b4?
i need to do union and intercept at the same time
just like """Au(BnC)"""
may i know how can i combile both oeprator 2gether?
__________________________________
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.com
|
|
From: Maya <Esc...@ne...> - 2003-10-22 01:17:55
|
I am having some problems compiling a class that compiles under MinGW IDE. Here is the error I get, can anyone help? 2148 C:\DEV-CPP\include\winuser.h previous declaration of `typedef struct I am not including 'winuser.h'; DEV-C++ does it automatically, but I don't want to include that file. What can I do? Thanks in advance! |
|
From: Per W. <pw...@ia...> - 2003-10-21 23:14:08
|
This is a normal behaviour. The TCP stack has a timeout time how long it should block a socket from being reused. If you do int i = 1; setsockopt(sock,SOL_SOCKET,SO_REUSEADDR,(char*)&i,sizeof(i)); you tell the stack that you don't want this behaviour. Then you don't have to wait 90 seconds or whatever default value the stack is using. /Per W > hi, > I tried to connect one client program in one linux machine to communicate > another server > program in another machine using sockets. > When once i use one port,if i try to use the same port again..It is saying > that connection refused. > When i give netstat command,it is showing all these ports in CLOSE_WAIT > state.. > What should i do to use the same port after i close the socket in my > program.. > Can anybody help me... > All earlier help from this group help me lot to go forward... > Forgive me for my bad english.. > regds > smitha > > > > > ------------------------------------------------------- > This SF.net email is sponsored by OSDN developer relations > Here's your chance to show off your extensive product knowledge > We want to know what you know. Tell us and you have a chance to win $100 > http://www.zoomerang.com/survey.zgi?HRPT1X3RYQNC5V4MLNSV3E54 > _______________________________________________ > 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-21 18:45:43
|
_LONGLONG must be defined elsewhere, in a header file or something. Looks like you'll need to track THAT LONGLONG down and rewrite it into your code. >From: "Maldonado, Lourdes T." <lou...@ng...> >To: "Dev-cpp-users-lists. sourceforge. net (E-mail)" ><Dev...@li...> >Subject: [Dev-C++] _LONGLONG >Date: Mon, 20 Oct 2003 07:09:55 -0700 > > > >I am compiling my code using the SGI CC compiler. My code must be ansi >compliant so I am using the -ansi flag option. When I do this, I get a >number of WARNINGS stating: The type "long long" is nonstandard. > >After looking at the cc man pages, I defined the _LONGLONG macro in the >hopes that the compile warnings would go away but they did not. > >Does anyone have an explanation? > >Thanks, > >Lourdes > > >------------------------------------------------------- >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 _________________________________________________________________ Sign-up for a FREE BT Broadband connection today! http://www.msn.co.uk/specials/btbroadband |
|
From: Smitha V. B. <smi...@so...> - 2003-10-21 13:20:40
|
hi, I tried to connect one client program in one linux machine to communicate another server program in another machine using sockets. When once i use one port,if i try to use the same port again..It is saying that connection refused. When i give netstat command,it is showing all these ports in CLOSE_WAIT state.. What should i do to use the same port after i close the socket in my program.. Can anybody help me... All earlier help from this group help me lot to go forward... Forgive me for my bad english.. regds smitha |
|
From: Colin L. <ha...@bl...> - 2003-10-20 19:57:18
|
Hi everybody ! I've just released version 4.9.8.4. You can, as usual, download it using WebUpdate (accessible in Dev-C++ from the Tools menu, Check for Update), or you can manually install it from this page: http://bloodshed.net/dev/devcpp.html Change log: * Added the possibility to specify an include directory for the code completion cache to be created at Dev-C++ first startup * Improved code completion cache * WebUpdate will now backup downloaded DevPaks in Dev-C++\Packages directory, and Dev-C++ executable in devcpp.exe.BACKUP * Big speed up in function parameters listing while editing * Bug fixes Please report bugs to http://bloodshed.net/bugs Greetings, Colin Laplace |
|
From: David M. <ci...@ya...> - 2003-10-20 15:54:02
|
Another way would be to do something like html <binary>Binary data</binary> <ascii>Ascii data</ascii> Of course your markers don't have to be so big but you get the idea. Better yet you don't even have to have a close marker. When a marker comes through you just assume all data that follows is of the specified until it finds another marker. e.g. <binary>Binary data.................. <ascii>Ascii data.................... I can guess you want to keep the number of connections down but is binary data going to be kinda like files? In which case you can do something similar to the ftp protocol. When a file (binary data) need to be sent it opens up a seperate socket and uses that to transfer the file. Only one type of data is sent on such a connection and once the file has been transfered then the connection is closed. This has the problem of excessive network connections if there are alot of small files to transfer. The other problem with this method is unless you want to worry about multiple connections you can only transfer one file at a time. Hope this Helps David McKen --- Nehal Shah <ns...@ix...> wrote: > Hi Dave- > > So yeah handler is like a proxy between server and the client. > There is some > mapping done on the handler side. > I have access of client side as well so I was thinking something > like, > server will binary data to the handler and handler will convert it > in such a > way that > some part of the data will be in ascii and some will be in bin. On > the > client side I will do bare minimum process (which is must) in ascii > and rest > will just use it in binary. So I guess that should work. > > What do you think? you can send both data over one connection w/o > any > problem so long as other side understand. > > nehal > > > -----Original Message----- > From: David McKen [mailto:ci...@ya...] > Sent: Saturday, October 18, 2003 12:38 PM > To: Dev-Cpp Mailing List > Subject: Re: [Dev-C++] serialization question > > > Ok handler acts like a translator? > > a simple handshake would work. > > E.g. > <Connection Established to client that accepts binary data> > Handler: Hello > Client: Hello, I accept binary data. > Handler: Very well I will send binary data. > <Continue connection using binary> > > > <Connection Established to client that does not ccepts binary data> > Handler: Hello > Client: Hello > Handler: <Assume the client does not accept binary>. > <Continue connection using ASCII> > > Using this method the client tells the server whether it is capable > of > accepting binary or not. The handler then sets up accordingly. > > What are you capable of changing/updating? the clients, the handler > or the > server? I do have another method but it requires changing the > clients and > the handler. > > Signed > David McKen > > > ----- Original Message ----- > From: Nehal Shah <mailto:ns...@ix...> > To: dev...@li... > <mailto:dev...@li...> > Sent: Friday, October 17, 2003 4:56 PM > Subject: [Dev-C++] serialization question > > > Hi All > > > I have a question regarding serialization out. So here is the > current > working. > > Client<---->handler<----->Server > > in the current scenario whenever handler learns something from > Server it > first (because it is in network order) decodes the data then > serializes it > out and then spit it the client and and eventually client > understands the > ASCII format. > > > In the new approach we are thinking of, not decoing anything at > handler > level but just sending binary data to the client and on the client > side they > will decode and store into the database. > > now what I do not understand is, if my handler sends binary format > to the > Client on the same connection on which sometimes client does accept > the > ASCII data how is the client going to diffrenciate between those > two and > what can I do to make it working in either case. > > > Any suggestion/comments on this will be appreciate on this. > thanks > > > > _____ > > Do you Yahoo!? > The > <http://shopping.yahoo.com/?__yltc=s%3A150000443%2Cd%3A22708228%2Cslk%3Atext > %2Csec%3Amail> New Yahoo! Shopping - with improved product search > > __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com |
|
From: Maldonado, L. T. <lou...@ng...> - 2003-10-20 15:53:45
|
I am compiling my code using the SGI CC compiler. My code must be ansi compliant so I am using the -ansi flag option. When I do this, I get a number of WARNINGS stating: The type "long long" is nonstandard. After looking at the cc man pages, I defined the _LONGLONG macro in the hopes that the compile warnings would go away but they did not. Does anyone have an explanation? Thanks, Lourdes |
|
From: Nehal S. <ns...@ix...> - 2003-10-19 21:50:08
|
Hi Dave- So yeah handler is like a proxy between server and the client. There is some mapping done on the handler side. I have access of client side as well so I was thinking something like, server will binary data to the handler and handler will convert it in such a way that some part of the data will be in ascii and some will be in bin. On the client side I will do bare minimum process (which is must) in ascii and rest will just use it in binary. So I guess that should work. What do you think? you can send both data over one connection w/o any problem so long as other side understand. nehal -----Original Message----- From: David McKen [mailto:ci...@ya...] Sent: Saturday, October 18, 2003 12:38 PM To: Dev-Cpp Mailing List Subject: Re: [Dev-C++] serialization question Ok handler acts like a translator? a simple handshake would work. E.g. <Connection Established to client that accepts binary data> Handler: Hello Client: Hello, I accept binary data. Handler: Very well I will send binary data. <Continue connection using binary> <Connection Established to client that does not ccepts binary data> Handler: Hello Client: Hello Handler: <Assume the client does not accept binary>. <Continue connection using ASCII> Using this method the client tells the server whether it is capable of accepting binary or not. The handler then sets up accordingly. What are you capable of changing/updating? the clients, the handler or the server? I do have another method but it requires changing the clients and the handler. Signed David McKen ----- Original Message ----- From: Nehal Shah <mailto:ns...@ix...> To: dev...@li... <mailto:dev...@li...> Sent: Friday, October 17, 2003 4:56 PM Subject: [Dev-C++] serialization question Hi All I have a question regarding serialization out. So here is the current working. Client<---->handler<----->Server in the current scenario whenever handler learns something from Server it first (because it is in network order) decodes the data then serializes it out and then spit it the client and and eventually client understands the ASCII format. In the new approach we are thinking of, not decoing anything at handler level but just sending binary data to the client and on the client side they will decode and store into the database. now what I do not understand is, if my handler sends binary format to the Client on the same connection on which sometimes client does accept the ASCII data how is the client going to diffrenciate between those two and what can I do to make it working in either case. Any suggestion/comments on this will be appreciate on this. thanks _____ Do you Yahoo!? The <http://shopping.yahoo.com/?__yltc=s%3A150000443%2Cd%3A22708228%2Cslk%3Atext %2Csec%3Amail> New Yahoo! Shopping - with improved product search |
|
From: Hossein H. <ult...@em...> - 2003-10-19 21:03:36
|
Hi Joe, > min = a[index] < min; I think PerW mentionned the right bug here, and his correction is also plausible. This compiles and runs, as bool values are automatically converted to numerals. If your contained type was something not having got a constructor getting bools (or anything bool is convertible to), then the code wouldn't compile. Furthermore, the book you mentioned is "Not Recommended." Just take a look to the following critique from ACCU, which is the best (at lease C++) critique: http://www.accu.org/cgi-bin/accu/rvout.cgi?from=0ti_p&file=p001790a (Don't click on it, just copy/pates it in the addresbar.) And as the final point, from Generic Programming standpoint, your code is poorly implemented. I recommend the following Bible to improve your Generic Programming skills: http://www.awprofessional.com/catalog/product.asp?session_id={5853690A-CEE4-4981-B350-524C8A28B7EA}&product_id={94C46B18-97C4-4143-BA92-E4156187A6D8} Regards, --Hossein -- __________________________________________________________ Sign-up for your own personalized E-mail at Mail.com http://www.mail.com/?sr=signup CareerBuilder.com has over 400,000 jobs. Be smarter about your job search http://corp.mail.com/careers |
|
From: Paul I. <pi...@ot...> - 2003-10-19 18:31:32
|
OROSZI Bal=E1zs <or...@vp...>:
> Coosa wrote:
> > I had today a lab test in C++ and one of the 10 questions was to writ=
e a=20
> > program which accepts a string input and reverse the words separately=
=20
> > between spaces and outputs it to the stream. I couldn=92t solve it in=
time=20
> > and I lost the marks for this section and went home and solved it.
>=20
> I GUESS this exercise could be a typical use of stack and stack=20
> operations: push, pop.
> First, have a stack implemented, which can handle arbitrary size, also=20
> implement push and pop. The rest of the task is simple:
> (draft)
>=20
> ch =3D read character;
> if (ch =3D=3D space){
> write each stack character using pop();
> write whitespace;
> }
> else{
> push(ch);
> }
>=20
> Make a loop of the above and that's all.
> Of course, if you need to take care of new lines and tabs too, then you=
=20
> can extend the first "if" statement, like:
> if (ch =3D=3D space || ch =3D=3D tab || ch =3D=3D newline, ...)
>=20
> Working implementations attached:
> - reverse.c
> It can work with any word-length.
> - reverse_simple.c
> This is more compact, however max word length is hard coded.
>=20
> Both read from stdin and write to stdout (redirect if you need). They=20
> read until EOF is read. Both are simple C programs, no C++ here. The=20
> stack implementation is primitive, no checking performed, however there=
=20
> should be no problem of that, due to the known use of the stack.
>=20
> Hope they help.
>=20
> --
> Greetings,
> Bal=E1zs
>=20
Agree, but why so complicated? The processor stack works fine in many cas=
es.
static char *str;
static int idx;
reverseWords(char ch, depth)
{
if ( ch =3D=3D ' ' || ch =3D=3D '\0' || ch =3D=3D <other blanks>)
{
return;
}
reverseWords(str[idx++], depth + 1);
cout << ch;
if (depth =3D=3D 0 && ch !=3D '\0')
{
cout << ' ';
reverseWords(str[idx++], 0)
}
}
call function with str -> read string, then
depth =3D 0;idx =3D 0;reverseWords(str[idx++], 0);
/Paul
|
|
From: Hossein H. <ult...@em...> - 2003-10-19 18:23:48
|
Hi Per, > 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 Waw, eagle eyes. But why should it call the const version? Thanks, --Hossein -- __________________________________________________________ Sign-up for your own personalized E-mail at Mail.com http://www.mail.com/?sr=signup CareerBuilder.com has over 400,000 jobs. Be smarter about your job search http://corp.mail.com/careers |
|
From: <or...@vp...> - 2003-10-19 14:19:54
|
Coosa wrote:
> 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.
I GUESS this exercise could be a typical use of stack and stack
operations: push, pop.
First, have a stack implemented, which can handle arbitrary size, also
implement push and pop. The rest of the task is simple:
(draft)
ch = read character;
if (ch == space){
write each stack character using pop();
write whitespace;
}
else{
push(ch);
}
Make a loop of the above and that's all.
Of course, if you need to take care of new lines and tabs too, then you
can extend the first "if" statement, like:
if (ch == space || ch == tab || ch == newline, ...)
Working implementations attached:
- reverse.c
It can work with any word-length.
- reverse_simple.c
This is more compact, however max word length is hard coded.
Both read from stdin and write to stdout (redirect if you need). They
read until EOF is read. Both are simple C programs, no C++ here. The
stack implementation is primitive, no checking performed, however there
should be no problem of that, due to the known use of the stack.
Hope they help.
--
Greetings,
Balázs
|
|
From: P.D. v. Z. <pa...@my...> - 2003-10-19 07:39:12
|
Hey,
This would do the trick in a much shorter manner:
#include <iostream>
#include <sstream>
#include <string>
using namespace std;
int main()
{
string strInput;
cout << "Original Name: ";
getline(cin, strInput);
istringstream strParse(strInput);
string::reverse_iterator it;
cout << "Reversed Name: ";
do
{
strParse >> strInput;
for (it = strInput.rbegin(); it != strInput.rend(); ++it)
cout << *it;
cout << " ";
} while (!strParse.eof());
cout << endl;
}
Note: I didn't put any "keep the window open" code in there, since I think
it's useless, and always run console apps from the command line anyway.
Regards,
Paul
________________________________
From: dev...@li...
[mailto:dev...@li...] On Behalf Of Coosa
Sent: Saturday, October 18, 2003 2:20 PM
To: dev...@li...
Subject: [Dev-C++] Simplification for my code please
Importance: High
Sensitivity: Confidential
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: Tim S. <ti...@we...> - 2003-10-19 07:19:23
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi Antonio, Hi List, Antonio MATTA wrote: > I was wondering if any of you has compiled the Meschach > mathematical > library using the newest version of Dev C++. I tried but failed at some point heres my error output: >>>>>>>>>>>>>>>>>>>>CODE>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> ranlib meschach.a gcc -c -O -DHAVE_CONFIG_H sparse.c sparse.c: In function `sp_set_val': sparse.c:95: `TYPE_SPMAT' undeclared (first use in this function) sparse.c:95: (Each undeclared identifier is reported only once sparse.c:95: for each function it appears in.) sparse.c: In function `sp_get': sparse.c:213: `TYPE_SPMAT' undeclared (first use in this function) sparse.c: In function `sp_free': sparse.c:269: `TYPE_SPMAT' undeclared (first use in this function) sparse.c: In function `sp_copy': sparse.c:331: `TYPE_SPMAT' undeclared (first use in this function) sparse.c: In function `sp_add': sparse.c:489: `TYPE_SPROW' undeclared (first use in this function) sparse.c:496: `TYPE_SPMAT' undeclared (first use in this function) sparse.c: In function `sp_sub': sparse.c:536: `TYPE_SPROW' undeclared (first use in this function) sparse.c:543: `TYPE_SPMAT' undeclared (first use in this function) sparse.c: In function `sp_mltadd': sparse.c:584: `TYPE_SPROW' undeclared (first use in this function) sparse.c:591: `TYPE_SPMAT' undeclared (first use in this function) sparse.c: In function `sp_smlt': sparse.c:624: `TYPE_SPMAT' undeclared (first use in this function) sparse.c: In function `sp_copy2': sparse.c:667: `TYPE_SPROW' undeclared (first use in this function) sparse.c:675: `TYPE_SPMAT' undeclared (first use in this function) sparse.c: In function `sp_resize': sparse.c:752: `TYPE_SPMAT' undeclared (first use in this function) make: *** [sparse.o] Error 1 <<<<<<<<<<<<<<<<<<<<<<CODE<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< I didn't looked further into the code, because there is a lack of time for me atm. so long Tim - - -- ~WE ARE TEH BORG! ~ RESSISTANCE IS FUTILE! ~ http://we-are-teh-b.org/~tim/borg.key -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (MingW32) - WinPT 0.5.6 iD8DBQE/kjvUsMXChvH2qP0RAjcRAJ0a+UYbfh8DZJEzNcRJYJGPL4CtfgCffJLN ZFpXv9QYhp2dUPLiK+FTdJE= =jTCM -----END PGP SIGNATURE----- |
|
From: Antonio M. <am...@at...> - 2003-10-19 05:41:14
|
Hi everybody, I was wondering if any of you has compiled the Meschach mathematical library using the newest version of Dev C++. Thanks, Antonio. ------------------------------------------------- This mail sent through IMP: atlas.puj.edu.co |
|
From: David M. <ci...@ya...> - 2003-10-18 19:39:21
|
Ok handler acts like a translator? a simple handshake would work. E.g. <Connection Established to client that accepts binary data> Handler: Hello Client: Hello, I accept binary data. Handler: Very well I will send binary data. <Continue connection using binary> <Connection Established to client that does not ccepts binary data> Handler: Hello Client: Hello Handler: <Assume the client does not accept binary>. <Continue connection using ASCII> Using this method the client tells the server whether it is capable of accepting binary or not. The handler then sets up accordingly. What are you capable of changing/updating? the clients, the handler or the server? I do have another method but it requires changing the clients and the handler. Signed David McKen ----- Original Message ----- From: Nehal Shah To: dev...@li... Sent: Friday, October 17, 2003 4:56 PM Subject: [Dev-C++] serialization question Hi All I have a question regarding serialization out. So here is the current working. Client<---->handler<----->Server in the current scenario whenever handler learns something from Server it first (because it is in network order) decodes the data then serializes it out and then spit it the client and and eventually client understands the ASCII format. In the new approach we are thinking of, not decoing anything at handler level but just sending binary data to the client and on the client side they will decode and store into the database. now what I do not understand is, if my handler sends binary format to the Client on the same connection on which sometimes client does accept the ASCII data how is the client going to diffrenciate between those two and what can I do to make it working in either case. Any suggestion/comments on this will be appreciate on this. thanks --------------------------------- Do you Yahoo!? The New Yahoo! Shopping - with improved product search |
|
From: Nehal S. <ns...@ix...> - 2003-10-18 15:31:12
|
Hi All I have a question regarding serialization out. So here is the current working. Client<---->handler<----->Server in the current scenario whenever handler learns something from Server it first (because it is in network order) decodes the data then serializes it out and then spit it the client and and eventually client understands the ASCII format. In the new approach we are thinking of, not decoing anything at handler level but just sending binary data to the client and on the client side they will decode and store into the database. now what I do not understand is, if my handler sends binary format to the Client on the same connection on which sometimes client does accept the ASCII data how is the client going to diffrenciate between those two and what can I do to make it working in either case. Any suggestion/comments on this will be appreciate on this. thanks |