dev-cpp-users Mailing List for Dev-C++ (Page 546)
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: Ioannis V. <no...@ho...> - 2002-08-02 02:37:12
|
I just received an email i had sent days ago. The mailing list behaves crazily. :) Ioannis * Ioannis Vranos * Programming pages: http://www.noicys.cjb.net * Alternative URL: http://run.to/noicys > -----Original Message----- > From: dev...@li... > [mailto:dev...@li...] On Behalf > Of Ioannis Vranos > Sent: Tuesday, July 30, 2002 3:09 PM > To: dev...@li... > Subject: RE: [Dev-C++] RE: Kylix 3 > > > > -----Original Message----- > > From: dev...@li... > > [mailto:dev...@li...] On Behalf > > Of Jorge Alzate > > Sent: Tuesday, July 30, 2002 2:32 PM > > To: dev...@li... > > Subject: [Dev-C++] RE: Kylix 3 > > > > I Don't think so, Really matters SPEED in a IDE like in > > games?, In other words: Languages like VB or Delphi are more > > than appropiated for GUI design in the opposite side those > > are futile, and then C++ and assembler they enter, if you > > like of real speed maybe you want to rewrite Dev-C++ in assembler :) > > > Yes, but when you get a general protection fault of the IDE in address > 0000xfff80000 because of some invalid memory usage, almost noone from > the list can detect and fix the problem (since we are mainly C/C++ > programmers). If it was written in C++ and thus we had a clue > of what is > going on in the code, Dev-C++ would be definately more stable. > > > The main problem is that its authors are mainly Pascal/Delphi > programmers. :) > > > Ioannis > > * Ioannis Vranos > * Programming pages: http://www.noicys.cjb.net > * Alternative URL: http://run.to/noicys > > > ------------------------------------------------------- > This sf.net email is sponsored by: Dice - The leading online job board > for high-tech professionals. Search and apply for tech jobs today! > http://seeker.dice.com/seeker.epl?rel_code=31 > _______________________________________________ > 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: Yeoh H. <ye...@ye...> - 2002-08-02 01:15:45
|
Hello, MSDN for ODBC using C http://msdn.microsoft.com/library/default.asp?url=/library/en-us/odbc/htm/od bcodbc_api_reference.asp Libodbc++ http://www.orcane.net/freeodbc++/ extract from site: <begin extract> Libodbc++ is a c++ class library for accessing SQL databases. It is designed with standards in mind, so it provides a subset of the well-known JDBC 2.0(tm) and runs on top of ODBC. It is distributed under the LGPL. The library has shown to compile and work on Linux, FreeBSD and win32 platforms. Any environment with a reasonable compiler, standard c++ library and ODBC Driver Manager should do. <end extract> Regards, Yeoh ~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~ ICT eBooks by Yeoh HS Free Downloads at http://www.yeohhs.com ~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~`~ ----- Original Message ----- From: Met...@ao... To: dev...@li... Sent: Thursday, August 01, 2002 6:02 PM Subject: [Dev-C++] Win32 C++ ODBC API Hi there Anybody knows where I could download some nice tutorials, APIs, code snippets for Win32 C++ ODBC ? Kind regards -- Seb |
|
From: Ioannis V. <no...@ho...> - 2002-08-02 01:10:39
|
> -----Original Message----- > From: dev...@li... > [mailto:dev...@li...] On Behalf > Of Colin Laplace > Sent: Thursday, August 01, 2002 7:12 PM > To: dev...@li... > Subject: Re: [Dev-C++] Porting Dev to C++ > > well if both can coexist and without loss then why not, but > as far i know C++ > Builder is not free, contrary to Delphi 6 (the personal > version is free). Yes there are only trial versions of Builder. However there are free Kylix 3 versions and soon will be available for downloading. Kylix 3 includes a C++ compiler too. Also what will you do if Delphi stops being free in the future? Ioannis * Ioannis Vranos * Programming pages: http://www.noicys.cjb.net * Alternative URL: http://run.to/noicys |
|
From: Colin L. <col...@wa...> - 2002-08-01 18:05:41
|
Hi ! This new beta version has just been released, and should correct most problems experienced with 4.9.4.1. What's new : * CPU Window (still in development) * ToDo list * Backtrace in debugging * Run to cursor * Folders in Project and Class Browser * Send custom commands to GDB * Makefile can now be customized. * Modified the behaviour of the -c param : -c <config file directory> * Saving of custom syntax parameter group * Possibility of changing compilers and tools filename. * -> Many bug fixes <- PS : i will not be available until the end of the month, happy holidays to all :) Greetings, Colin |
|
From: Jim W. <ma...@em...> - 2002-08-01 17:04:27
|
Hello, I asked the <http://newsgroups.borland.com/cgi-bin/dnewsweb?cmd=article&group=borlan d.public.cppbuilder.non-technical&item=67962&utag=> borland.public.cppbuilder.non-technical newsgroup yesterday whether there was a free Personal Edition. The answer was it cost $69 US. But there may eventually be a free Kylix 3.0 for Linux open source developers. Jim Watters -----Original Message----- From: dev...@li... [ <mailto:dev...@li...> mailto:dev...@li...] On Behalf Of Colin Laplace Hi, well if both can coexist and without loss then why not, but as far i know C++ Builder is not free, contrary to Delphi 6 (the personal version is free). Greetings, Colin |
|
From: Colin L. <col...@wa...> - 2002-08-01 16:22:39
|
Hi, > Yes but everything new could be written with C++ Builder which includes > a Delphi compiler. Builder C++ code and Delphi code can interoperate. > Well it is just my suggestion. I simply believe that Dev-C++ would be > more stable, and why not with more features, if it was a written in C++. > Naturally the decision belongs to you & the development team. I am just > a user. well if both can coexist and without loss then why not, but as far i know C++ Builder is not free, contrary to Delphi 6 (the personal version is free). Greetings, Colin |
|
From: Ioannis V. <no...@ho...> - 2002-08-01 14:46:18
|
> -----Original Message----- > From: dev...@li... > [mailto:dev...@li...] On Behalf > Of Colin Laplace > Sent: Thursday, August 01, 2002 3:57 PM > To: dev...@li... > Subject: Re: [Dev-C++] Porting Dev to C++ > > > You know i don't really like that idea. Dev-C++ is becoming quite > full-featured, so rewritting everything in C++ would be a > real pain, and not > really a benefit for the end user. Yes but everything new could be written with C++ Builder which includes a Delphi compiler. Builder C++ code and Delphi code can interoperate. Well it is just my suggestion. I simply believe that Dev-C++ would be more stable, and why not with more features, if it was a written in C++. Naturally the decision belongs to you & the development team. I am just a user. Ioannis * Ioannis Vranos * Programming pages: http://www.noicys.cjb.net * Alternative URL: http://run.to/noicys |
|
From: Colin L. <col...@wa...> - 2002-08-01 13:15:29
|
Hi, > Well the leader is currently very busy. :) I am learning C++ and .NET . > Also the Dev-C++ is copyright and child of Colin Laplace. My suggestion > of C++ coded Dev-C++ was introduced many times in the past by me to > persuade Colin. :) But Colin is a Delphi dude. well now i'm not really a "Delphi dude" anymore ;) but I still think it is a very productive tool for developing on Windows > I have not much time to > devote to a possible Dev-C++ rewritting in C++ from scratch, i am just > asking it from the people who have time and do this (the current Dev-C++ > development team Colin Laplace, Hongli Lai and the rest of people). I > have time only to bug fix things and add some facilities here and there > and say some suggestion. You know i don't really like that idea. Dev-C++ is becoming quite full-featured, so rewritting everything in C++ would be a real pain, and not really a benefit for the end user. Greetings, Colin |
|
From: Carlos d. M. <cg...@wo...> - 2002-08-01 11:07:38
|
Answers inline. Ioannis Vranos escribi=F3: > > -----Original Message----- > > From: dev...@li... > > [mailto:dev...@li...] On Behalf > > Of Carlos Garc?a del Monte > > Sent: Wednesday, July 31, 2002 9:51 PM > > To: dev-cpp-users-list > > Subject: Re to vectors: [Dev-C++] sizeof array > > > > > > > > vectors, of course, but I understood vectors weren't an > > option, that Mr > > Ramana wants arrays. > > But I don't like them very much, I'll need something that you > > would say > > "vectors!", but I tried them in a elevator simulation, and I got > > problems with STL, if I used vector (or list, now I don't > > remember when > > it was vector and when list) I had a problem, I tried to do > > it with list > > but then the list couldn't do one pass at it should be done. > > No insult intended, but 100% the problem was that you did not know how > to use them and not the vector itself. I don't see any insult. Of course this is a possibility I don't reject, b= ut if the code was wrogn I couldn't see any error (at lest clearly visible), and a coulpe of times in tiny experiments without possible error passing = my own objects, having included everything, I got that the object was not declared, or somethign similar, not declared vector<object, iterator> (th= is is not an exact cite, I don't remember exactly how was the message), and = it didn't accept a correct declaration of an iterator, (code just equal to t= he book, and which worked with other kinds of data). Sure I would make what I want with vectors, but I believe making my own containers will be easier than correct my use of them. However, I think t= hat there was a problem of one feature (I've forget what) that needed a capability of vectors, but another which has lists (or was at inverse). Perhaps there was no error in vectors or lists and the errors which sem related to them were consequence of another pair of strange errors: funct= ion called where no call was in the code, and calls to functions in other pla= ces where it was called. Perhaps a bad use of my objects with the vector, not with the vector itself. For example, people were objects of the vector, o= ne man enters, a man is created and added to the vector, when he does what h= ave to do, the vector's iterator goes to the next man, or starts the next cyc= le through men in the building, right, but when they pushed the elevator button, the destructor was called, and debugging I didn't see the program passing through a call to it!!! > > > > So now I am > > writing my own container library, since what I need is > > something rather > > complicated, and if for that I got problems, for which I > > need... woooo!. > > This is a radical step. Better learn what the standard library has to > offer you and then try to make your stuff. :) The standard library is > very wise, very generic and very high level. What I said is something about me, that I say perhaps is the case of othe= rs (or not). But for everyone who is reading this I must add that, naturally= , I don't recommend my solution if you are not completely decided to it, I of course recommend the yours: Learn to use STL!!!! > > > > Well, I haven't tested the mine in that simulation (now I've > > forget its > > details), but tests with another program work fine. So I say > > goodbye to > > STL, vector, list and so, and I'll make my own container > > classes, I hope > > much more powerful than STL. Out limits! > > You may be an excellent coder and write an excellent container, but i > strongly suspect that there is no need for that. > > > My classes have (or will have sooner or later) all capabilities of ST= L > > and more. > > :) > > Ioannis > > * Ioannis Vranos > * Programming pages: http://www.noicys.cjb.net > * Alternative URL: http://run.to/noicys > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > 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: Carlos d. M. <cg...@wo...> - 2002-08-01 10:52:31
|
There is another way for doing things which does not need special
characters.
You need declare two pointers of the kind of the array data, when you
have the last member of the first row you store its direction in the
first pointer, and when you get the last member of the whole array you
store its location in the second pointer. Then you pass to the function
the pointer which defines the array, the first pointer and the second.
Then you declare three ints (of course the first pointer and the first
pointer are optional, see below). And you work with them:
If you want know the size of each row (considering all have the same
size or can be considered as if they have) you substract the array
pointer to the first pointer and sum the size of one element, and store
it in the first int, then you make the same substituting the first
pointer with the second, and store the result in the second int, so now
you have the size of the whole array, and finally you divide the second
int by the first, so you have the number of rows. If you have arrays of
more than two dimensions you need adapt it.
For example:
kind *array, *endrow, *whole;
for(rownum = 0; rownum<number-of.rows-you-need; rownum++){
for(rowmem=0; rowmem<number-of-members-for-each-row; rowmem++){
array[rownum][rowmem];
if(rownum ==0)
endrow = &array[rownum][rowmem];
whole = &array[rownum][rowmem];
}
}
rowsize = endrow - array + sizeof(kind);
wholesize = whole - array + sizeof(kind);
numofrows = wholesize / rowsize;
Of course, if you're interested only in the size of the whole array you
forget rowssize and endrow and if(rownum==0).
|
|
From: Ioannis V. <no...@ho...> - 2002-08-01 10:11:59
|
> -----Original Message----- > From: dev...@li... > [mailto:dev...@li...] On Behalf > Of Ramana Kumar > Sent: Thursday, August 01, 2002 12:04 PM > To: C++ > Subject: RE: [Dev-C++] Porting Dev to C++ > > > Despite whatever any person may wish to say regarding porting > dev-c++ to c++ > being a waste of time, if there are enough people interested, > it doesn't > matter if certain people think it's a waste of time, we can > do it anyway. > I certainly see it as an interesting risk-free task that > would have many > benefits for the dev-c++ community, so let us get some ideas flowing. > i personally envisage starting an entirely new c++ project > from scratch > without using the dev-c++ delphi source very much, but > instead using the > compiled dev-c++ as a guide as to what we want our c++ version to do. > obviously, i think it would be good to write it using > dev-c++, but what was > that about builder? > also, i am a windows person, and i'm not sure what people on > other platforms > are wanting or doing, but i would be writing the c++ version almost > specifically for windows. who else knows windows programming? > i am quite > familiar with the win32 api, but have no clue about MFC or > other container > classes and i think they are messy. > ok, enough of that, we also need to think about > communication. we should > have a leader (i would suggest mr vranos) who keeps all the > project and > details and divides the task among other programmers then > collates their > code. > so are there enough interested people? Well the leader is currently very busy. :) I am learning C++ and .NET . Also the Dev-C++ is copyright and child of Colin Laplace. My suggestion of C++ coded Dev-C++ was introduced many times in the past by me to persuade Colin. :) But Colin is a Delphi dude. I have not much time to devote to a possible Dev-C++ rewritting in C++ from scratch, i am just asking it from the people who have time and do this (the current Dev-C++ development team Colin Laplace, Hongli Lai and the rest of people). I have time only to bug fix things and add some facilities here and there and say some suggestion. Thanks for the recommendation though, and those "leader" remarks. :)) Ioannis * Ioannis Vranos * Programming pages: http://www.noicys.cjb.net * Alternative URL: http://run.to/noicys |
|
From: <Met...@ao...> - 2002-08-01 10:02:59
|
Hi there Anybody knows where I could download some nice tutorials, APIs, code snippets for Win32 C++ ODBC ? Kind regards -- Seb |
|
From: Ioannis V. <no...@ho...> - 2002-08-01 10:02:07
|
> -----Original Message-----
> From: Ramana Kumar [mailto:ra...@my...]
> Sent: Thursday, August 01, 2002 11:57 AM
> To: Ioannis Vranos; C++
> Subject: RE: [Dev-C++] sizeof array
>
>
> Vectors would be great, except for the fact that i can't
> initialise them
> using {...}
> which is the only convenient way to do something like
> {
> "YOU'RE","YOU ARE",
> "I'M","I AM",
> }
> and i have checked that vectors can't be initialised by
> passing them an
> array.
Of course you can:
#include <vector>
#include <string>
int main()
{
using namespace std;
char temparray[4][20]={"YOU'RE","YOU ARE", "I'M","I AM"};
vector<string>array(&temparray[0], &temparray[4]);
}
> so, i have three options remaining.
> 1. this is quite inelegant, but since arrays are initialised
> with {...}, can
> i not pass a value in {} directly to the function so that the
> parameter is
> treated as a local array within the function?
You must understand something. Objects (including arrays) are passed by
reference only by using a pointer or reference. In the case of an built
in array it is a pointer or reference too its first element.
sizeof() does not see an array since an array is not passed, a variable
pointer pointing to the first element is passed. In case of C-style
strings you have not such a problem since there is '\0' and strlen().
But why mess with this C-style low level (and unecessary) stuff?
> 2. i assume this is not possible, but perhaps since the
> function receives a
> pointer to the first element of a array, i can somehow
> dereference this to
> get the whole array or something like that?
By dereferencing it you get the value of the pointed element (in your
example of the char).
> 3. this is what i will have to do soon... just write the array locally
> thanks for all your help so far
Or use standard library facilities. :)
Ioannis
* Ioannis Vranos
* Programming pages: http://www.noicys.cjb.net
* Alternative URL: http://run.to/noicys
|
|
From: Ioannis V. <no...@ho...> - 2002-08-01 09:40:10
|
> -----Original Message----- > From: dev...@li... > [mailto:dev...@li...] On Behalf > Of Daniel Glenfield > Sent: Wednesday, July 31, 2002 4:06 PM > To: ra...@my...; dev...@li... > Subject: RE: [Dev-C++] The error I receive (obj passing itself) > > > Yes that works fine, I did that already. I was just wondering > if it was > possible for an object to pass itself, and if so why was I > getting errors. If i recall well, you had defined the function to accept a reference and you were passing a pointer (adddress). But i thought you were told that. Ioannis * Ioannis Vranos * Programming pages: http://www.noicys.cjb.net * Alternative URL: http://run.to/noicys |
|
From: Ioannis V. <no...@ho...> - 2002-08-01 09:37:37
|
I do not know the GDB thing but i have to make your code ANSI C++
compliant. :)
Ioannis
-----Original Message-----
From: dev...@li...
[mailto:dev...@li...] On Behalf Of Vaclav
Kremen
Sent: Wednesday, July 31, 2002 5:44 PM
To: dev...@li...
Subject: [Dev-C++] Help me with debugging pls.
Hello all,
here is my short code:
#include <iostream.h>
#include <iostream>
#include <stdio.h>
Or better: #include <cstdio>
#include <stdlib.h>
Or better: #include <cstdlib>
int main (int argc, char *argv[])
{
int argc, char *argv[] are not used, so they are not needed.
using namespace std;
int x = 1000;
x = x*x;
cout << "Hello World!" << endl;
x = 1;
cout << "Press ENTER to continue... " << x <<endl;
getchar ();
or better: cin.ignore(); So <cstdio> is not needed.
return 0;
}
Ioannis
* Ioannis Vranos
* Programming pages: <http://www.noicys.cjb.net/>
http://www.noicys.cjb.net
* Alternative URL: <http://run.to/noicys> http://run.to/noicys
|
|
From: Ioannis V. <no...@ho...> - 2002-08-01 09:33:22
|
> -----Original Message----- > From: dev...@li... > [mailto:dev...@li...] On Behalf > Of Carlos Garc?a del Monte > Sent: Wednesday, July 31, 2002 9:51 PM > To: dev-cpp-users-list > Subject: Re to vectors: [Dev-C++] sizeof array > > > > vectors, of course, but I understood vectors weren't an > option, that Mr > Ramana wants arrays. > But I don't like them very much, I'll need something that you > would say > "vectors!", but I tried them in a elevator simulation, and I got > problems with STL, if I used vector (or list, now I don't > remember when > it was vector and when list) I had a problem, I tried to do > it with list > but then the list couldn't do one pass at it should be done. No insult intended, but 100% the problem was that you did not know how to use them and not the vector itself. > So now I am > writing my own container library, since what I need is > something rather > complicated, and if for that I got problems, for which I > need... woooo!. This is a radical step. Better learn what the standard library has to offer you and then try to make your stuff. :) The standard library is very wise, very generic and very high level. > Well, I haven't tested the mine in that simulation (now I've > forget its > details), but tests with another program work fine. So I say > goodbye to > STL, vector, list and so, and I'll make my own container > classes, I hope > much more powerful than STL. Out limits! You may be an excellent coder and write an excellent container, but i strongly suspect that there is no need for that. > My classes have (or will have sooner or later) all capabilities of STL > and more. :) Ioannis * Ioannis Vranos * Programming pages: http://www.noicys.cjb.net * Alternative URL: http://run.to/noicys |
|
From: Ramana K. <ra...@my...> - 2002-08-01 09:03:54
|
Despite whatever any person may wish to say regarding porting dev-c++ to c++ being a waste of time, if there are enough people interested, it doesn't matter if certain people think it's a waste of time, we can do it anyway. I certainly see it as an interesting risk-free task that would have many benefits for the dev-c++ community, so let us get some ideas flowing. i personally envisage starting an entirely new c++ project from scratch without using the dev-c++ delphi source very much, but instead using the compiled dev-c++ as a guide as to what we want our c++ version to do. obviously, i think it would be good to write it using dev-c++, but what was that about builder? also, i am a windows person, and i'm not sure what people on other platforms are wanting or doing, but i would be writing the c++ version almost specifically for windows. who else knows windows programming? i am quite familiar with the win32 api, but have no clue about MFC or other container classes and i think they are messy. ok, enough of that, we also need to think about communication. we should have a leader (i would suggest mr vranos) who keeps all the project and details and divides the task among other programmers then collates their code. so are there enough interested people? -----Original Message----- From: dev...@li... [mailto:dev...@li...]On Behalf Of Ioannis Vranos Sent: Wednesday, 31 July 2002 8:07 AM To: 'Dev-C++ Mailing List' Subject: RE: [Dev-C++] Porting Dev to C++ > -----Original Message----- > From: dev...@li... > [mailto:dev...@li...] On Behalf > Of Hongli Lai > Sent: Wednesday, July 31, 2002 12:47 AM > To: Abhijit Shylanath > Cc: Dev-C++ Mailing List > Subject: Re: [Dev-C++] Porting Dev to C++ > > > Abhijit Shylanath wrote: > > >So, is anyone willing to port to C++? > > > > > > > > You should rather ask: "So, is anyone willing to rewrite it in C++?" Well Builder includes a Delphi compiler too, so there is no need to rewrite everything from the beginning, but we can start converting it slowly, and write the new facilities in C++. The problem is.... since most of us do not know Delphi, and you only understand what is written you have to do the conversion. :) Anyway i am not insisting too much on Dev-C++ written in C++ project, but as a philosophical issue Dev-C++ would be more great if it was written in C++ (and so we had a clue of what is going on). Ioannis * Ioannis Vranos * Programming pages: http://www.noicys.cjb.net * Alternative URL: http://run.to/noicys ------------------------------------------------------- This sf.net email is sponsored by: Dice - The leading online job board for high-tech professionals. Search and apply for tech jobs today! http://seeker.dice.com/seeker.epl?rel_code=31 _______________________________________________ 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: Ramana K. <ra...@my...> - 2002-08-01 08:56:58
|
Vectors would be great, except for the fact that i can't initialise them
using {...}
which is the only convenient way to do something like
{
"YOU'RE","YOU ARE",
"I'M","I AM",
}
and i have checked that vectors can't be initialised by passing them an
array.
so, i have three options remaining.
1. this is quite inelegant, but since arrays are initialised with {...}, can
i not pass a value in {} directly to the function so that the parameter is
treated as a local array within the function?
2. i assume this is not possible, but perhaps since the function receives a
pointer to the first element of a array, i can somehow dereference this to
get the whole array or something like that?
3. this is what i will have to do soon... just write the array locally
thanks for all your help so far
ramana
-----Original Message-----
From: dev...@li...
[mailto:dev...@li...]On Behalf Of Ioannis
Vranos
Sent: Thursday, 1 August 2002 1:09 AM
To: 'Ramana Kumar'; 'C++'
Subject: RE: [Dev-C++] sizeof array
-----Original Message-----
From: dev...@li...
[mailto:dev...@li...] On Behalf Of Ramana Kumar
Sent: Wednesday, July 31, 2002 3:36 PM
To: Carlos Garc?a del Monte; C++
Subject: RE: [Dev-C++] sizeof array
thank you carlos
i had in fact thought of using a special array member at the end, and thank
you for illustrating implentation of this so beautifully.
i'm afraid this may have to be the way i do it in the end, unless i simply
don't pass the array and declare it locally.
Or use vector:
#include <iostream>
#include <vector>
void f(std::vector<std::vector<int> >&array)
{
using namespace std;
cout<<array.size()<<endl;
}
int main()
{
using namespace std;
/// 2-dimensional 100x50 int array initialised to 0
vector<vector<int> >arr(100, vector<int>(50));
f(arr);
}
but since the array is in fact a two-dimensional array full of instances of
my own String class, adding a "terminating character" will involve creating
too much arbitrary code for my liking. I am still dreaming of the
possibility of sizeof-ing the array with the built in operator, if anyone
knows how to do this correctly. In fact, i am highly curious about the
workings of the sizeof operator. I realize that since passing an array to a
function is actually passing a pointer to the first object ( is this x[0] or
x[0][0] in a multidimensional array?),
x[0] and &x[0][0]
the sizeof operator gets the size of that pointer... or does it? what are
you passing the operator when the array is local?
When the array is local and you pass the array's name you pass the array. A
function can accept only a pointer to the first object or a reference, so in
the function you pass the pointer variable (which points to the first
element of the array). As a result you get the size of the pointer variable
itself.
Ioannis
* Ioannis Vranos
* Programming pages: http://www.noicys.cjb.net
* Alternative URL: http://run.to/noicys
|
|
From: <Met...@ao...> - 2002-08-01 08:09:53
|
That works fine here. I just cut and copied this snippet of code into a simple project, make sure that the compiler was generating debugging information, compiled clean by CTRL+F9. Put a breakpoint on x init and start debugging (F8). then added a watch on it. I was able to step and see x evolution. Init to 1000 then 1000000 and 1 just after the "Hello world" console outting. Working on the latest version of DevCPP available, like you. Kind regards -- Seb |
|
From: <Met...@ao...> - 2002-08-01 08:03:44
|
Coa...@ms... wrote : > I am having problems with using the program. Every time I try to compile or > save a program, I get an error message reading: Access violation at address > 00514038 in module 'DEVCPP.exe'. Read of address FFFFFFFF. > I have the same problem trying to compile a single source file which is not part of a project. Just make an empty project then add your source and it'll be OK I think. Kind regards -- Seb |
|
From: Abhijit S. <mu...@gm...> - 2002-08-01 07:57:05
|
#include <conio_mingw.h> for conio under MingW32. -------------------------- "I doubt, therefore I might be." -------------------------- http://www.stopthehatred.com/ Checked with NAV 2002 http://mudeth.tripod.com ----- Original Message ----- From: Matthew Steen To: dev...@li... Sent: Thursday, August 01, 2002 8:04 AM Subject: [Dev-C++] help with conio functions Hello. I read the section on the website about conio.h functions. I deleted that line from a simple program to test it out, but now I get an error concerning the getch(); function. Is there a substitute for the getch; function? I am not creating a project, just a program, so I cannot change the project options. Thanks for any help! Matt Steen Get more from the Web. FREE MSN Explorer download : http://explorer.msn.com |
|
From: Matthew S. <Coa...@ms...> - 2002-08-01 02:32:46
|
Hello.
I read the section on the website about conio.h functions. I deleted tha=
t line from a simple program to test it out, but now I get an error conce=
rning the =20
getch(); function. Is there a substitute for the getch; function? I am =
not creating a project, just a program, so I cannot change the project op=
tions. Thanks for any help!
=
Matt SteenGet more from the Web. FREE MSN Explorer do=
wnload : http://explorer.msn.com
|
|
From: rchavez <rc...@so...> - 2002-07-31 23:44:38
|
If it's any reassurance I get the exact same error message when I run your code. But I don't know how to use the debugger so let me ask a related question: What's the best way to learn how to use the debugger? I tried the help function but it's a reference for those who know how. |
|
From: Matthew S. <Coa...@ms...> - 2002-07-31 20:02:39
|
Hello.
I am having problems with using the program. Every time I try to compile=
or save a program, I get an error message reading: Access violation at a=
ddress 00514038 in module 'DEVCPP.exe'. Read of address FFFFFFFF.
I do not understand what this error means or, more importantly, what I ca=
n do about it.
=
Matt SteenGet more from the Web. FREE MS=
N Explorer download : http://explorer.msn.com
|
|
From: Carlos d. M. <cg...@wo...> - 2002-07-31 18:55:11
|
vectors, of course, but I understood vectors weren't an option, that Mr Ramana wants arrays. But I don't like them very much, I'll need something that you would say "vectors!", but I tried them in a elevator simulation, and I got problems with STL, if I used vector (or list, now I don't remember when it was vector and when list) I had a problem, I tried to do it with list but then the list couldn't do one pass at it should be done. So now I am writing my own container library, since what I need is something rather complicated, and if for that I got problems, for which I need... woooo!. Well, I haven't tested the mine in that simulation (now I've forget its details), but tests with another program work fine. So I say goodbye to STL, vector, list and so, and I'll make my own container classes, I hope much more powerful than STL. Out limits! My classes have (or will have sooner or later) all capabilities of STL and more. |