dev-cpp-users Mailing List for Dev-C++ (Page 26)
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: Siva C. <siv...@ya...> - 2008-07-11 06:32:21
|
Hello All, I have some amount of code which treats pointers and unsigned int variables alike. I know it is not a good thing to do. However, I NEED to do something like that. My concern now is this - How do I migrate to a 64-bit machine without many changes to the code. I should still be allowed to use unsigned int and pointers interchangeably. Moreover, I want sizeof(unsigned int *) to be 4 bytes instead of 8 on a 64-bit machine. Is there a quick and neat way to do the adaption? Even otherwise, how should we be managing such problem? Thanks and regards, Siva Chandra |
From: tomas c. <tom...@ho...> - 2008-07-11 02:20:02
|
i have dev-cpp, its in spanish but ill try to traduce the error things... my file name is called "Problema1".. well i get this error: Circular Problema1 <- Problema1.o dependency dropped. C:\Dev-Cpp\Makefile.win [Build Error] [Problema1] Error 1 With more details: Compiler: Default compilerBuilding Makefile: "C:\Dev-Cpp\Makefile.win"executing make...make.exe -f "C:\Dev-Cpp\Makefile.win" allmake.exe: Circular Problema1 <- Problema1.o dependency dropped. gcc.exe -o Problema1 gcc.exe: no input files make.exe: *** [Problema1] Error 1 The code is: #include<iostream>#include<cstdlib>using namespace std; int a, b, c, d, e, f, g, h, i , j;int main(){cout << "Write 10 numbers:\n";cout << "Number 1:\n";cin >> a;cout << "Number 2:\n";cin >> b;cout << "Number 3:\n";cin >> c;cout << "Number 4:\n";cin >> d;cout << "Number 5:\n";cin >> e;cout << "Number 6:\n";cin >> f;cout << "Number 7:\n";cin >> g;cout << "Number 8:\n";cin >> h;cout << "Number 9:\n";cin >> i;cout << "Number 10:\n";cin >> j;int sum=a+b+c+d+e+f+g+h+i+j;cout << "The sum of this numbers is:" << sum << "\n";int average= sum/10;cout << "The average of this numbers is:" << average << "\n"; system("PAUSE");return 0;} hope you can help me...im trying to learn C++ but i have some problems like this one... thank you very much, Tomas Cordeviola _________________________________________________________________ ¿Aburrido? Ingresá ya y divertite como nunca en MSN Juegos. http://juegos.ar.msn.com/ |
From: João M. R. S. T. <ta...@fe...> - 2008-07-10 23:08:52
|
(Our apologies for cross-posting. We appreciate if you kindly distribute this information by your co-workers and colleagues.) *************************************************************************** Symposium Image Processing and Data Visualization 2nd South-East European Conference on Computational Mechanics (SEECCM 2009) Island of Rhodes, Greece, 22-24 June 2009 http://www.seeccm2009.org (A special interest conference of the European Community on Computational Methods in Applied Sciences (ECCOMAS) and of the International Association for Computational Mechanics (IACM)) *************************************************************************** Dear Colleague, Within the 2nd South-East European Conference on Computational Mechanics (SEECCM 2009), to be held in Island of Rhodes, Greece, in 22-24 June 2009, we are organizing the Symposium Image Processing and Data Visualization. The main goal of the Symposium Image Processing and Data Visualization is to provide a platform for communications among specialists from complementary fields such as mechanics, computational vision, mathematics, physics, informatics, computer graphics, bio-medical-practice, psychology, clinicians and industry. Participants in this symposium should present and discuss their proposed methods in the corresponding fields that are related to the symposium topics and explore the translational potentials of this emerging technological field. Hence, this symposium should be an excellent opportunity to refine ideas for future work and to establish constructive cooperation. Due to your research activities in the related fields, we are pleased to invite you to submit your work and participate in the Symposium Image Processing and Data Visualization. Topics of interest include (but are not restricted to): - Image Analysis; - Image Restoration, Compression, Segmentation and Description; - Object Tracking, Matching, Registration, Recognition and Reconstruction; - Visual Inspection; - 3D Vision; - Medical Imaging; - Data Processing, Modelling and Analysis; - Scientific Visualization; - Enhanced Visualization; - Human Computer Interaction; - Enhanced and Virtual Reality; - Simulation and Animation; - Software Development for Image Processing and Data Visualization; - Grid Computing in Image Processing and Data Visualization; - Applications of Image Processing and Data Visualization. Important dates and Instructions: - Deadline for submission one page abstract: 30 November 2008; - Authors notification: 31 December 2008; - Final contribution submission: 28 February 2009. - To submit your contribution, you should access the conference website at www.seeccm2009.org and select the Symposium Image Processing and Data Visualization or send your file by email to the organizers (ta...@fe..., ce...@st...). With kind regards, Yours sincerely, The Organizers, João Manuel R. S. Tavares (ta...@fe...) Faculty of Engineering of University of Porto, Porto, Portugal Christos E. Constantinou (ce...@st...) Stanford University, USA |
From: piyush g. <pec...@gm...> - 2008-07-04 14:44:57
|
Hi, Thanx Per and Kleber, for your advice. I used the gdb debugger and found out that a segmentation violation was occurring when i tried to reference a pointer used as a 1d array. On allocating memory using malloc for this pointer before referencing it, the problem was removed and the program executed to completion. There is some problem with the result, but i guess that would be due to some logical error in the code. Anyways, thanks again for your suggestions. Regards, Piyush Goswami On Fri, Jul 4, 2008 at 6:17 PM, Per Westermark <pw...@ia...> wrote: > Either run with gdb - I prefer an external debugger to the integration > built into Dev-C++ > > Or write trace output to stderr, and see between which printout your > program dies. > > Just note tha printf() doesn't work, since the output is buffered, so your > program can die with text lines pending in the buffer. > > /pwm > > On Fri, 4 Jul 2008, Kleber Eduardo Clemente wrote: > >> If you don't have any compilation error, the code will compile. >> But, maybe, you have an execution error. Then, in that part the program will close, because it doesn't understand that line. >> >> I think you need use "debbuger" to see where the program is closing. >> >> Regards, >> >> Kleber Eduardo Clemente >> Posto Avançado MRS - Datasul HCM >> Fone: (47) 3802-8848 >> Mail: kle...@da... >> Antes de imprimir este e-mail, pergunte-se: "É realmente necessário?" >> >> -----Mensagem original----- >> De: dev...@li... [mailto:dev...@li...] Em nome de piyush goswami >> Enviada em: sexta-feira, 4 de julho de 2008 07:04 >> Para: dev...@li... >> Assunto: [Dev-C++] Problem running .exe >> >> Hi, >> I have compiled a C source file using the Bloodshed devC++ >> (compilation takes place without any errors but a few warnings). On >> running the code, after incomplete execution, the following message is >> declared: >> '<name>.exe has encountered a problem and needs to close. We are sorry >> for the inconvenience.' >> >> I can't figure out why the code doesn't execute completely. It might >> be relevant that I am using Image Processing routines and thus, large >> arrays (512*512, and 4 of them) are declared in the code. The code >> stops executing before/during the step where i allocate memory using >> 'malloc' for the first 512*512 array (a pointer to a pointer is used a >> 2-d array). >> >> Any help would be greatly appreciated... >> thanx >> >> ------------------------------------------------------------------------- >> Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW! >> Studies have shown that voting for your favorite open source project, >> along with a healthy diet, reduces your potential for chronic lameness >> and boredom. Vote Now at http://www.sourceforge.net/community/cca08 >> _______________________________________________ >> 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 >> >> ------------------------------------------------------------------------- >> Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW! >> Studies have shown that voting for your favorite open source project, >> along with a healthy diet, reduces your potential for chronic lameness >> and boredom. Vote Now at http://www.sourceforge.net/community/cca08 >> _______________________________________________ >> Dev-cpp-users mailing list >> Dev...@li... >> TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm >> https://lists.sourceforge.net/lists/listinfo/dev-cpp-users >> > > |
From: Per W. <pw...@ia...> - 2008-07-04 12:48:08
|
Either run with gdb - I prefer an external debugger to the integration built into Dev-C++ Or write trace output to stderr, and see between which printout your program dies. Just note tha printf() doesn't work, since the output is buffered, so your program can die with text lines pending in the buffer. /pwm On Fri, 4 Jul 2008, Kleber Eduardo Clemente wrote: > If you don't have any compilation error, the code will compile. > But, maybe, you have an execution error. Then, in that part the program will close, because it doesn't understand that line. > > I think you need use "debbuger" to see where the program is closing. > > Regards, > > Kleber Eduardo Clemente > Posto Avançado MRS - Datasul HCM > Fone: (47) 3802-8848 > Mail: kle...@da... > Antes de imprimir este e-mail, pergunte-se: "É realmente necessário?" > > -----Mensagem original----- > De: dev...@li... [mailto:dev...@li...] Em nome de piyush goswami > Enviada em: sexta-feira, 4 de julho de 2008 07:04 > Para: dev...@li... > Assunto: [Dev-C++] Problem running .exe > > Hi, > I have compiled a C source file using the Bloodshed devC++ > (compilation takes place without any errors but a few warnings). On > running the code, after incomplete execution, the following message is > declared: > '<name>.exe has encountered a problem and needs to close. We are sorry > for the inconvenience.' > > I can't figure out why the code doesn't execute completely. It might > be relevant that I am using Image Processing routines and thus, large > arrays (512*512, and 4 of them) are declared in the code. The code > stops executing before/during the step where i allocate memory using > 'malloc' for the first 512*512 array (a pointer to a pointer is used a > 2-d array). > > Any help would be greatly appreciated... > thanx > > ------------------------------------------------------------------------- > Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW! > Studies have shown that voting for your favorite open source project, > along with a healthy diet, reduces your potential for chronic lameness > and boredom. Vote Now at http://www.sourceforge.net/community/cca08 > _______________________________________________ > 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 > > ------------------------------------------------------------------------- > Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW! > Studies have shown that voting for your favorite open source project, > along with a healthy diet, reduces your potential for chronic lameness > and boredom. Vote Now at http://www.sourceforge.net/community/cca08 > _______________________________________________ > 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: Kleber E. C. <kle...@da...> - 2008-07-04 11:11:09
|
If you don't have any compilation error, the code will compile. But, maybe, you have an execution error. Then, in that part the program will close, because it doesn't understand that line. I think you need use "debbuger" to see where the program is closing. Regards, Kleber Eduardo Clemente Posto Avançado MRS - Datasul HCM Fone: (47) 3802-8848 Mail: kle...@da... Antes de imprimir este e-mail, pergunte-se: "É realmente necessário?" -----Mensagem original----- De: dev...@li... [mailto:dev...@li...] Em nome de piyush goswami Enviada em: sexta-feira, 4 de julho de 2008 07:04 Para: dev...@li... Assunto: [Dev-C++] Problem running .exe Hi, I have compiled a C source file using the Bloodshed devC++ (compilation takes place without any errors but a few warnings). On running the code, after incomplete execution, the following message is declared: '<name>.exe has encountered a problem and needs to close. We are sorry for the inconvenience.' I can't figure out why the code doesn't execute completely. It might be relevant that I am using Image Processing routines and thus, large arrays (512*512, and 4 of them) are declared in the code. The code stops executing before/during the step where i allocate memory using 'malloc' for the first 512*512 array (a pointer to a pointer is used a 2-d array). Any help would be greatly appreciated... thanx ------------------------------------------------------------------------- Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW! Studies have shown that voting for your favorite open source project, along with a healthy diet, reduces your potential for chronic lameness and boredom. Vote Now at http://www.sourceforge.net/community/cca08 _______________________________________________ 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: piyush g. <pec...@gm...> - 2008-07-04 10:04:26
|
Hi, I have compiled a C source file using the Bloodshed devC++ (compilation takes place without any errors but a few warnings). On running the code, after incomplete execution, the following message is declared: '<name>.exe has encountered a problem and needs to close. We are sorry for the inconvenience.' I can't figure out why the code doesn't execute completely. It might be relevant that I am using Image Processing routines and thus, large arrays (512*512, and 4 of them) are declared in the code. The code stops executing before/during the step where i allocate memory using 'malloc' for the first 512*512 array (a pointer to a pointer is used a 2-d array). Any help would be greatly appreciated... thanx |
From: Jesse P. <sln...@ao...> - 2008-07-03 23:02:45
|
[Newbie: JeZ+Lee] - My drop down list of functions is empty, how i fix this? Hi, Sorry for the newbie question... Please view this screenshot: http://silentheroproductions.com/images/DevC-l--l-_FunctionListEmpty.gif How would I make my functions display in this empty list ? Thank, I'm new and am very impressed with Dev C++ for Windows... Jesse "JeZ+Lee" Palser SLN...@ao... Silent Hero Productions(R) Video Game Design Studio http://www.SilentHeroProductions.com |
From: Per W. <pw...@ia...> - 2008-06-29 20:24:14
|
I don't think too many people are interested in scanning through - or testing - your code. However, I do not like your type-casting. Don't do delete on a void pointer. Perform the delete on the actual data type, or on a base type (if the destructor is declared as virtual). How else will the compiler know what destructor to run? A void pointer do not have any virtual method table or any secret data to perform RTTI. /pwm On Sun, 29 Jun 2008, Ben Melikant wrote: > Hello all. I recently wrote a server, but was asked to rewrite it using > std::string. The code is in the files. Can anyone please spot my error? > The server keeps crashing when it gets a connection from a client. Any > errors spotted would be a help to me! > > > |
From: Ben M. <ili...@at...> - 2008-06-29 19:12:30
|
Hello all. I recently wrote a server, but was asked to rewrite it using std::string. The code is in the files. Can anyone please spot my error? The server keeps crashing when it gets a connection from a client. Any errors spotted would be a help to me! |
From: Per W. <pw...@ia...> - 2008-06-29 13:49:45
|
No problem with the stack. But a verify big problem with the implementation. Add a global variable that gets incremented for each call to your Fibonacci function (increment the variable first in your function, before you start looking at the N variable). Run your program with N = 1, 10, 20, 30, 40 and emit the call counter. Notice why your program takes a lot of time? The Fibonacci series is trivial to evaluate in a loop, and a good example of a recursively defined function that should _not_ be implemented with recursion! Another such function is the factorial (n!). /pwm On Sun, 29 Jun 2008, Vijay Durga Reddy Annapureddy wrote: > I have written the code for fibonacci numbers in c++. > There is no error in that recursive logic. > But to print the series from 45onwards it is taking a lot of time. > I think it is due to stack,So please help me regarding this. > Thank you. > |
From: Fernando L. <fer...@gm...> - 2008-06-28 17:39:10
|
Argument 11 (h) should be of type HINSTANCE and it is declared as HWND, see http://msdn.microsoft.com/en-us/library/ms632679(VS.85).aspx. There is a good tutorial at http://winprog.org/tutorial/, or get Programming Windows by Charles Petzold. Best regards, Fernando On Fri, Jun 27, 2008 at 3:20 PM, sudipta basu <tup...@ya...> wrote: > > Hi all, > I am learning C programing under windows.I was trying to compile the following code. > > #include <windows.h> > int _stdcall WinMain(HINSTANCE hInstance,HINSTANCE hPrevInstance,LPSTR lpszCmdline,int nCmdShow) > { > HWND h; > h=CreateWindow("BUTTON","Press Me",WS_OVERLAPPEDWINDOW,10,10,150,100,0,0,h,0); > ShowWindow(h,nCmdShow); > MessageBox(0,"Hi!","Waiting",MB_OK); > return 0; > } > > But I am getting an error as follows:- > 5 C:\Dev-Cpp\tupai\Winapp3.cpp cannot convert `HWND__*' to `HINSTANCE__*' for argument `11' to `HWND__* CreateWindowExA(DWORD, const CHAR*, const CHAR*, DWORD, int, int, int, int, HWND__*, HMENU__*, HINSTANCE__*, void*)' . > > I have worked with C programs under DOS but not under windows, so I am unable to understand what it means and what rectification is needed in the program. > > And also can someone suggest me some books/websites from where I can learn C under windows efficiently. > > > Regards > Sudipta Lal Basu > > Student, M.Tech (Structural Engineering) > G-51, Jawahar Bhawan > IIT Roorkee > Ph-9897509977 > > Send instant messages to your online friends http://uk.messenger.yahoo.com > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://sourceforge.net/services/buy/index.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 > -- Fernando Lichtschein li...@fi... |
From: sudipta b. <tup...@ya...> - 2008-06-27 18:20:29
|
Hi all, I am learning C programing under windows.I was trying to compile the following code. #include <windows.h> int _stdcall WinMain(HINSTANCE hInstance,HINSTANCE hPrevInstance,LPSTR lpszCmdline,int nCmdShow) { HWND h; h=CreateWindow("BUTTON","Press Me",WS_OVERLAPPEDWINDOW,10,10,150,100,0,0,h,0); ShowWindow(h,nCmdShow); MessageBox(0,"Hi!","Waiting",MB_OK); return 0; } But I am getting an error as follows:- 5 C:\Dev-Cpp\tupai\Winapp3.cpp cannot convert `HWND__*' to `HINSTANCE__*' for argument `11' to `HWND__* CreateWindowExA(DWORD, const CHAR*, const CHAR*, DWORD, int, int, int, int, HWND__*, HMENU__*, HINSTANCE__*, void*)' . I have worked with C programs under DOS but not under windows, so I am unable to understand what it means and what rectification is needed in the program. And also can someone suggest me some books/websites from where I can learn C under windows efficiently. Regards Sudipta Lal Basu Student, M.Tech (Structural Engineering) G-51, Jawahar Bhawan IIT Roorkee Ph-9897509977 Send instant messages to your online friends http://uk.messenger.yahoo.com |
From: Per W. <pw...@ia...> - 2008-06-27 15:24:22
|
It's just a question of only allowing an object factory to create objects of the specified type. /pwm On Fri, 27 Jun 2008, Robert Alatalo wrote: > If you make the constructor private then you will need to create a > friend to invoke it. Why would want to not allow another class to > include your class as a base class? The best you can really do is > make all the methods private which would negate most of the reasons > for using it as a base class. I won't say never, but it's generally > a bad idea to make all of your constructors private though you can > make some of them private if you like... but that means your class > needs to be able to invoke them, either directly or via a public > static class function. > > -Robert > > On Fri, Jun 27, 2008 at 6:53 AM, Per Westermark <pw...@ia...> wrote: > > In some situations it can be an idea to make the constructor private. > > > > /pwm > > > > On Fri, 27 Jun 2008, Lloyd wrote: > > > >> Hi, > >> Is there any mechanism in C++ which stops others from inheriting a > >> class? > >> > >> Thanks, > >> Lloyd > >> > >> > >> > >> ______________________________________ > >> Scanned and protected by Email scanner > >> > >> ------------------------------------------------------------------------- > >> Check out the new SourceForge.net Marketplace. > >> It's the best place to buy or sell services for > >> just about anything Open Source. > >> http://sourceforge.net/services/buy/index.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 > >> > > > > > > ------------------------------------------------------------------------- > > Check out the new SourceForge.net Marketplace. > > It's the best place to buy or sell services for > > just about anything Open Source. > > http://sourceforge.net/services/buy/index.php > > _______________________________________________ > > Dev-cpp-users mailing list > > Dev...@li... > > TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm > > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > > > |
From: Robert A. <ral...@gm...> - 2008-06-27 13:38:29
|
If you make the constructor private then you will need to create a friend to invoke it. Why would want to not allow another class to include your class as a base class? The best you can really do is make all the methods private which would negate most of the reasons for using it as a base class. I won't say never, but it's generally a bad idea to make all of your constructors private though you can make some of them private if you like... but that means your class needs to be able to invoke them, either directly or via a public static class function. -Robert On Fri, Jun 27, 2008 at 6:53 AM, Per Westermark <pw...@ia...> wrote: > In some situations it can be an idea to make the constructor private. > > /pwm > > On Fri, 27 Jun 2008, Lloyd wrote: > >> Hi, >> Is there any mechanism in C++ which stops others from inheriting a >> class? >> >> Thanks, >> Lloyd >> >> >> >> ______________________________________ >> Scanned and protected by Email scanner >> >> ------------------------------------------------------------------------- >> Check out the new SourceForge.net Marketplace. >> It's the best place to buy or sell services for >> just about anything Open Source. >> http://sourceforge.net/services/buy/index.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 >> > > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://sourceforge.net/services/buy/index.php > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > |
From: Per W. <pw...@ia...> - 2008-06-27 10:53:16
|
In some situations it can be an idea to make the constructor private. /pwm On Fri, 27 Jun 2008, Lloyd wrote: > Hi, > Is there any mechanism in C++ which stops others from inheriting a > class? > > Thanks, > Lloyd > > > > ______________________________________ > Scanned and protected by Email scanner > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://sourceforge.net/services/buy/index.php > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > |
From: Lloyd <ll...@cd...> - 2008-06-27 07:57:38
|
Hi, Is there any mechanism in C++ which stops others from inheriting a class? Thanks, Lloyd ______________________________________ Scanned and protected by Email scanner |
From: Per W. <pw...@ia...> - 2008-06-23 15:02:43
|
I normally let fgets read full lines, and then perform any decoding of the contents. Then you have a number of options. Comma-separated. Semicolon-separated. Tab-separated. Encoded inside quotation marks. I normally use strchr() to process the lines I have read with fgets(). /pwm On Sat, 21 Jun 2008, André Macário Barros wrote: > Dear users, > > I like this list because we can ask questions > regarding not only about Dev-cpp, like the one > that I present to you now. > > Consider the following restrictions: > -only ANSI-C commands; > -not C++; > -for file manipulation, only the following > commands: fopen(), fscanf(), fgets(), > feof(), and fclose(); > > Inside this scenario, people can easly work > read and write files containing integers and floating > point numbers. Situations like names, sex (male/female), > option (yes/no), etc, can be replaced by integer codes. > > My question is: > What is your style to work with strings, i.e., names > for example: for a program that expects to read a name from > a file (with spaces, variable size, etc), do you previosly > indicate a fixed number of characters (40, for example) and > use fgets twice (to read the 40 characters and read the '\n')? > > Thanks a lot in advance > André > > > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://sourceforge.net/services/buy/index.php > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > |
From: Fernando L. <fer...@gm...> - 2008-06-22 18:26:24
|
If you are accessing the Internet through a router, it is probably doing NAT/PAT. The 192.168.1.102 address is a private address, that is, it cannot be assigned to any interface on the public Internet. In contrast, the address returned by whatsmyip is the IP address of the public interface of your router. Best regards, Fernando On Sun, Jun 22, 2008 at 3:53 AM, angel dario <sci...@ho...> wrote: > > > Hello.... > > I created a simple Sockets server that's hosting on port 80. > I created an account for DynDNS and I created dynamically DNS with my computer IP address. > > When I test my server using 192.168.1.102 it works perfectly however when I test my server with > my computer IP (same as http://whatsmyip.org/ which is the same as DynDNS DNS) it doesn't work. > > When I try to create a socket with my computer Ip (http://whatsmyip.org/), it doesn't even work. It give me this error: > > WSAEADDRNOTAVAIL > 10049 > > Cannot assign requested address. The requested address is not valid in its context. This normally results from an attempt to bind to an address that is not valid for the local computer. This can also result from connect, sendto, WSAConnect, WSAJoinLeaf, or WSASendTo when the remote address or port is not valid for a remote computer (for example, address or port 0). > Can someone help me on how can I host my C++ server using my own computer ip (http://whatsmyip.org/).? > > ________________________________ > The i'm Talkathon starts 6/24/08. For now, give amongst yourselves. Learn More > ------------------------------------------------------------------------- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://sourceforge.net/services/buy/index.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 > -- Fernando Lichtschein li...@fi... |
From: angel d. <sci...@ho...> - 2008-06-22 17:48:53
|
I tried this http://portforward.com/english/routers/port_forwarding/Linksys/WAG54G/HTTP.htm still doesn't work! I already have my static IP tho.... > From: dev...@li...> Subject: Dev-cpp-users Digest, Vol 25, Issue 5> To: dev...@li...> Date: Sun, 22 Jun 2008 07:17:12 -0700> > Send Dev-cpp-users mailing list submissions to> dev...@li...> > To subscribe or unsubscribe via the World Wide Web, visit> https://lists.sourceforge.net/lists/listinfo/dev-cpp-users> or, via email, send a message with subject or body 'help' to> dev...@li...> > You can reach the person managing the list at> dev...@li...> > When replying, please edit your Subject line so it is more specific> than "Re: Contents of Dev-cpp-users digest..."> > > Today's Topics:> > 1. Re: Task Manager Process (Per Westermark)> 2. I?d like to know your hints about file manipulations> (Andr? Mac?rio Barros)> 3. Need to view execution results (Noel Wallen)> 4. Re: Need to view execution results (Brad Woosley)> 5. C++ Sockets (angel dario)> 6. Re: C++ Sockets (angel dario)> > > ----------------------------------------------------------------------> > Message: 1> Date: Thu, 19 Jun 2008 19:10:09 +0200 (CEST)> From: Per Westermark <pw...@ia...>> Subject: Re: [Dev-C++] Task Manager Process> To: Mat...@bm...> Cc: sci...@ho...,> dev...@li...> Message-ID: <Pin...@ia...>> Content-Type: TEXT/PLAIN; charset=ISO-8859-1> > TerminateProcess is a very, very brutal call and should be avoided at all> costs. Termination means that the program may not perform any cleanup.> > The best way to ask a Windows application to end is to post a WM_CLOSE> message to it. In some situations a WM_QUIT message may also be used.> > /pwm> > On Thu, 19 Jun 2008 Mat...@bm... wrote:> > > If you are using win32 you can use the TerminateProcess API call.> >> > http://msdn.microsoft.com/en-us/library/ms686714(VS.85).aspx> >> >> >> > ________________________________________> > From: dev...@li... [mailto:dev...@li...] On Behalf Of angel dario> > Sent: 18 June 2008 21:36> > To: Dev-C++ Mainling> > Subject: [Dev-C++] Task Manager Process> >> > ?> > Is there a way to end a?process (Task Manager, Process)?programmatically using C++?> > ________________________________________> > Need to know now? Get instant answers with Windows Live Messenger. IM on your terms.> > This email was sent from an email account of BMW (UK) Manufacturing Limited. BMW (UK) Manufacturing Limited is a company registered in England and Wales with company number 3950868; and has its offices at Ellesfield Avenue, Bracknell, Berkshire, RG12 8TA; registered in England and Wales. The contents of this e-mail are confidential and may be privileged and subject to internal monitoring. If you are not the addressee indicated in this message, you may not copy, forward, disclose, deliver or otherwise use it or any part of it in any form whatsoever. You should then kindly notify the sender by replying to this message and destroy it thereafter. Opinions, conclusions and other information in this message that do not relate to the official business of any BMW Group Company shall be understood as neither given nor endorsed by them.> >> > -------------------------------------------------------------------------> > Check out the new SourceForge.net Marketplace.> > It's the best place to buy or sell services for> > just about anything Open Source.> > http://sourceforge.net/services/buy/index.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> >> > > > > > ------------------------------> > Message: 2> Date: Sat, 21 Jun 2008 14:37:55 -0300> From: Andr? Mac?rio Barros <and...@su...>> Subject: [Dev-C++] I?d like to know your hints about file> manipulations> To: "Lista do Dev-C++" <dev...@li...>> Message-ID: <FNE...@su...>> Content-Type: text/plain; charset="iso-8859-1"> > Dear users,> > I like this list because we can ask questions> regarding not only about Dev-cpp, like the one> that I present to you now.> > Consider the following restrictions:> -only ANSI-C commands;> -not C++;> -for file manipulation, only the following> commands: fopen(), fscanf(), fgets(),> feof(), and fclose();> > Inside this scenario, people can easly work> read and write files containing integers and floating> point numbers. Situations like names, sex (male/female),> option (yes/no), etc, can be replaced by integer codes.> > My question is:> What is your style to work with strings, i.e., names> for example: for a program that expects to read a name from> a file (with spaces, variable size, etc), do you previosly> indicate a fixed number of characters (40, for example) and> use fgets twice (to read the 40 characters and read the '\n')?> > Thanks a lot in advance> Andr?> > > > > ------------------------------> > Message: 3> Date: Sat, 21 Jun 2008 17:47:22 -0400> From: "Noel Wallen" <nw...@ny...>> Subject: [Dev-C++] Need to view execution results> To: <dev...@li...>> Message-ID: <060501c8d3e8$635e58a0$ee76494a@WAREMBLEM>> Content-Type: text/plain; charset="windows-1250"> > > Dear Forum;> I would like your help how to configure this> product so that I can see my execution results in a window> Thanks> > Noel> -----Original Message-----> From: dev...@li...> [mailto:dev...@li...] On Behalf Of> dev...@li...> Sent: Saturday, June 21, 2008 12:24 PM> To: nw...@ny...> Subject: Welcome to the "Dev-cpp-users" mailing list> > > Welcome to the Dev...@li... mailing list!> > To post to this list, send your email to:> > dev...@li...> > General information about the mailing list is at:> > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users> > If you ever want to unsubscribe or change your options (eg, switch to or> from digest mode, change your password, etc.), visit your subscription> page at:> > > https://lists.sourceforge.net/lists/options/dev-cpp-users/nwallen%40nyc.> rr.com> > > You can also make such adjustments via email by sending a message to:> > Dev...@li...> > with the word `help' in the subject or body (don't include the quotes),> and you will get back a message with instructions.> > You must know your password to change your options (including changing> the password, itself) or to unsubscribe. It is:> > redash> > Normally, Mailman will remind you of your lists.sourceforge.net mailing> list passwords once every month, although you can disable this if you> prefer. This reminder will also include instructions on how to> unsubscribe or change your account options. There is also a button on> your options page that will email your current password to you.> > Internal Virus Database is out-of-date.> Checked by AVG Free Edition. > Version: 7.5.472 / Virus Database: 269.11.2/931 - Release Date: 8/1/2007> 4:53 PM> > > Internal Virus Database is out-of-date.> Checked by AVG Free Edition. > Version: 7.5.472 / Virus Database: 269.11.2/931 - Release Date: 8/1/2007> 4:53 PM> > > > > > ------------------------------> > Message: 4> Date: Sat, 21 Jun 2008 14:51:58 -0700 (PDT)> From: Brad Woosley <c_b...@ya...>> Subject: Re: [Dev-C++] Need to view execution results> To: dev...@li..., Noel Wallen> <nw...@ny...>> Message-ID: <244...@we...>> Content-Type: text/plain; charset="us-ascii"> > There are two things that you can do, either add the line system("PAUSE"); to the end of your code, add the line cin >> temp; or something similar to make a key be hit, or launch the program from inside the computers command prompt> > _______> > > > visit utb.zoomshare.com to read my different stories that I have written. > > > > "If at first the idea is not absurd, there is no hope for it"> > -Albert Einstein> > --- On Sat, 6/21/08, Noel Wallen <nw...@ny...> wrote:> From: Noel Wallen <nw...@ny...>> Subject: [Dev-C++] Need to view execution results> To: dev...@li...> Date: Saturday, June 21, 2008, 4:47 PM> > Dear Forum;> I would like your help how to configure this> product so that I can see my execution results in a window> Thanks> > Noel> -----Original Message-----> From: dev...@li...> [mailto:dev...@li...] On Behalf Of> dev...@li...> Sent: Saturday, June 21, 2008 12:24 PM> To: nw...@ny...> Subject: Welcome to the "Dev-cpp-users" mailing list> > > Welcome to the Dev...@li... mailing list!> > To post to this list, send your email to:> > dev...@li...> > General information about the mailing list is at:> > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users> > If you ever want to unsubscribe or change your options (eg, switch to or> from digest mode, change your password, etc.), visit your subscription> page at:> > > https://lists.sourceforge.net/lists/options/dev-cpp-users/nwallen%40nyc.> rr.com> > > You can also make such adjustments via email by sending a message to:> > Dev...@li...> > with the word `help' in the subject or body (don't include the quotes),> and you will get back a message with instructions.> > You must know your password to change your options (including changing> the password, itself) or to unsubscribe. It is:> > redash> > Normally, Mailman will remind you of your lists.sourceforge.net mailing> list passwords once every month, although you can disable this if you> prefer. This reminder will also include instructions on how to> unsubscribe or change your account options. There is also a button on> your options page that will email your current password to you.> > Internal Virus Database is out-of-date.> Checked by AVG Free Edition. > Version: 7.5.472 / Virus Database: 269.11.2/931 - Release Date: 8/1/2007> 4:53 PM> > > Internal Virus Database is out-of-date.> Checked by AVG Free Edition. > Version: 7.5.472 / Virus Database: 269.11.2/931 - Release Date: 8/1/2007> 4:53 PM> > > > -------------------------------------------------------------------------> Check out the new SourceForge.net Marketplace.> It's the best place to buy or sell services for> just about anything Open Source.> http://sourceforge.net/services/buy/index.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> > > > -------------- next part --------------> An HTML attachment was scrubbed...> > ------------------------------> > Message: 5> Date: Sun, 22 Jun 2008 00:53:11 -0600> From: angel dario <sci...@ho...>> Subject: [Dev-C++] C++ Sockets> To: Dev-C++ Mainling <dev...@li...>> Message-ID: <BAY...@ph...l>> Content-Type: text/plain; charset="windows-1252"> > > Hello....> > I created a simple Sockets server that's hosting on port 80.> I created an account for DynDNS and I created dynamically DNS with my computer IP address.> > When I test my server using 192.168.1.102 it works perfectly however when I test my server with > my computer IP (same as http://whatsmyip.org/ which is the same as DynDNS DNS) it doesn't work.> > When I try to create a socket with my computer Ip (http://whatsmyip.org/), it doesn't even work. It give me this error:> > WSAEADDRNOTAVAIL10049> > > Cannot assign requested address. > > The requested address is not valid in its context. This normally results from an attempt to bind to an address that is not valid for the local computer. This can also result from connect, sendto, WSAConnect, WSAJoinLeaf, or WSASendTo when the remote address or port is not valid for a remote computer (for example, address or port 0).> Can someone help me on how can I host my C++ server using my own computer ip (http://whatsmyip.org/).?> _________________________________________________________________> The i?m Talkathon starts 6/24/08.? For now, give amongst yourselves.> http://www.imtalkathon.com?source=TXT_EML_WLH_LearnMore_GiveAmongst> -------------- next part --------------> An HTML attachment was scrubbed...> > ------------------------------> > Message: 6> Date: Sun, 22 Jun 2008 08:17:03 -0600> From: angel dario <sci...@ho...>> Subject: Re: [Dev-C++] C++ Sockets> To: Dev-C++ Mainling <dev...@li...>> Message-ID: <BAY...@ph...l>> Content-Type: text/plain; charset="iso-8859-1"> > Thanks for the reply......I'll search for (tracert) on google and see what's that about... First time I hear it. Yes, I am connected through a router (Linksys) and I already set it up with DynDNS so that whenever I type my DNS the router looks for my computer (only my real IP Address). Also, I have this program called (DynDNS updater) that I downloaded from DynDNS website which automatically sets my dynamic IP (EX: 192.167.1.102) with my DNS. My question is: is it possible to create a Socket Server using my real Computer IP Address (http://whatsmyip.org/)?or do I have to set my router to look for my dynamic IP (192.167.1.102) whenever I request my DNS or Real IP Address?> _________________________________________________________________> Introducing Live Search cashback . It's search that pays you back!> http://search.live.com/cashback/?&pkw=form=MIJAAF/publ=HMTGL/crea=introsrchcashback> -------------- next part --------------> An HTML attachment was scrubbed...> > ------------------------------> > -------------------------------------------------------------------------> Check out the new SourceForge.net Marketplace.> It's the best place to buy or sell services for> just about anything Open Source.> http://sourceforge.net/services/buy/index.php> > ------------------------------> > _______________________________________________> 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> > > End of Dev-cpp-users Digest, Vol 25, Issue 5> ******************************************** _________________________________________________________________ The other season of giving begins 6/24/08. Check out the i’m Talkathon. http://www.imtalkathon.com?source=TXT_EML_WLH_SeasonOfGiving |
From: angel d. <sci...@ho...> - 2008-06-22 14:17:11
|
Thanks for the reply......I'll search for (tracert) on google and see what's that about... First time I hear it. Yes, I am connected through a router (Linksys) and I already set it up with DynDNS so that whenever I type my DNS the router looks for my computer (only my real IP Address). Also, I have this program called (DynDNS updater) that I downloaded from DynDNS website which automatically sets my dynamic IP (EX: 192.167.1.102) with my DNS. My question is: is it possible to create a Socket Server using my real Computer IP Address (http://whatsmyip.org/)?or do I have to set my router to look for my dynamic IP (192.167.1.102) whenever I request my DNS or Real IP Address? _________________________________________________________________ Introducing Live Search cashback . It's search that pays you back! http://search.live.com/cashback/?&pkw=form=MIJAAF/publ=HMTGL/crea=introsrchcashback |
From: angel d. <sci...@ho...> - 2008-06-22 06:53:19
|
Hello.... I created a simple Sockets server that's hosting on port 80. I created an account for DynDNS and I created dynamically DNS with my computer IP address. When I test my server using 192.168.1.102 it works perfectly however when I test my server with my computer IP (same as http://whatsmyip.org/ which is the same as DynDNS DNS) it doesn't work. When I try to create a socket with my computer Ip (http://whatsmyip.org/), it doesn't even work. It give me this error: WSAEADDRNOTAVAIL10049 Cannot assign requested address. The requested address is not valid in its context. This normally results from an attempt to bind to an address that is not valid for the local computer. This can also result from connect, sendto, WSAConnect, WSAJoinLeaf, or WSASendTo when the remote address or port is not valid for a remote computer (for example, address or port 0). Can someone help me on how can I host my C++ server using my own computer ip (http://whatsmyip.org/).? _________________________________________________________________ The i’m Talkathon starts 6/24/08. For now, give amongst yourselves. http://www.imtalkathon.com?source=TXT_EML_WLH_LearnMore_GiveAmongst |
From: Brad W. <c_b...@ya...> - 2008-06-21 21:52:06
|
There are two things that you can do, either add the line system("PAUSE"); to the end of your code, add the line cin >> temp; or something similar to make a key be hit, or launch the program from inside the computers command prompt _______ visit utb.zoomshare.com to read my different stories that I have written. "If at first the idea is not absurd, there is no hope for it" -Albert Einstein --- On Sat, 6/21/08, Noel Wallen <nw...@ny...> wrote: From: Noel Wallen <nw...@ny...> Subject: [Dev-C++] Need to view execution results To: dev...@li... Date: Saturday, June 21, 2008, 4:47 PM Dear Forum; I would like your help how to configure this product so that I can see my execution results in a window Thanks Noel -----Original Message----- From: dev...@li... [mailto:dev...@li...] On Behalf Of dev...@li... Sent: Saturday, June 21, 2008 12:24 PM To: nw...@ny... Subject: Welcome to the "Dev-cpp-users" mailing list Welcome to the Dev...@li... mailing list! To post to this list, send your email to: dev...@li... General information about the mailing list is at: https://lists.sourceforge.net/lists/listinfo/dev-cpp-users If you ever want to unsubscribe or change your options (eg, switch to or from digest mode, change your password, etc.), visit your subscription page at: https://lists.sourceforge.net/lists/options/dev-cpp-users/nwallen%40nyc. rr.com You can also make such adjustments via email by sending a message to: Dev...@li... with the word `help' in the subject or body (don't include the quotes), and you will get back a message with instructions. You must know your password to change your options (including changing the password, itself) or to unsubscribe. It is: redash Normally, Mailman will remind you of your lists.sourceforge.net mailing list passwords once every month, although you can disable this if you prefer. This reminder will also include instructions on how to unsubscribe or change your account options. There is also a button on your options page that will email your current password to you. Internal Virus Database is out-of-date. Checked by AVG Free Edition. Version: 7.5.472 / Virus Database: 269.11.2/931 - Release Date: 8/1/2007 4:53 PM Internal Virus Database is out-of-date. Checked by AVG Free Edition. Version: 7.5.472 / Virus Database: 269.11.2/931 - Release Date: 8/1/2007 4:53 PM ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php _______________________________________________ Dev-cpp-users mailing list Dev...@li... TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm https://lists.sourceforge.net/lists/listinfo/dev-cpp-users |
From: Noel W. <nw...@ny...> - 2008-06-21 21:45:27
|
Dear Forum; I would like your help how to configure this product so that I can see my execution results in a window Thanks Noel -----Original Message----- From: dev...@li... [mailto:dev...@li...] On Behalf Of dev...@li... Sent: Saturday, June 21, 2008 12:24 PM To: nw...@ny... Subject: Welcome to the "Dev-cpp-users" mailing list Welcome to the Dev...@li... mailing list! To post to this list, send your email to: dev...@li... General information about the mailing list is at: https://lists.sourceforge.net/lists/listinfo/dev-cpp-users If you ever want to unsubscribe or change your options (eg, switch to or from digest mode, change your password, etc.), visit your subscription page at: https://lists.sourceforge.net/lists/options/dev-cpp-users/nwallen%40nyc. rr.com You can also make such adjustments via email by sending a message to: Dev...@li... with the word `help' in the subject or body (don't include the quotes), and you will get back a message with instructions. You must know your password to change your options (including changing the password, itself) or to unsubscribe. It is: redash Normally, Mailman will remind you of your lists.sourceforge.net mailing list passwords once every month, although you can disable this if you prefer. This reminder will also include instructions on how to unsubscribe or change your account options. There is also a button on your options page that will email your current password to you. Internal Virus Database is out-of-date. Checked by AVG Free Edition. Version: 7.5.472 / Virus Database: 269.11.2/931 - Release Date: 8/1/2007 4:53 PM Internal Virus Database is out-of-date. Checked by AVG Free Edition. Version: 7.5.472 / Virus Database: 269.11.2/931 - Release Date: 8/1/2007 4:53 PM |
From: André M. B. <and...@su...> - 2008-06-21 18:39:35
|
Dear users, I like this list because we can ask questions regarding not only about Dev-cpp, like the one that I present to you now. Consider the following restrictions: -only ANSI-C commands; -not C++; -for file manipulation, only the following commands: fopen(), fscanf(), fgets(), feof(), and fclose(); Inside this scenario, people can easly work read and write files containing integers and floating point numbers. Situations like names, sex (male/female), option (yes/no), etc, can be replaced by integer codes. My question is: What is your style to work with strings, i.e., names for example: for a program that expects to read a name from a file (with spaces, variable size, etc), do you previosly indicate a fixed number of characters (40, for example) and use fgets twice (to read the 40 characters and read the '\n')? Thanks a lot in advance André |