<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-2841769816253210897</id><updated>2011-11-27T15:44:29.275-08:00</updated><title type='text'>MessageBox in win32 and C++</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://sanzillajackcat.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2841769816253210897/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://sanzillajackcat.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>sanzilla</name><uri>http://www.blogger.com/profile/02732205854512462484</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>5</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-2841769816253210897.post-114996579083427100</id><published>2009-06-01T03:50:00.000-07:00</published><updated>2009-06-01T10:52:22.059-07:00</updated><title type='text'>A war criminal inside the parliment</title><content type='html'>Finally the war is over and the peace is everywhere. people ride in the train &lt;br /&gt;without the fear of another suside bomb attack. The evil leader is dead and he is&lt;br /&gt;not comming back , the sri lanka is safe for another 100 years of time . Every&lt;br /&gt;languate speaking ppl can live in peace for a long time. Kids are learning about the&lt;br /&gt;history of this dirty war , so never will consider him as a hero and never follow &lt;br /&gt;a character like him. &lt;br /&gt;&lt;br /&gt;Tamil ppl also got the right to say their decision on a election. To vote to a &lt;br /&gt;leader that they are believe. But something sad was happened ,a war criminal &lt;br /&gt;was elected from the ppl's vote. :( too sad but nothing to do ! I have to say him&lt;br /&gt;a minister but I'm telling him a war criminal continiously , because he commit&lt;br /&gt;the crimes against the human beings.&lt;br /&gt;&lt;br /&gt;This is the picture of him .his name can begin with these prifex , &lt;br /&gt;Mr. , War Criminal. , Murder. or Killer. like this&lt;br /&gt;&lt;br /&gt;Yes his picture is this :&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.asiantribune.com/oldsite/news/10207-2.jpg"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 319px; height: 450px;" src="http://www.asiantribune.com/oldsite/news/10207-2.jpg" border="0" alt="" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;I think the our UMP Opposite side learder Mr. Ranil have a very good subject to&lt;br /&gt;talk and critize these days instead of going other countries and make some international trouble against our country.&lt;br /&gt;&lt;br /&gt;So why this happened ???? well I know the reasons now. But nothing we can do.&lt;br /&gt;But it's very hate to tell that  A WAR CRIMINAL IS SITTING AT THE PARLIMENT.&lt;br /&gt;&lt;br /&gt;the tamil ppl on that area are new to a election, they can't underestand what&lt;br /&gt;are the dirty chain behind the politics. Few tamil ppl are talking freely about&lt;br /&gt;their politics ,they don't likes to critize. Some tamil ppl can't participate&lt;br /&gt;to the election due to their "kulaya" . what the hell , infront of the law&lt;br /&gt;everyone is same no matter what is you'r so called "Kulaya" . &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;tamil as a set of ppl who got a beatiful cluture and they really a beatiful ppl&lt;br /&gt;that I really belive. There are so many valuable things in tamil cluture. Most of&lt;br /&gt;them are come with the hindu tradition , they most of them are vegeterians , I'm&lt;br /&gt;learning @ bambalapitiya day I go there for a class I eat only from a vegeterian&lt;br /&gt;shop. But why the hell they can't underestand that a war criminal inside the &lt;br /&gt;parliment to represent them. Well this is a  question not a comment , I asking this&lt;br /&gt;from all the tamil ppl why the hell you elect a war criminal into the parliment ,&lt;br /&gt;and the most sad thing is one of a tamil person that I knew told that in his&lt;br /&gt;web that he unable to participate to the election due to his low "Kulaya" , so&lt;br /&gt;so sad ! what is the better of a war criminal than a person who have a low "kulaya" ???? Please tell me that ? There is nothing better in a war criminal&lt;br /&gt;but most of the ppl in sri lanka even our hornable president is Unfortunate to&lt;br /&gt;tell him a Minister because we had to not because we likes to. &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;I'm again it's too sad to tell this again and again a WAR CRIMINAL INSIDE THE PARLIMENT.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2841769816253210897-114996579083427100?l=sanzillajackcat.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sanzillajackcat.blogspot.com/feeds/114996579083427100/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2841769816253210897&amp;postID=114996579083427100' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2841769816253210897/posts/default/114996579083427100'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2841769816253210897/posts/default/114996579083427100'/><link rel='alternate' type='text/html' href='http://sanzillajackcat.blogspot.com/2009/06/war-criminal-inside-parliment.html' title='A war criminal inside the parliment'/><author><name>sanzilla</name><uri>http://www.blogger.com/profile/02732205854512462484</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2841769816253210897.post-4296549393037680495</id><published>2009-01-10T06:35:00.000-08:00</published><updated>2009-01-10T06:48:25.700-08:00</updated><title type='text'>Why you not somebody's boy friends yet ?</title><content type='html'>Well I totally agree that romance is a natural human relationship&lt;br /&gt;well most of the Youth ppl are loving that relationship. But some&lt;br /&gt;are really not. May be that's due to the ate of biological hormone &lt;br /&gt;execution in their bodies , so I think it also a NATURAL thing.&lt;br /&gt;&lt;br /&gt;Well we all love the nature, what we got from the nature is really&lt;br /&gt;a gift for me. And I'm never going to say no thanks , thus I can't&lt;br /&gt;and I won't.&lt;br /&gt;&lt;br /&gt;Well I am a undergraduate student of BIT ( www.bit.lk) and I am 23 &lt;br /&gt;years old, so everybody asking from me why you not some body's boy&lt;br /&gt;friend ? well I also have to ask something back from them why you&lt;br /&gt;not some body's girl-friend(if female ) or boyfriend(if male).&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;and I want to clearly say them something , hay "You don't expect me&lt;br /&gt;to get married before you marry ! ha ha ha ha ha !"&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;well I clearly have a question form them , why you expect and search&lt;br /&gt;about someone's marriage or the relationship if you even don't have a one&lt;br /&gt;yet ! The truth and the naked answer is you expecting others to get married&lt;br /&gt;and see them in trouble. That means all the married ppl are in trouble.&lt;br /&gt;Anyway there is a truth thing , someday we should marry but that day&lt;br /&gt;is not today. well for me I am a undergraduate yet and I expect my&lt;br /&gt;academic life more than this. well for somebody it's oky. But that's&lt;br /&gt;my life.&lt;br /&gt;&lt;br /&gt;So I think I am doing the correct thing , I'm on the good side and &lt;br /&gt;the ppl who are talking like that in the evil side at all.&lt;br /&gt;&lt;br /&gt;anyway those poor ppl cannot talk directly with somebody also !&lt;br /&gt;&lt;br /&gt;I'm feeling sad about those guys and girls man !&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2841769816253210897-4296549393037680495?l=sanzillajackcat.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sanzillajackcat.blogspot.com/feeds/4296549393037680495/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2841769816253210897&amp;postID=4296549393037680495' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2841769816253210897/posts/default/4296549393037680495'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2841769816253210897/posts/default/4296549393037680495'/><link rel='alternate' type='text/html' href='http://sanzillajackcat.blogspot.com/2009/01/why-you-not-somebodys-boy-friends-yet.html' title='Why you not somebody&apos;s boy friends yet ?'/><author><name>sanzilla</name><uri>http://www.blogger.com/profile/02732205854512462484</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2841769816253210897.post-6265237194244439094</id><published>2009-01-08T07:36:00.000-08:00</published><updated>2009-01-08T07:38:05.972-08:00</updated><title type='text'>hack your ZTE 831 ADSL router</title><content type='html'>hi all , would you wonder what is the actual operating system inside your&lt;br /&gt;ADSL router ?&lt;br /&gt;&lt;br /&gt;well most probablly the answer is the linux ! wonder ? why it runs on a powerful 32-bit processor.&lt;br /&gt;Don't be fan too much. That's it.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;let me show you with the evidance ,&lt;br /&gt;first of all you needs to log into the router using your telnet program , just click windows key and R and&lt;br /&gt;on the run , just type telnet 192.168.1.1 , the default router address for ZTE 831&lt;br /&gt;&lt;p style="text-align: left;"&gt;&lt;img src="http://api.ning.com/files/p72OUgqW93YK489QX3LKeTLDgrWLZsMwg-MJT7o9DHOT*7xIcii6PS1Gm4VJMbO8l23ycIjY254qaZYK4LMYkHDTxmwTbUOB/logintorouter.bmp" alt="" width="351" height="187"/&gt;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;so then you will see a prompt asking the login name and the password , and the ZTE corp welcome message is also there.&lt;br /&gt;&lt;p style="text-align: left;"&gt;&lt;img src="http://api.ning.com/files/p72OUgqW93bXk5C6tuHdF4LXMD-T3l6MjaptRmQcRWPDKlmcjZq7Lbrz**uTIrOjNN1Y3lo4dvcwq6WN6gxmSjeUdIeMXHPW/processorinfo.bmp" alt="" width="675" height="845"/&gt;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;try the those commands , cat /proc/meminfo for memory information and cat /proc/cpuinfo for cpu info ,&lt;br /&gt;you can see that ZTE 831 device is on a 32 bit CPU core.&lt;br /&gt;&lt;br /&gt;he he the cat command they saves that command on the /bin there , oky lets hack into deep.&lt;br /&gt;&lt;br /&gt;the fun part is as the cat command , all the things inside the /bin are executing , so therefore : is there is sh&lt;br /&gt;shell in that directory we can go to the shell of this router operating system. he he.So why don't we give up&lt;br /&gt;a try ! ?&lt;br /&gt;here .&lt;br /&gt;&lt;p style="text-align: left;"&gt;&lt;img src="http://api.ning.com/files/p72OUgqW93ZVJMV0ADUWoQqHBa3jhsEnjAFi5ow2p8RuwWQ3N8T61JCeoktri8MH9753uIH8WCq5F6jBKimeVC2I-xanh2Zj/shell.bmp" alt="" width="671" height="341"/&gt;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;now the fun part is this , sometimes those SLT engineers are 1000 talks about their SLT icons inside that web login of the router.I directly ask from them , but he said that it's an company secret. Well it's time to hack where it was. well if they are using the linux and GNU , they should open the source code and the binary versions too.&lt;br /&gt;he he.&lt;br /&gt;anyway this is fun , there is a directory called&lt;br /&gt;/webs&lt;br /&gt;&lt;br /&gt;see this pic , all are there. he he he he he he he .&lt;br /&gt;&lt;br /&gt;&lt;p style="text-align: left;"&gt;&lt;img src="http://api.ning.com/files/djPAREWSbNC*0mVedYLNjJ8QQDtB2vpGvYACkiB1frqYbanCW2WseeFO5FXtzELlT0SeYdvrtCWp2R1SdtsdGiu8FXdV147I/webs.GIF" alt="" width="669" height="990"/&gt;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;Oky guys enoughf fun for today.&lt;br /&gt;Let me go to the sleep with the laughf ! anyway they have to open the source code . he he. But sometimes never&lt;br /&gt;mind ! may be not , he he he he he !&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;-- good internet user&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2841769816253210897-6265237194244439094?l=sanzillajackcat.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sanzillajackcat.blogspot.com/feeds/6265237194244439094/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2841769816253210897&amp;postID=6265237194244439094' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2841769816253210897/posts/default/6265237194244439094'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2841769816253210897/posts/default/6265237194244439094'/><link rel='alternate' type='text/html' href='http://sanzillajackcat.blogspot.com/2009/01/hack-your-zte-831-adsl-router.html' title='hack your ZTE 831 ADSL router'/><author><name>sanzilla</name><uri>http://www.blogger.com/profile/02732205854512462484</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2841769816253210897.post-4113412759627517454</id><published>2008-12-11T01:03:00.000-08:00</published><updated>2008-12-11T01:46:52.259-08:00</updated><title type='text'>Your First program in J2ME</title><content type='html'>&lt;span style="font-weight: bold;font-family:courier new;" &gt;a little introduction to the J2ME&lt;/span&gt;&lt;br /&gt;well it stands for the java 2 Mobil Edition. There are other two versions , J2SE and J2EE.&lt;br /&gt;However, the J2ME also runs on a virtual machine , but due to the constrains in the&lt;br /&gt;hardware and software resources in the small devices ( what is J2ME target for ) , the J2ME&lt;br /&gt;virtual machine is somewhat different from the J2SE and J2EE virtual machines. It's commonly&lt;br /&gt;known as alias KVM ( the killobyte virtual machine ).&lt;br /&gt;&lt;br /&gt;however today we are going to develop a  simple J2ME mobil phone application. well J2ME has a&lt;br /&gt;big scope than the writing just software for the mobil markert. well J2ME covers even writing&lt;br /&gt;software for even your television , washing machines like these small or large size devices&lt;br /&gt;that have small computing resources.( well computing resources means hardware resources like&lt;br /&gt;memory storage and computing speed  , and software resources like threads processes , operating&lt;br /&gt;systems , libraries and so on ...) .Think this is different from the normal desktop computing environments and server computing environments(high end computing).  The application&lt;br /&gt;programming for these kind of devices are just normally doing with special tools , cross compilers&lt;br /&gt;and simulators like software tools and in-circuit debuggers , circuit probes like hardware tools.&lt;br /&gt;well that's how the software for the embedded computers are developing. But in the J2ME ,&lt;br /&gt;we just use just the java compiler but with different libraries to compile it , and for testing we&lt;br /&gt;are using simulators. well today J2ME simulators are compltely prefect actually have less bugs&lt;br /&gt;.Trully speaking leass and leass bugs. so feel free to use them. and those simulators supports&lt;br /&gt;a good amount of debugging. so it's very easy to find your bugs in your program. And the&lt;br /&gt;IDE's like the Netbeans are there for free of charge to make this development more babish.&lt;br /&gt;so unlike other embedded software development the J2ME is just easy.&lt;br /&gt;&lt;br /&gt;Allright the tools like the netbeans already avilaible for you ne. Then feel free to use them. Just&lt;br /&gt;go to the www.netbeans.org and download a Netbeans pack that have J2ME integraded.&lt;br /&gt;Opps , before you install the netbeans you need to install the JDK 5.0 or higher. Well they&lt;br /&gt;are free. Then download them and install them.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;font-family:courier new;" &gt;Come to the Netbeans then , here we goes.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:arial;"&gt;well netbeans is a IDE , that makes the programmers life babish. Believe me you just only need&lt;br /&gt;some more mouse clicks and moves to compile and run your first J2ME mobil phone application.&lt;br /&gt;&lt;br /&gt;well first open the Netbeans.&lt;br /&gt;&lt;br /&gt;well go to the file menu and click new project.&lt;br /&gt;select mobility and MIDP application.&lt;br /&gt;&lt;/span&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_21XivFRfTyc/SUDf2hAq7QI/AAAAAAAAABI/SNBVujJGPLU/s1600-h/firstj2me.JPG"&gt;&lt;img style="cursor: pointer; width: 320px; height: 221px;" src="http://3.bp.blogspot.com/_21XivFRfTyc/SUDf2hAq7QI/AAAAAAAAABI/SNBVujJGPLU/s320/firstj2me.JPG" alt="" id="BLOGGER_PHOTO_ID_5278464890945334530" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;and then click next . and then next screen give project name , location and folder ( your choices ).&lt;br /&gt;and make sure that "set as main project" and "Create Hello MIDlet" ticked. then press finish.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_21XivFRfTyc/SUDgruYIzcI/AAAAAAAAABQ/iO_0SRbA2s8/s1600-h/second-j2me.GIF"&gt;&lt;img style="cursor: pointer; width: 320px; height: 219px;" src="http://1.bp.blogspot.com/_21XivFRfTyc/SUDgruYIzcI/AAAAAAAAABQ/iO_0SRbA2s8/s320/second-j2me.GIF" alt="" id="BLOGGER_PHOTO_ID_5278465805066489282" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;then compile the project using the 'build' menu 'build main project'. and run it using the 'run' menu 'run main project'&lt;br /&gt;&lt;br /&gt;then on the simulator just laungh the midlet.&lt;br /&gt;you can see "Hello World" on the simulator.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2841769816253210897-4113412759627517454?l=sanzillajackcat.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sanzillajackcat.blogspot.com/feeds/4113412759627517454/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2841769816253210897&amp;postID=4113412759627517454' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2841769816253210897/posts/default/4113412759627517454'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2841769816253210897/posts/default/4113412759627517454'/><link rel='alternate' type='text/html' href='http://sanzillajackcat.blogspot.com/2008/12/your-first-program-in-j2me.html' title='Your First program in J2ME'/><author><name>sanzilla</name><uri>http://www.blogger.com/profile/02732205854512462484</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_21XivFRfTyc/SUDf2hAq7QI/AAAAAAAAABI/SNBVujJGPLU/s72-c/firstj2me.JPG' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-2841769816253210897.post-7950395986566348377</id><published>2008-12-11T00:34:00.000-08:00</published><updated>2008-12-11T00:55:10.563-08:00</updated><title type='text'>DEV C++ the problem with the system("PAUSE")</title><content type='html'>when you are writing a console mode win32 application using DEV C++ IDE , this is the&lt;br /&gt;automatically generated main method that you get.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; font-family: courier new;"&gt;int main(int argc, char *argv[])&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold; font-family: courier new;"&gt;{&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold; font-family: courier new;"&gt;     system("PAUSE");&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold; font-family: courier new;"&gt;     return EXIT_SUCCESS;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold; font-family: courier new;"&gt;}&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;some strange things are there , well nothing to worry , EXIT_SUCCESS is already defined as 0 .&lt;br /&gt;so it's same like you saying&lt;br /&gt;  &lt;br /&gt;   return 0;&lt;br /&gt;&lt;br /&gt;anyway , what's the hell that system("PAUSE") , well&lt;br /&gt;"PAUSE" is just a dos command , you can also "dir /p" or run any dos command using like that.&lt;br /&gt;&lt;br /&gt;Just change your main method like this and compile and run.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; font-family: courier new;"&gt;int main(int argc, char *argv[])&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold; font-family: courier new;"&gt;{&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold; font-family: courier new;"&gt;    system( "dir /p");&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold; font-family: courier new;"&gt;    system ( "PAUSE");&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold; font-family: courier new;"&gt;    &lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold; font-family: courier new;"&gt;    return EXIT_SUCCESS;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold; font-family: courier new;"&gt;}&lt;/span&gt;&lt;span style="font-family: courier new;"&gt;&lt;span style="font-family: arial;"&gt;&lt;span style="font-family: arial;"&gt;&lt;br /&gt;then you will get the directory listing like this ,&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_21XivFRfTyc/SUDSP57T0rI/AAAAAAAAABA/2CnR1tRXcy8/s1600-h/blogpost.GIF"&gt;&lt;img style="cursor: pointer; width: 320px; height: 162px;" src="http://1.bp.blogspot.com/_21XivFRfTyc/SUDSP57T0rI/AAAAAAAAABA/2CnR1tRXcy8/s320/blogpost.GIF" alt="" id="BLOGGER_PHOTO_ID_5278449933967676082" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;so you now know what's this strange system("PAUSE"); really means is .&lt;br /&gt;what it actually doing is ,&lt;br /&gt;&lt;ol type="1"&gt;&lt;li&gt;&lt;p&gt;suspend your program&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;call the operating system&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;open an operating system shell (relaunches the O/S in a sub-process)&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;the O/S must now find the &lt;samp&gt;PAUSE&lt;/samp&gt; command&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;allocate the memory to execute the command&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;execute the command and wait for a keystroke&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;deallocate the memory&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;exit the OS&lt;/p&gt;&lt;/li&gt;&lt;li&gt;&lt;p&gt;resume your program&lt;/p&gt;&lt;/li&gt;&lt;/ol&gt;so brother why this becomes a trouble for a learner , that who is newbie for the C++ programming language ?&lt;br /&gt;well learning object oriented ... just write bellow simple program and see what happens .&lt;br /&gt;&lt;span style="font-family: courier new; font-weight: bold;"&gt;#include &lt;cstdlib&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new; font-weight: bold;"&gt;#include &lt;iostream&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: courier new; font-weight: bold;"&gt;using namespace std;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: courier new; font-weight: bold;"&gt;class A&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new; font-weight: bold;"&gt;{&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new; font-weight: bold;"&gt;public:      &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new; font-weight: bold;"&gt;      // the constructor&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new; font-weight: bold;"&gt;      A()&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new; font-weight: bold;"&gt;      {&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new; font-weight: bold;"&gt;             cout&lt;&lt; " The constructor called " &lt;&lt; '\n';&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new; font-weight: bold;"&gt;      }&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new; font-weight: bold;"&gt;      &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new; font-weight: bold;"&gt;      // the copy constructor&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new; font-weight: bold;"&gt;      A(const  A&amp;amp; a )&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new; font-weight: bold;"&gt;      {&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new; font-weight: bold;"&gt;            cout &lt;&lt; " The copy constructor is called" &lt;&lt; '\n';&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new; font-weight: bold;"&gt;      }&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new; font-weight: bold;"&gt;      &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new; font-weight: bold;"&gt;      ~A()&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new; font-weight: bold;"&gt;      {&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new; font-weight: bold;"&gt;          cout &lt;&lt; "The destructor is called "&lt;&lt; '\n';          &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new; font-weight: bold;"&gt;      }&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new; font-weight: bold;"&gt;};&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: courier new; font-weight: bold;"&gt;void takeA(const A&amp;amp; a )&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new; font-weight: bold;"&gt;{&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new; font-weight: bold;"&gt;     &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new; font-weight: bold;"&gt;}&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new; font-weight: bold;"&gt;int main(int argc, char *argv[])&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new; font-weight: bold;"&gt;{&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new; font-weight: bold;"&gt;    A a ; &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new; font-weight: bold;"&gt;    // the constructor must be called.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new; font-weight: bold;"&gt;    system ( "PAUSE");&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new; font-weight: bold;"&gt;    return EXIT_SUCCESS;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new; font-weight: bold;"&gt;}   // the destructor must be called.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;well but the output is just like this ,&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;&lt;span style="font-family: courier new;"&gt; The constructor is called&lt;br /&gt; Press any key to continue....&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: courier new;"&gt;&lt;span style="font-family: arial;"&gt;well where is the destructor call ? well my friend Press any key to continue is comes from the PAUSE dos command. If you are not sure just go to the command prompt and type PAUSE and&lt;br /&gt;see what happened.&lt;br /&gt;so the destructor will be called after that. But you will unable to see it unless you run this program&lt;br /&gt;using the command prompt. But if you run this on the command prompt window , you will see like this .              13 Dir(s)   6,477,045,760 bytes free&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: courier new; font-weight: bold;"&gt;G:\Dev-Cpp&gt;main&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new; font-weight: bold;"&gt; The constructor called&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new; font-weight: bold;"&gt;Press any key to continue . . .&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new; font-weight: bold;"&gt;The destructor is called&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: courier new; font-weight: bold;"&gt;G:\Dev-Cpp&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;so that's all the magic of the system("pause") as same as system("PAUSE");&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/2841769816253210897-7950395986566348377?l=sanzillajackcat.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sanzillajackcat.blogspot.com/feeds/7950395986566348377/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=2841769816253210897&amp;postID=7950395986566348377' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2841769816253210897/posts/default/7950395986566348377'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2841769816253210897/posts/default/7950395986566348377'/><link rel='alternate' type='text/html' href='http://sanzillajackcat.blogspot.com/2008/12/dev-c-problem-with-systempause.html' title='DEV C++ the problem with the system(&quot;PAUSE&quot;)'/><author><name>sanzilla</name><uri>http://www.blogger.com/profile/02732205854512462484</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_21XivFRfTyc/SUDSP57T0rI/AAAAAAAAABA/2CnR1tRXcy8/s72-c/blogpost.GIF' height='72' width='72'/><thr:total>0</thr:total></entry></feed>
