Thread: RE: [Dev-C++] (no subject) (Page 9)
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
From: Ioannis V. <iv...@em...> - 2003-07-24 02:22:22
|
> -----Original Message----- > From: Per Westermark [mailto:pw...@ia...] > Sent: Thursday, July 24, 2003 4:07 AM > To: Ioannis Vranos > Cc: Dev-C++ Mailing List > Subject: Re: [Dev-C++] (no subject) > > > One more thing - this information is about cracking a password, i.e. > finding out what it is. If I don't bother, there are a number > of programs > available what will allow setting a new password without > knowing the old. Yes but that in Windows XP/2000 SPsomething means that files encrypted via EFS become unreadable forever. But that's OT here I assume. :-) Ioannis Vranos * Programming pages: http://www.noicys.freeurl.com * Alternative URL 1: http://run.to/noicys * Alternative URL 2: http://www.noicys.cjb.net |
From: David M. <ci...@ya...> - 2003-07-24 19:33:51
|
Being able to get the old is worse because the user will not notice that it has changed and a careful person can make it so that no (or rather very few) other traces are left. To make matters worse, many people re-use passwords (makes it easier to rember) --- Per Westermark <pw...@ia...> wrote: > One more thing - this information is about cracking a > password, i.e. > finding out what it is. If I don't bother, there are a > number of programs > available what will allow setting a new password without > knowing the old. > > /Per W > > On Thu, 24 Jul 2003, Ioannis Vranos wrote: > > > I think this is interesting for everyone in the list, > so I thought to drop > > it in here. > > > > > > > > >From WinInfo Daily Update: > > > > === 1. News and Views ==== > > by Paul Thurrott, thu...@wi... > > > > Researchers Crack Windows Passwords in Seconds > > Swiss researchers have developed a password-cracking > scheme, based > > on a method first developed in 1980, that lets them > crack most Windows > > passwords in about 13 seconds (the original method > takes more than a > > minute and a half longer). The scheme enforces a > growing concern in > > the security community that the way in which Microsoft > encodes > > passwords in Windows is inherently weak, opening the > door for cracking > > programs to use brute-force methods to test and break > passwords. > > Philippe Oechslin, one of the Swiss researchers, > recently published > > an online paper, "Making a Faster Cryptanalytic > Time-Memory > > Trade-Off," which highlights the new password-cracking > scheme. > > Oechslin will present the paper in August at Crypto > 2003, an > > international cryptology conference held this year at > the University > > of California, Santa Barbara and organized by the > International > > Association for Cryptologic Research (IACR) in > cooperation with the > > IEEE Computer Society Technical Committee on Security > and Privacy. > > "As an example, we have implemented an attack on > MS-Windows > > password hashes," the researchers write. "Using 1.4GB > of data (two > > CD-ROMs) we can crack 99.9 percent of all > alphanumerical passwords > > hashes ... in 13.6 seconds whereas it takes 101 seconds > with the > > current approach using distinguished points. We show > that the gain > > could be even much higher depending on the parameters > used." > > Oddly, the researchers weren't interested in > cracking Windows > > passwords but rather were trying to demonstrate the > previous > > theoretical cryptanalytic time-memory trade-off > technique. They note > > that Microsoft's passwords are weak because, when > encrypted, they > > don't include any random information. Thus, the same > password on two > > Windows machines will always be the same when > encrypted, which makes > > breaking the password encryption much easier than if > the passwords > > were randomized. > > Although generating more secure passwords by using > nonalphanumeric > > characters and other special characters is possible, > the researchers > > say that even this approach won't solve the inherent > problem in > > Windows because all they'd need is more time or a > larger data set (or > > both) to crack those passwords as well. Instead, > Microsoft will have > > to fix this feature to encrypt passwords with random > information, the > > researchers say. > > > > > ---------------------------------------------------------------------------- > > ----------------------- > > > > > > > > > > > > > > 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/psa00100003ave/direct;at.aspnet_072303_01/01 > > _______________________________________________ > > 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 > > > > > > ------------------------------------------------------- > 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/psa00100003ave/direct;at.aspnet_072303_01/01 > _______________________________________________ > 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 ===== Signed David Mcken Life Sucks Live with it __________________________________ Do you Yahoo!? The New Yahoo! Search - Faster. Easier. Bingo. http://search.yahoo.com |
From: Per W. <pw...@ia...> - 2003-07-24 19:43:55
|
Bug without knowing the pwd, it is possible to set a known one, do some nice things, and then set back the original - without knowing what the original pwd was. /Per W On Thu, 24 Jul 2003, David McKen wrote: > Being able to get the old is worse because the user will > not notice that it has changed and a careful person can > make it so that no (or rather very few) other traces are > left. > > To make matters worse, many people re-use passwords (makes > it easier to rember) > > --- Per Westermark <pw...@ia...> wrote: > > One more thing - this information is about cracking a > > password, i.e. > > finding out what it is. If I don't bother, there are a > > number of programs > > available what will allow setting a new password without > > knowing the old. > > > > /Per W > > > > On Thu, 24 Jul 2003, Ioannis Vranos wrote: > > > > > I think this is interesting for everyone in the list, > > so I thought to drop > > > it in here. > > > > > > > > > > > > >From WinInfo Daily Update: > > > > > > === 1. News and Views ==== > > > by Paul Thurrott, thu...@wi... > > > > > > Researchers Crack Windows Passwords in Seconds > > > Swiss researchers have developed a password-cracking > > scheme, based > > > on a method first developed in 1980, that lets them > > crack most Windows > > > passwords in about 13 seconds (the original method > > takes more than a > > > minute and a half longer). The scheme enforces a > > growing concern in > > > the security community that the way in which Microsoft > > encodes > > > passwords in Windows is inherently weak, opening the > > door for cracking > > > programs to use brute-force methods to test and break > > passwords. > > > Philippe Oechslin, one of the Swiss researchers, > > recently published > > > an online paper, "Making a Faster Cryptanalytic > > Time-Memory > > > Trade-Off," which highlights the new password-cracking > > scheme. > > > Oechslin will present the paper in August at Crypto > > 2003, an > > > international cryptology conference held this year at > > the University > > > of California, Santa Barbara and organized by the > > International > > > Association for Cryptologic Research (IACR) in > > cooperation with the > > > IEEE Computer Society Technical Committee on Security > > and Privacy. > > > "As an example, we have implemented an attack on > > MS-Windows > > > password hashes," the researchers write. "Using 1.4GB > > of data (two > > > CD-ROMs) we can crack 99.9 percent of all > > alphanumerical passwords > > > hashes ... in 13.6 seconds whereas it takes 101 seconds > > with the > > > current approach using distinguished points. We show > > that the gain > > > could be even much higher depending on the parameters > > used." > > > Oddly, the researchers weren't interested in > > cracking Windows > > > passwords but rather were trying to demonstrate the > > previous > > > theoretical cryptanalytic time-memory trade-off > > technique. They note > > > that Microsoft's passwords are weak because, when > > encrypted, they > > > don't include any random information. Thus, the same > > password on two > > > Windows machines will always be the same when > > encrypted, which makes > > > breaking the password encryption much easier than if > > the passwords > > > were randomized. > > > Although generating more secure passwords by using > > nonalphanumeric > > > characters and other special characters is possible, > > the researchers > > > say that even this approach won't solve the inherent > > problem in > > > Windows because all they'd need is more time or a > > larger data set (or > > > both) to crack those passwords as well. Instead, > > Microsoft will have > > > to fix this feature to encrypt passwords with random > > information, the > > > researchers say. > > > > > > > > > ---------------------------------------------------------------------------- > > > ----------------------- > > > > > > > > > > > > > > > > > > > > > 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/psa00100003ave/direct;at.aspnet_072303_01/01 > > > _______________________________________________ > > > 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 > > > > > > > > > > > ------------------------------------------------------- > > 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/psa00100003ave/direct;at.aspnet_072303_01/01 > > _______________________________________________ > > 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 > > > ===== > 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/psa00100003ave/direct;at.aspnet_072303_01/01 > _______________________________________________ > 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: David M. <ci...@ya...> - 2003-07-24 19:29:27
|
Indeed it is!! --- Ioannis Vranos <iv...@em...> wrote: > I think this is interesting for everyone in the list, so > I thought to drop > it in here. > > > > From WinInfo Daily Update: > > === 1. News and Views ==== > by Paul Thurrott, thu...@wi... > > Researchers Crack Windows Passwords in Seconds > Swiss researchers have developed a password-cracking > scheme, based > on a method first developed in 1980, that lets them crack > most Windows > passwords in about 13 seconds (the original method takes > more than a > minute and a half longer). The scheme enforces a growing > concern in > the security community that the way in which Microsoft > encodes > passwords in Windows is inherently weak, opening the door > for cracking > programs to use brute-force methods to test and break > passwords. > Philippe Oechslin, one of the Swiss researchers, > recently published > an online paper, "Making a Faster Cryptanalytic > Time-Memory > Trade-Off," which highlights the new password-cracking > scheme. > Oechslin will present the paper in August at Crypto 2003, > an > international cryptology conference held this year at the > University > of California, Santa Barbara and organized by the > International > Association for Cryptologic Research (IACR) in > cooperation with the > IEEE Computer Society Technical Committee on Security and > Privacy. > "As an example, we have implemented an attack on > MS-Windows > password hashes," the researchers write. "Using 1.4GB of > data (two > CD-ROMs) we can crack 99.9 percent of all alphanumerical > passwords > hashes ... in 13.6 seconds whereas it takes 101 seconds > with the > current approach using distinguished points. We show that > the gain > could be even much higher depending on the parameters > used." > Oddly, the researchers weren't interested in cracking > Windows > passwords but rather were trying to demonstrate the > previous > theoretical cryptanalytic time-memory trade-off > technique. They note > that Microsoft's passwords are weak because, when > encrypted, they > don't include any random information. Thus, the same > password on two > Windows machines will always be the same when encrypted, > which makes > breaking the password encryption much easier than if the > passwords > were randomized. > Although generating more secure passwords by using > nonalphanumeric > characters and other special characters is possible, the > researchers > say that even this approach won't solve the inherent > problem in > Windows because all they'd need is more time or a larger > data set (or > both) to crack those passwords as well. Instead, > Microsoft will have > to fix this feature to encrypt passwords with random > information, the > researchers say. > > ---------------------------------------------------------------------------- > ----------------------- > > > > > > > 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/psa00100003ave/direct;at.aspnet_072303_01/01 > _______________________________________________ > 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 ===== Signed David Mcken Life Sucks Live with it __________________________________________________ Do you Yahoo!? The New Yahoo! Search - Faster. Easier. Bingo http://search.yahoo.com |
From: yiwei l. <liy...@ho...> - 2003-08-09 11:58:05
|
<html><div style='background-color:'><DIV> <P><BR>how can i save part of a programme in a file and able to retrieve it the next time when i run the programme? <BR></P></DIV></div><br clear=all><hr>Get 10mb of e-mail space with <a href="http://g.msn.com/8HMVENSG/2737??PS=">MSN Hotmail Extra Storage</a> at only S$36 per year including GST</html> |
From: P.D. v. Z. <pa...@my...> - 2003-08-09 13:13:38
|
I assume you don't mean a part of the actual program code, but data entered while running your program. Depending on whether you use C or C++, you need to either do: (C code) FILE* out = fopen("somefilename", "wt"); /* or "wb" for binary files */ fprintf(out, "Blah blah blah"); /* for text files */ fwrite(buf, size_of_buf, number_of_items, out); /* for binary files */ fclose(out); OR (C++ code): #include <fstream> // .... std::ofstream out("somefile"); out << "Blah blah blah"; Hope this helped, Paul P.S.: Specifying a subject next time you ask a question would be nice, and giving your brain some exercise by searching for things yourself first would be even better. -----Original Message----- From: dev...@li... [mailto:dev...@li...] On Behalf Of yiwei li Sent: Saturday, August 09, 2003 1:58 PM To: dev...@li... Subject: [Dev-C++] (no subject) how can i save part of a programme in a file and able to retrieve it the next time when i run the programme? Get 10mb of e-mail space with MSN Hotmail Extra Storage at only S$36 per year including GST ------------------------------------------------------- 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/psa00100003ave/direct;at.aspnet_072303_01 /01 _______________________________________________ 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: David M. <ci...@ya...> - 2003-08-14 02:15:57
|
Does anyone have a suggestion for a good 3d library, requirements are listed below: 1. Must be portable to at least Windows and X server (that includes Mac OS X). 2. OpenGL support (well DirectX won't work on anything that is not windows). 3. TCP/UDP socket support. CrystalSpace seems to be my best choice. Any other suggestions? __________________________________ Do you Yahoo!? The New Yahoo! Search - Faster. Easier. Bingo. http://search.yahoo.com |
From: <or...@vp...> - 2003-08-14 09:47:30
|
David McKen wrote: > Does anyone have a suggestion for a good 3d library, > requirements are listed > below: > 1. Must be portable to at least Windows and X server (that > includes Mac OS > X). > 2. OpenGL support (well DirectX won't work on anything that > is not windows). > 3. TCP/UDP socket support. > > CrystalSpace seems to be my best choice. Any other > suggestions? Well, CS has problems with Mac OS, as far as I know, as PlaneShift (the largest CrystalSpace project) doesn't run on it. So you'll likely have problems there. Also, Crystal Space doesn't have any Dev-C++ project files, but it can be compiled with MinGW. However, the compilation process is not the simplest I've seen. And CS tends to have lots of bugs, and goes on very slowly. They say, that the "new renderer" will be ready in June. Well, it has already passed, and they are nowhere near ready with it. The current OpenGL renderer is slow, and doesn't support shaders at all. The engine's design is good, but there are LOTS of unimplemented things. It wants to be extensible, and flexible, but it actually isn't. It's plugin system makes it VERY bloated, as everything is a plugin. Even if you make a new mesh type, it will be a different plugin. There are currently 122 (!) DLLs in my root CS dir, and that is too much I think. Also, they are not regular DLLs. CS doesn't have a native editor, however there are many exporters. Has a map2cs converter, that converts .map files to CS maps. CS has network support. Another choice might be OGRE - http://ogre.sf.net Howevever, you can only develop with OGRE in MSVC for Windows, don't know about Mac. Dev-C++ is not supported (doesn't compile with MinGW). You might take a look at NeoEngine - http://neoengine.sf.net I currently prefer that, as it is simple, very easy to use, rapidly evolving, it is also extensible, has Dev-C++ support (has project files) and runs on Mac. It has a very efficient chunked file format. Physics support is currently added. NeoEngine also supports vertex and fragment programs. I like NeoEngine, because it is easy to use. I recommend this one. There is only one problem with it: documentation. There are almost none :) - just joking. There are 8 tutorials, a Wiki, and the forums. And doxygen of course. I don't know about network support, but I saw it has some. It is titled a game engine after all, so it surely has UDP. I hope this helps. Tell me your decision. -- Greetings, Balázs |
From: <or...@vp...> - 2003-08-14 15:51:18
|
Hi! A few more things I left out: PlaneShift in fact runs on Mac, but it is slow. That's why I said, you'll likely have problems. However, when then new renderer is ready, it WILL rock! The new renderer is really cool, but I'm afraid, that it will get ready too late. Also, even if it is ready, the whole CS will need to be ported to it, so that will take again some time. I was very fond of CS, I watched it's progress for 3 years by now, and I liked it very much. Until last month, when I accidentally found NeoEngine :) And one more thing about NeoEngine: it has a modern engine design, with vertex buffer locking, and such. It is also not big (compared to CS or OGRE) and compiles quickly. Well, that's all. -- Greetings, Balázs |
From: yiwei l. <liy...@ho...> - 2003-08-15 16:50:54
|
<html><div style='background-color:'><DIV> <P><BR>hihi is there anyone here know how to change the background color of where you run the programme (not the text color). Thanks<BR></P></DIV></div><br clear=all><hr>Get <a href="http://g.msn.com/8HMNENSG/2731??PS=">free gift vouchers every week</a> with MSN Premium Vouchers</html> |
From: <or...@vp...> - 2003-08-16 07:56:33
|
yiwei li wrote: > hihi is there anyone here know how to change the background color of > where you run the programme (not the text color). Thanks Is there anyone, who understands this question? :) -- Greetings, Balázs |
From: P.D. v. Z. <pa...@my...> - 2003-08-16 14:41:54
|
Is there anyone who can send an e-mail with the subject filled in? I think it's even the same person again... maybe someone should teach him how to send proper e-mails... Anyway... he wants to have a different background color than the default for his application. He doesn't specify what type of application however... console or GUI. -----Original Message----- From: dev...@li... [mailto:dev...@li...] On Behalf Of OROSZI Bal=E1zs Sent: Saturday, August 16, 2003 9:57 AM To: dev...@li... Subject: Re: [Dev-C++] (no subject) yiwei li wrote: > hihi is there anyone here know how to change the background color of > where you run the programme (not the text color). Thanks Is there anyone, who understands this question? :) -- Greetings, Bal=E1zs ------------------------------------------------------- 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/psa00100003ave/direct;at.aspnet_072303_01 /01 _______________________________________________ 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: <ten...@ne...> - 2003-08-16 15:51:07
|
-Console: I don't know how in code. But if you click on the console icon you can left-click in the icon, click on defaults or properties, select color and once you selected them and press Ok, in the last dialog which appears you select the option which is make this permanent for this link. -Windows GUI: In the code with the SetBKColor(HDC, COLORREF);That's in code for a concrete program. -Windows GUI: For any kind of program. Just equivalent to console, affecting all winGUI programs (if they select the background color according to system colors: Control Panel->diplay->Appearance. |
From: Dondolo M. <MDo...@OL...> - 2003-09-05 13:50:04
|
Can somebody help me with this code. asks you to enter a folder name and users chdir() to check if the folder does exist. I am trying to get it to device names and tell me if the device exist.....eg. my computer name is AN1490812... so I would like to find out if the divice name C:\\ does exit on my computer. Can anybody help? struct _finddata_t file; char name[64]; int main(void) { cout<<"Enter a folder name :"; cin>>name; chdir("C:\\"); long flag=0; if((flag=_findfirst(name,&file))==-1L) { cout<<"No matching files\n"; } else if(file.attrib &_A_SUBDIR) { cout<<"\\found \n"; } system("PAUSE"); return 0; } |
From: Min Li <li...@ex...> - 2003-09-06 04:16:10
|
Hi, I have a very basic C++, openGL programming problem. In openGL, how to read in a JPEG, PMM file and display it in a window? Thanks a lot. Min |
From: Smitha V. B. <smi...@so...> - 2003-09-09 06:51:12
|
Hi to all Anybody know a good downloadable book regarding Python... Thanks in advance...... Any help appreciated..... Smitha V.Babu System Analyst Sonata Software Ltd Embedded Systems Group Ph off ::080 6610330 Extn 1383 ********************************************************************* Disclaimer: The information in this e-mail and any attachments is confidential / privileged. It is intended solely for the addressee or addressees. If you are not the addressee indicated in this message, you may not copy or deliver this message to anyone. In such case, you should destroy this message and kindly notify the sender by reply email. Please advise immediately if you or your employer does not consent to Internet email for messages of this kind. ********************************************************************* |
From: vasanthsena x <vas...@ya...> - 2003-09-16 20:55:23
|
Hi, I am new to Dev Cpp and I have a question.When I run my program the window closes automatically without showing the result. How do i fix this problem. S. __________________________________ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com |
From: P.D. v. Z. <pa...@my...> - 2003-09-16 21:11:57
|
omfg ..... when will people learn to search for things first (either on the forum, the mailing list, or Google), or learn to read the FAQ :| This question has been asked and answered millions of times already. First of all, my opinion's that you should run a console app from a command prompt, where you'll never have this problem (where it will in fact only annoy you if it waits for dummy input after executing). Second, read the faq: http://www14.brinkster.com/aditsu/dev-cpp-faq.html#pause -----Original Message----- From: dev...@li... [mailto:dev...@li...] On Behalf Of vasanthsena x Sent: Tuesday, September 16, 2003 10:55 PM To: dev...@li... Subject: [Dev-C++] (no subject) Hi, I am new to Dev Cpp and I have a question.When I run my program the window closes automatically without showing the result. How do i fix this problem. S. __________________________________ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com ------------------------------------------------------- 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://www23.brinkster.com/noicys/devcpp/ub.htm https://lists.sourceforge.net/lists/listinfo/dev-cpp-users |
From: Eric <eri...@cl...> - 2003-09-16 21:27:57
|
thanks for that I bookmarked that URL in my favorites, I will read later. are there any more around? ----- Original Message ----- From: "P.D. van Zelst" <pa...@my...> To: "'vasanthsena x'" <vas...@ya...>; <dev...@li...> Sent: Wednesday, September 17, 2003 9:12 AM Subject: RE: [Dev-C++] (no subject) omfg ..... when will people learn to search for things first (either on the forum, the mailing list, or Google), or learn to read the FAQ :| This question has been asked and answered millions of times already. First of all, my opinion's that you should run a console app from a command prompt, where you'll never have this problem (where it will in fact only annoy you if it waits for dummy input after executing). Second, read the faq: http://www14.brinkster.com/aditsu/dev-cpp-faq.html#pause -----Original Message----- From: dev...@li... [mailto:dev...@li...] On Behalf Of vasanthsena x Sent: Tuesday, September 16, 2003 10:55 PM To: dev...@li... Subject: [Dev-C++] (no subject) Hi, I am new to Dev Cpp and I have a question.When I run my program the window closes automatically without showing the result. How do i fix this problem. S. __________________________________ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com ------------------------------------------------------- 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://www23.brinkster.com/noicys/devcpp/ub.htm https://lists.sourceforge.net/lists/listinfo/dev-cpp-users ------------------------------------------------------- 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://www23.brinkster.com/noicys/devcpp/ub.htm https://lists.sourceforge.net/lists/listinfo/dev-cpp-users |
From: Eric <eri...@cl...> - 2003-09-16 21:25:01
|
either get your program to ask for another input e.g. int main () { int a; cout << "hello chap\n" << endl; cin >> a; return 0; } or you can use the "pause" statement #include <stdio.h> int main() { printf("Hello !\n"); system("PAUSE"); } ----- Original Message ----- From: "vasanthsena x" <vas...@ya...> To: <dev...@li...> Sent: Wednesday, September 17, 2003 8:55 AM Subject: [Dev-C++] (no subject) Hi, I am new to Dev Cpp and I have a question.When I run my program the window closes automatically without showing the result. How do i fix this problem. S. __________________________________ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com ------------------------------------------------------- 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://www23.brinkster.com/noicys/devcpp/ub.htm https://lists.sourceforge.net/lists/listinfo/dev-cpp-users |
From: Jonathan G. <jgi...@ca...> - 2003-09-18 06:58:24
|
confirm 266871 |
From: Moses F. <fan...@ho...> - 2003-09-23 07:15:56
|
Hi, My name is Moses Fanai.I have just begun to write programes on C++.Id really appreciate it if you could tell me how to programe on winsocket(in C++).IS there any tool that could speed up the process.Thanks Moses _________________________________________________________________ Attention NRIs! Banking worries? http://server1.msn.co.in/msnspecials/nriservices/index.asp Get smart tips. |
From: chea s. o. <y2k...@ya...> - 2003-09-28 06:20:54
|
does anyone know can i use the following code? i want to write something into a binary file. the i will use another to read it? can anyone tell me if i can use the following in dev C++? i picked this example from a book but i can write the file but can't read from the binary file. 2 different files are as below: //this is the write file #include <iostream.h> #include <fstream> #include <stdlib.h> #include <string> using namespace std; struct person { protected : string name; int age ; public: void showdata() { cout<<" name: "<<name<<endl; cout<<" Age: "<<age<<endl; } void getdata() { cout<<"Enter name: ";getline(cin,name); cout<<"Enter Age: ";cin>>age; } }; int main() { person pers; fstream file; file.open("per.txt",ios::app|ios::binary|ios::in|ios::out); pers.getdata(); file.write(reinterpret_cast<char*>(&pers),sizeof(pers)); file.close(); file.seekg(0); system("PAUSE"); return 0; } // this is a read file #include <iostream.h> #include <fstream> #include <stdlib.h> #include <string> using namespace std; struct person { protected : string name; int age ; public: void showdata() { cout<<" name: "<<name<<endl; cout<<" Age: "<<age<<endl; } void getdata() { cout<<"Enter name: ";getline(cin,name); cout<<"Enter Age: ";cin>>age;; } } ; int main() { person pers; fstream file; file.open("per.txt",ios::binary|ios::app|ios::in|ios::out); file.seekg(0); file.read(reinterpret_cast<char*>(&pers),sizeof(pers)); pers.showdata(); file.read(reinterpret_cast<char*>(&pers),sizeof(pers)); system("PAUSE"); return 0; } tell me that u got after compile it with dev C++. Thanks and regard, ygod __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com |
From: xRxIxPx <xr...@gm...> - 2003-09-28 08:26:34
|
At 23:19 09/27/03 -0700, chea sin ong wrote: >does anyone know can i use the following code? >i want to write something into a binary file. the i >will use another to read it? can anyone tell me if i >can use the following in dev C++? i picked this >example from a book but i can write the file but can't >read from the binary file. That is, because you cannot just save every bit of an object (unless you are able to recreate the same runtime state on load as it was on save, but this is not a concept unless you are the os). The std::string will break your neck, because it uses dynamic allocated memory and pointers to it. When you save your file, you will save only a pointer value to a memory address which is no more valid when loading. You will have to create a write/read member function for your class, which uses the stream to save and load itself. >2 different files are as below: > >... >struct person >{ >protected : >string name; >int age ; >.... >file.write(reinterpret_cast<char*>(&pers),sizeof(pers)); > >.... >struct person >{ >protected : >string name; >int age ; >.... > >file.read(reinterpret_cast<char*>(&pers),sizeof(pers)); >.... |
From: Chin He Q. <he...@si...> - 2003-10-01 00:08:55
|
confirm 268897 |