dev-cpp-users Mailing List for Dev-C++ (Page 358)
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-07-03 12:33:08
|
I don't know much about sprintf, but maybe it it trying to write the value
of n into your 3d% bit ?
Try putting the \n command in another printf statement - this should give
the same effect.
Daniel
>From: "Jorge Abramian" <jab...@ma...>
>Reply-To: <jab...@ma...>
>To: <dev...@li...>
>Subject: [Dev-C++] (no subject)
>Date: Thu, 3 Jul 2003 07:02:26 -0400
>
>Hi,
>
>I wrote this piece of code willing that the numbers be written in different
>lines. However, the linefeed does not work. Any hint?
>
>///
>...
>#define <stdio.h>
>...
> hFile = CreateFile(szFileName, GENERIC_WRITE, 0, 0,
> CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, 0);
>
> for (loop=0;loop<Number_of_Points;loop++)
> {
> DWORD dWritten;
> sprintf (temp,"%3d\n\r",ran1[loop]);
> WriteFile(hFile, temp, sizeof(temp),&dWritten, NULL);
> }
>
>/////
>Thanks a lot
>
>JEA
>
>
>-------------------------------------------------------
>This SF.Net email sponsored by: Free pre-built ASP.NET sites including
>Data Reports, E-commerce, Portals, and Forums are available now.
>Download today and enter to win an XBOX or Visual Studio .NET.
>http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01
>_______________________________________________
>Dev-cpp-users mailing list
>Dev...@li...
>TO UNSUBSCRIBE: http://www.noicys.cjb.net/devcpp/ub.htm
>https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
_________________________________________________________________
Express yourself with cool emoticons - download MSN Messenger today!
http://www.msn.co.uk/messenger
|
|
From: Per W. <pw...@ia...> - 2003-07-03 11:28:26
|
Don't do sizeof(temp).
You should write strlen(temp) characters.
Normally, it would be easier with:
f = fopen(szFileName,"wt");
...
for (loop = 0; loop < Number_of_Points; loop++)
fprintf(f,"%3d\n",ram1[loop]);
fprintf() will automatically adjust the '\n' to a '\r\n' on a windows
machine, and a single '\r' on a Mac.
/Per W
On Thu, 3 Jul 2003, Jorge Abramian wrote:
> Hi,
>
> I wrote this piece of code willing that the numbers be written in different lines. However, the linefeed does not work. Any hint?
>
> ///
> ...
> #define <stdio.h>
> ...
> hFile = CreateFile(szFileName, GENERIC_WRITE, 0, 0,
> CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, 0);
>
> for (loop=0;loop<Number_of_Points;loop++)
> {
> DWORD dWritten;
> sprintf (temp,"%3d\n\r",ran1[loop]);
> WriteFile(hFile, temp, sizeof(temp),&dWritten, NULL);
> }
>
> /////
> Thanks a lot
>
> JEA
>
>
> -------------------------------------------------------
> This SF.Net email sponsored by: Free pre-built ASP.NET sites including
> Data Reports, E-commerce, Portals, and Forums are available now.
> Download today and enter to win an XBOX or Visual Studio .NET.
> http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01
> _______________________________________________
> Dev-cpp-users mailing list
> Dev...@li...
> TO UNSUBSCRIBE: http://www.noicys.cjb.net/devcpp/ub.htm
> https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
>
|
|
From: Jorge A. <jab...@ma...> - 2003-07-03 11:02:45
|
Hi,
I wrote this piece of code willing that the numbers be written in different lines. However, the linefeed does not work. Any hint?
///
...
#define <stdio.h>
...
hFile = CreateFile(szFileName, GENERIC_WRITE, 0, 0,
CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, 0);
for (loop=0;loop<Number_of_Points;loop++)
{
DWORD dWritten;
sprintf (temp,"%3d\n\r",ran1[loop]);
WriteFile(hFile, temp, sizeof(temp),&dWritten, NULL);
}
/////
Thanks a lot
JEA
|
|
From: <sol...@ya...> - 2003-07-02 17:22:10
|
>OK, I have downloaded 4.9.8.0 and updated to 4.9.8.1. Everything looks good >except for one nit i noticed, Packman and VUpdate don't seem to be in sync. >I successfully added the ImageLib and WxWindows packages using Packman but >VUpdate still shows them as available when I ask it to look for packages. > > I >would assume that if Packman has installed these packages that VUpdate >shouldn't be showing them. > vUpdate considers what is installed based on which packages had been downloaded with it, if you downloaded it without vUpdated it won't know it is installed. They're not sync. Pakage manager is part of Dev by dev team, vUpdate is done by a helper. (N.B.:He left the project some weeks ago, so dev's developers announced they'll substitue vUpdate and maintain its functionality) |
|
From: Edward D. <edd...@tr...> - 2003-07-02 04:28:27
|
> Message: 3 > Date: Tue, 01 Jul 2003 18:20:57 +0200 > From: =?ISO-8859-1?Q?Carlos_Garc=EDa_del_Monte?= <sol...@ya...> > To: dev-cpp-users <dev...@li...> > Subject: Re: [Dev-C++] DevPak > > As said by Westernak and Colin Laplace, the version 4.9.8.0 is far > better than 4.0, it's worth the download. OK, I have downloaded 4.9.8.0 and updated to 4.9.8.1. Everything looks good except for one nit i noticed, Packman and VUpdate don't seem to be in sync. I successfully added the ImageLib and WxWindows packages using Packman but VUpdate still shows them as available when I ask it to look for packages. I would assume that if Packman has installed these packages that VUpdate shouldn't be showing them. Since I am a newbie, a few more questions and/or initial comments. It would be nice if, after installing a package, that package's help were somehow added into the Dev-C++ help system. Which reminds me: how do I find help about the packages I have installed ? The current Dev-C++ help is sparse at best ( some Under Construction topics which I can forgive because it is Beta ) and I have installed various packages. Where does the help for using those packages exist ? I am particularly interested in figuring out how to use WxWindows and not seeming to have any help for it as part of the DevPak is not amusing. |
|
From: xRxIxPx <xr...@gm...> - 2003-07-01 19:02:11
|
At 13:30 2003-07-01 -0300, Denise N.R. Azevedo wrote:
>Hi Avik<?xml:namespace prefix =3D o ns =3D=20
>"urn:schemas-microsoft-com:office:office" />
>
>
>
>I got messages like this:
>
> [linker error] undefined reference to "jpeg functions"
>
>
>
>But, it had compiled correctly, and I have added the library in the link=20
>option
>-----Mensagem original-----
>De: dev...@li...=20
>[mailto:dev...@li...]Em nome de Avik Ghose
>Enviada em: ter=E7a-feira, 1 de julho de 2003 12:54
>Para: Denise N.R. Azevedo; dev...@li...
>Assunto: Re: [Dev-C++] Imagelib
>
>Hi Denise,
>can you tell what exact kind of error messages you are getting?
Hi there. jpeglib is a little bit butterfingers. Its headers have no=20
checking for c++ environment. You got to know, that jpeglib is a C library,=
=20
and thus, you should include them inside an extern "C" block. Just like=
this:
extern "C" {
#include "jpeglib.h"
}
The header also doesn't really want to run together with some standard C++=
=20
includes and tries to redefine Types and stuff. Maybe it will be fixed=20
someday...
|
|
From: Denise N.R. A. <de...@dg...> - 2003-07-01 16:53:03
|
Hi Avik
I got messages like this:
[linker error] undefined reference to "jpeg functions"
But, it had compiled correctly, and I have added the library in the link
option
Thanks for you interest
Denise
-----Mensagem original-----
De: dev...@li...
[mailto:dev...@li...]Em nome de Avik Ghose
Enviada em: ter=E7a-feira, 1 de julho de 2003 12:54
Para: Denise N.R. Azevedo; dev...@li...
Assunto: Re: [Dev-C++] Imagelib
Hi Denise,
can you tell what exact kind of error messages you are getting?
"Denise N.R. Azevedo" <de...@dg...> wrote:
I have made a download of imagelib and I have used libtiff. Now, I'm
trying
to use libjpeg but I=B4m having problems in linking my source with th=
e
library.
I put the library in the linker option.
Can, please, anybody help me?
Thanks
Denise Azevedo
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.493 / Virus Database: 292 - Release Date: 25/6/2003
> ATTACHMENT part 2 application/ms-tnef name=3Dwinmail.dat
Thanx and Regards
Avik Ghose
SMS using the Yahoo! Messenger; Download latest version.
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.493 / Virus Database: 292 - Release Date: 25/6/2003
|
|
From: <sol...@ya...> - 2003-07-01 16:22:10
|
As said by Westernak and Colin Laplace, the version 4.9.8.0 is far better than 4.0, it's worth the download. |
|
From: Per W. <pw...@ia...> - 2003-07-01 15:58:50
|
I would say that users of version 4.0 hardly exists. There is too large a difference between the two versions for someone to seriously consider using the 4.0 version - at least after a compare between the two. /Per W On Mon, 30 Jun 2003, Edward Diener wrote: > > Message: 10 > > From: Colin Laplace <ha...@bl...> > > Reply-To: ha...@bl... > > To: dev...@li... > > Subject: Re: [Dev-C++] DevPak > > Date: Tue, 1 Jul 2003 00:42:35 +0200 > > > > Hello, > > > >> The Package Manager has no ability to add packages, only to remove > >> them. > >> Once again, how do I add a DevPak to dev-cpp ? Double-clicking > >> doesn't do > >> it so there must be a way. > > > > It seems you are not using a recent 4.9.X version, so your package > > manager > > doesn't recognize the new DevPaks. > > No, I am not using 4.9.X. I downloaded the 4.0 version since all other > versions say Beta. I assumed that the DevPak distributions work with this > last non-Beta version. Shouldn't the website at least explain that any > packages in DevPak format do not work with version 4.0 ? If that is the > case, how do users of version 4.0 actually install packages ? > > > > ------------------------------------------------------- > This SF.Net email sponsored by: Free pre-built ASP.NET sites including > Data Reports, E-commerce, Portals, and Forums are available now. > Download today and enter to win an XBOX or Visual Studio .NET. > http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01 > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > TO UNSUBSCRIBE: http://www.noicys.cjb.net/devcpp/ub.htm > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > |
|
From: <a_g...@ya...> - 2003-07-01 15:54:07
|
Hi Denise, can you tell what exact kind of error messages you are getting? "Denise N.R. Azevedo" <de...@dg...> wrote:I have made a download of imagelib and I have used libtiff. Now, I'm trying to use libjpeg but I´m having problems in linking my source with the library. I put the library in the linker option. Can, please, anybody help me? Thanks Denise Azevedo --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.493 / Virus Database: 292 - Release Date: 25/6/2003 > ATTACHMENT part 2 application/ms-tnef name=winmail.dat Thanx and Regards Avik Ghose SMS using the Yahoo! Messenger;Download latest version. |
|
From: Dondolo M. <MDo...@OL...> - 2003-07-01 14:45:42
|
I managed to find a solution.
I create a shotcut and point it to my pc eg....(
\\myipaddress\myfolderWithDatabase\readapplication.exe
<file://\\myipaddress\myfolderWithDatabase\readapplication.exe> )
I then only send the shortcut to them.
Thanks anyway
-----Original Message-----
From: Dondolo Mpho [mailto:MDo...@OL...]
Sent: 01 July 2003 10:09 AM
To: dev...@li...
Subject: [Dev-C++] WriteToReadFrom
Hi all,
I recently developed a database with all my collegues contact details. I
wrote 2 applications
1) to writer data to file
2) to read data from file
//File writer
ofstream create("mpho");
create<<"Name : Mpho Dondolo\n"
<<"Team : Service Hub\n"
<<"Title : Support Analyst\n"
<<"Group: CSC.CTN.POPS.CLIENTSERVICES\n"
<<"Ext : 30059\n"
<<"Cell : 2784 317 0045\n";
create.close();
//end of file write
//file reader
cout<<"Enter name only :";
cin>>name1;
system("cls");
#include "limpho.h"
ifstream read(name);
if(!read) //if file does not exist
{
cerr<<"\t\t--------------------------------------\n"
<<"\t\t**NAME ERROR:THE NAME DOES NOT EXIST**\n"
<<"\t\t--------------------------------------\n"
<<"\t\tEither, you have spelt the name incorrectly,
\n"
<<"\t\tor the name is not yet on the Name Tel\n"
<<"\t\tdatabase. To have a name added to Name Tel,
Please\n"
<<"\t\temail me, with the details, at
<mailto:mdo...@cs...> mdo...@cs...";
}
cin.ignore(1,'\n'); //eat away the newline command
char ch;
while(read.get(ch))
cout<<ch;
read.close();
The help that I need.
I realised that if my xt, for example was to change, then I would have to
re-send the entire write file application to everybody I sent the program
to.
I only want to send them the interface(file reader) and store the database
on my pc. I have about 200 names on the database.
how can I get the reader to read from the database(on my pc) by just typing
in the search criteria (in my case, the name).
I know that I can achieve this by getting the user to type, for example
\\MyIpAddress\The Folder\name, where the file name would be
ofstream create( \\MyIpAddress\The <file://\\MyIpAddress\The Folder\name>
Folder\name);
Please help
Mpho Dondolo
Support Analyst
CSC Computer Sciences (South Africa) (Pty) Ltd
Tel: +27 21 5030059
Fax: +27 21 5095619
Email:MDo...@ol...
Email: MDo...@cs...
|
|
From: Denise N.R. A. <de...@dg...> - 2003-07-01 14:27:54
|
I have made a download of imagelib and I have used libtiff. Now, I'm tryi= ng to use libjpeg but I=B4m having problems in linking my source with the library. I put the library in the linker option. Can, please, anybody help me? Thanks=20 Denise Azevedo --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.493 / Virus Database: 292 - Release Date: 25/6/2003 =20 |
|
From: David M. <ci...@ya...> - 2003-07-01 13:29:07
|
Thanks but I already did that part.
I am relatively new to the STL (I understand most of the
concepts) and am teaching myself by using the refrence
pages on SGI's web site. This works for the containers but
is not so good for the algorithms. I was more looking for
something in the STL that would have made this job a little
easier.
Thanks for the Code Ioannis, however I finished writing
that section of the code up about half-an-hour after I
recieved your first e-mail. this is the layout of the class
that I am building.
typedef int (*func_ptr) (PC_CHAR *, string);
class CMD_TABLE {
public:
CMD_TABLE();
~CMD_TABLE();
void insert(string, func_ptr);
func_ptr lookup(string);
private:
//Was hoping to upgrade this to a hash_map.
//Seems Visual C++ lacks the hash_map header
//Until I can convert the library we are using to
//g++ I hav to use VC. :(
map <string, func_ptr, str_lessthan> cmd_table;
multimap <string, func_ptr, str_lessthan>
reverse_cmd_table;
};
--- Ioannis Vranos <iv...@em...> wrote:
> > -----Original Message-----
> > From: Ioannis Vranos [mailto:iv...@em...]
> > Sent: Monday, June 30, 2003 7:55 PM
> > To: 'Dev-C Mailing List'
> > Subject: RE: [Dev-C++] Reverse Map lookup.
> >
> >
> > > -----Original Message-----
> > > From: dev...@li...
> > > [mailto:dev...@li...] On
> Behalf
> > > Of David McKen
> > > Sent: Monday, June 30, 2003 6:27 PM
> > > To: Dev-C Mailing List
> > > Subject: [Dev-C++] Reverse Map lookup.
>
>
> I had better tell you how you will do it:
>
>
> // Assuming you have stored function addresses in void *.
> map<string, void *>whatever;
>
>
> Let's assume you are looking for a specific address to
> find the string.
>
>
> A map iterator consists of a pair<R,T> which is a struct
> having 2 pointers,
> first and last, first potining to the first elemenet
> (key) and last
> whichh points to the second.
>
>
>
> // Target value
> void *tval=something;
>
>
> for(map<string, void *>const_iterator p=whatever.begin();
> p!=whatever.end();
> ++p)
> {
> // You found the val
> if(p->last==tval)
> //do whatever you want to do with p->first
> }
>
>
>
> I hope this helps David.
>
>
>
>
>
>
> Ioannis Vranos
>
> * Programming pages: http://www.noicys.freeurl.com
> * Alternative URL 1: http://run.to/noicys
> * Alternative URL 2: http://www.noicys.cjb.net
>
>
>
>
> -------------------------------------------------------
> This SF.Net email sponsored by: Free pre-built ASP.NET
> sites including
> Data Reports, E-commerce, Portals, and Forums are
> available now.
> Download today and enter to win an XBOX or Visual Studio
> .NET.
>
http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01
> _______________________________________________
> Dev-cpp-users mailing list
> Dev...@li...
> TO UNSUBSCRIBE: http://www.noicys.cjb.net/devcpp/ub.htm
>
https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
=====
Signed
David Mcken
Life Sucks
Live with it
__________________________________
Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo.
http://search.yahoo.com
|
|
From: Colin L. <ha...@bl...> - 2003-07-01 12:18:14
|
> No, I am not using 4.9.X. I downloaded the 4.0 version since all other > versions say Beta. I assumed that the DevPak distributions work with this > last non-Beta version. Shouldn't the website at least explain that any > packages in DevPak format do not work with version 4.0 ? If that is the > case, how do users of version 4.0 actually install packages ? Well although 4.9.8.0 is still beta, I would really recommend it over version 4.0, which is very old now. You are right with the fact that there is not a lot of info on packages (how do they work and on which version of Dev-C++, etc...) but that should be corrected with the new Dev-C++ site coming up soon Greetings, Colin > > > ------------------------------------------------------- > This SF.Net email sponsored by: Free pre-built ASP.NET sites including > Data Reports, E-commerce, Portals, and Forums are available now. > Download today and enter to win an XBOX or Visual Studio .NET. > http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01 > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > TO UNSUBSCRIBE: http://www.noicys.cjb.net/devcpp/ub.htm > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users |
|
From: Dondolo M. <MDo...@OL...> - 2003-07-01 08:09:24
|
Hi all,
I recently developed a database with all my collegues contact details. I
wrote 2 applications
1) to writer data to file
2) to read data from file
//File writer
ofstream create("mpho");
create<<"Name : Mpho Dondolo\n"
<<"Team : Service Hub\n"
<<"Title : Support Analyst\n"
<<"Group: CSC.CTN.POPS.CLIENTSERVICES\n"
<<"Ext : 30059\n"
<<"Cell : 2784 317 0045\n";
create.close();
//end of file write
//file reader
cout<<"Enter name only :";
cin>>name1;
system("cls");
#include "limpho.h"
ifstream read(name);
if(!read) //if file does not exist
{
cerr<<"\t\t--------------------------------------\n"
<<"\t\t**NAME ERROR:THE NAME DOES NOT EXIST**\n"
<<"\t\t--------------------------------------\n"
<<"\t\tEither, you have spelt the name incorrectly,
\n"
<<"\t\tor the name is not yet on the Name Tel\n"
<<"\t\tdatabase. To have a name added to Name Tel,
Please\n"
<<"\t\temail me, with the details, at
<mailto:mdo...@cs...> mdo...@cs...";
}
cin.ignore(1,'\n'); //eat away the newline command
char ch;
while(read.get(ch))
cout<<ch;
read.close();
The help that I need.
I realised that if my xt, for example was to change, then I would have to
re-send the entire write file application to everybody I sent the program
to.
I only want to send them the interface(file reader) and store the database
on my pc. I have about 200 names on the database.
how can I get the reader to read from the database(on my pc) by just typing
in the search criteria (in my case, the name).
I know that I can achieve this by getting the user to type, for example
\\MyIpAddress\The Folder\name, where the file name would be
ofstream create( \\MyIpAddress\The Folder\name <file://\\MyIpAddress\The
Folder\name> );
Please help
Mpho Dondolo
Support Analyst
CSC Computer Sciences (South Africa) (Pty) Ltd
Tel: +27 21 5030059
Fax: +27 21 5095619
Email:MDo...@ol...
Email: MDo...@cs...
|
|
From: Ioannis V. <iv...@em...> - 2003-07-01 05:21:30
|
> -----Original Message-----
> From: Ioannis Vranos [mailto:iv...@em...]=20
> Sent: Monday, June 30, 2003 7:55 PM
> To: 'Dev-C Mailing List'
> Subject: RE: [Dev-C++] Reverse Map lookup.
>=20
>=20
> > -----Original Message-----
> > From: dev...@li...=20
> > [mailto:dev...@li...] On Behalf=20
> > Of David McKen
> > Sent: Monday, June 30, 2003 6:27 PM
> > To: Dev-C Mailing List
> > Subject: [Dev-C++] Reverse Map lookup.
I had better tell you how you will do it:
// Assuming you have stored function addresses in void *.
map<string, void *>whatever;
Let's assume you are looking for a specific address to find the string.
A map iterator consists of a pair<R,T> which is a struct having 2 =
pointers,
first and last, first potining to the first elemenet (key) and last=20
whichh points to the second.
// Target value
void *tval=3Dsomething;
for(map<string, void *>const_iterator p=3Dwhatever.begin(); =
p!=3Dwhatever.end();
++p)
{
// You found the val
if(p->last=3D=3Dtval)
//do whatever you want to do with p->first
}
I hope this helps David.
Ioannis Vranos
=20
* Programming pages: http://www.noicys.freeurl.com
* Alternative URL 1: http://run.to/noicys
* Alternative URL 2: http://www.noicys.cjb.net
|
|
From: Edward D. <edd...@tr...> - 2003-07-01 03:59:30
|
> Message: 10 > From: Colin Laplace <ha...@bl...> > Reply-To: ha...@bl... > To: dev...@li... > Subject: Re: [Dev-C++] DevPak > Date: Tue, 1 Jul 2003 00:42:35 +0200 > > Hello, > >> The Package Manager has no ability to add packages, only to remove >> them. >> Once again, how do I add a DevPak to dev-cpp ? Double-clicking >> doesn't do >> it so there must be a way. > > It seems you are not using a recent 4.9.X version, so your package > manager > doesn't recognize the new DevPaks. No, I am not using 4.9.X. I downloaded the 4.0 version since all other versions say Beta. I assumed that the DevPak distributions work with this last non-Beta version. Shouldn't the website at least explain that any packages in DevPak format do not work with version 4.0 ? If that is the case, how do users of version 4.0 actually install packages ? |
|
From: Per W. <pw...@ia...> - 2003-06-30 23:10:50
|
Wall time is time of day. CPU time is amount of time a program has consumed. However, I was a bit fast to reply on clock(). That function returns CPU time and not wall time. /Per W On Tue, 1 Jul 2003, Vesa-Matti wrote: > What=B4s this so called wall time? > > > > ------------------------------------------------------- > This SF.Net email sponsored by: Free pre-built ASP.NET sites including > Data Reports, E-commerce, Portals, and Forums are available now. > Download today and enter to win an XBOX or Visual Studio .NET. > http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01 > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > TO UNSUBSCRIBE: http://www.noicys.cjb.net/devcpp/ub.htm > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > |
|
From: Per W. <pw...@ia...> - 2003-06-30 23:10:46
|
Auto-indent here is what happens when you add new lines in the editor. To allow change of indenting in existing code, look for the program "indent". /Per W On Mon, 30 Jun 2003, Avik Ghose wrote: > That's the best the IDE can do :-). > > Vesa-Matti <bo...@mb...> wrote:To my previous question. > There=B4s a checkbox labeled Auto Indent in the Tools>>Editor options > menu, but checking it doesn=B4t seem to have any effect. Currently the ID= E > only prints everything to the same column regardless of curly brackets > and everything. > > Vesa-Matti wrote: > > Can Dev-C++ automatically indent the code? > > If it can, how it can be enabled/configured? > > > > > > ------------------------------------------------------- > This SF.Net email sponsored by: Free pre-built ASP.NET sites including > Data Reports, E-commerce, Portals, and Forums are available now. > Download today and enter to win an XBOX or Visual Studio .NET. > http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01 > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > TO UNSUBSCRIBE: http://www.noicys.cjb.net/devcpp/ub.htm > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > > > Thanx and Regards > Avik Ghose > SMS using the Yahoo! Messenger;Download latest version. |
|
From: Colin L. <ha...@bl...> - 2003-06-30 22:51:28
|
Hello, > The Package Manager has no ability to add packages, only to remove them. > Once again, how do I add a DevPak to dev-cpp ? Double-clicking doesn't do > it so there must be a way. It seems you are not using a recent 4.9.X version, so your package manager doesn't recognize the new DevPaks. Greetings, Colin > > > ------------------------------------------------------- > This SF.Net email sponsored by: Free pre-built ASP.NET sites including > Data Reports, E-commerce, Portals, and Forums are available now. > Download today and enter to win an XBOX or Visual Studio .NET. > http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01 > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > TO UNSUBSCRIBE: http://www.noicys.cjb.net/devcpp/ub.htm > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users |
|
From: <a_g...@ya...> - 2003-06-30 22:31:23
|
That's the best the IDE can do :-). Vesa-Matti <bo...@mb...> wrote:To my previous question. There´s a checkbox labeled Auto Indent in the Tools>>Editor options menu, but checking it doesn´t seem to have any effect. Currently the IDE only prints everything to the same column regardless of curly brackets and everything. Vesa-Matti wrote: > Can Dev-C++ automatically indent the code? > If it can, how it can be enabled/configured? > ------------------------------------------------------- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01 _______________________________________________ Dev-cpp-users mailing list Dev...@li... TO UNSUBSCRIBE: http://www.noicys.cjb.net/devcpp/ub.htm https://lists.sourceforge.net/lists/listinfo/dev-cpp-users Thanx and Regards Avik Ghose SMS using the Yahoo! Messenger;Download latest version. |
|
From: Vesa-Matti <bo...@mb...> - 2003-06-30 22:24:36
|
What=B4s this so called wall time? |
|
From: Per W. <pw...@ia...> - 2003-06-30 22:14:42
|
Note that this is just wall time, and doesn't have anything with CPU time to do. /Per W On Mon, 30 Jun 2003, David McKen wrote: > Maybe I can do a little better. > > clock in time.h returns the number of CPU clock 'ticks' > since the process started. Combine that with the macro > CLK_TCK which gives you the number of ticks per second you > can get the most accurate timer that your processor can > handle. And best of all it is ANSI compliant. > > --- Felipe Lima <li...@cp...> wrote: > > Is there any function or command or program that, under > > windows, returns me how much time of CPU processing it > > spent? Must be someting in order or ms(milisseconds) or > > less. > > > > > > Thankx. > > > > -=-=-=-=-=-=- > > Felipe Lima - Software Tester/ Developer > > CPTS - Software Test Research Center > > HP Brazil - PUCRS > > > ===== > Signed > David Mcken > > Life Sucks > Live with it > > __________________________________ > Do you Yahoo!? > The New Yahoo! Search - Faster. Easier. Bingo. > http://search.yahoo.com > > > ------------------------------------------------------- > This SF.Net email sponsored by: Free pre-built ASP.NET sites including > Data Reports, E-commerce, Portals, and Forums are available now. > Download today and enter to win an XBOX or Visual Studio .NET. > http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01 > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > TO UNSUBSCRIBE: http://www.noicys.cjb.net/devcpp/ub.htm > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > |
|
From: Per W. <pw...@ia...> - 2003-06-30 22:03:17
|
Too fast answer :-) What I meant to say is that clock() requires the application to get the start value, so it can't retrieve all used time for a process. Also, depending on implementation you really have to take care of overflow. A third thing. It can't handle children. For that you need to call the times() function. The correct frequency of clock() is CLOCKS_PER_SEC. /Per W On Mon, 30 Jun 2003, David McKen wrote: > Maybe I can do a little better. > > clock in time.h returns the number of CPU clock 'ticks' > since the process started. Combine that with the macro > CLK_TCK which gives you the number of ticks per second you > can get the most accurate timer that your processor can > handle. And best of all it is ANSI compliant. > > --- Felipe Lima <li...@cp...> wrote: > > Is there any function or command or program that, under > > windows, returns me how much time of CPU processing it > > spent? Must be someting in order or ms(milisseconds) or > > less. > > > > > > Thankx. > > > > -=-=-=-=-=-=- > > Felipe Lima - Software Tester/ Developer > > CPTS - Software Test Research Center > > HP Brazil - PUCRS > > > ===== > Signed > David Mcken > > Life Sucks > Live with it > > __________________________________ > Do you Yahoo!? > The New Yahoo! Search - Faster. Easier. Bingo. > http://search.yahoo.com > > > ------------------------------------------------------- > This SF.Net email sponsored by: Free pre-built ASP.NET sites including > Data Reports, E-commerce, Portals, and Forums are available now. > Download today and enter to win an XBOX or Visual Studio .NET. > http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01 > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > TO UNSUBSCRIBE: http://www.noicys.cjb.net/devcpp/ub.htm > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > |
|
From: Per W. <pw...@ia...> - 2003-06-30 21:57:27
|
No clock functions might be used, since they return wall time, and doesn't take into account how much CPU the actual program got. Under windows, you should use GetThreadTimes(), which will report amount of time spent in user and kernel for a single thread, or GetProcessTimes() that reports used time for a process. Under unix, the corresponding call is getrusage(). /Per W No clock functions might be used, since On Mon, 30 Jun 2003, Felipe Lima wrote: > Is there any function or command or program that, under windows, returns me how much time of CPU processing it spent? Must be someting in order or ms(milisseconds) or less. > > > Thankx. > > -=-=-=-=-=-=- > Felipe Lima - Software Tester/ Developer > CPTS - Software Test Research Center > HP Brazil - PUCRS |