tag:blogger.com,1999:blog-59694189202215455712024-03-14T01:47:33.518-07:00C++ മലയാളം TutorialAbid Omarhttp://www.blogger.com/profile/17710987984717643487noreply@blogger.comBlogger5125tag:blogger.com,1999:blog-5969418920221545571.post-78234459233917577992012-09-29T02:45:00.002-07:002012-09-29T02:45:54.846-07:00പ്രൈം നമ്പര് കണ്ടെത്താം.<div dir="ltr" style="text-align: left;" trbidi="on">
ഒരു സംഖ്യ പ്രൈം നമ്പര് ആണോ എന്ന് കണ്ടെത്താനുള്ള പ്രോഗ്രാം.<br /><br /><br />
<br />
<div class="MsoListParagraphCxSpFirst" style="background-color: white; border: none; font-family: Georgia, Utopia, 'Palatino Linotype', Palatino, serif; font-size: 20px; line-height: 28px; margin: 0in 0in 0.0001pt 0.25in; padding: 0in; text-align: justify; text-indent: -0.25in;">
<span style="color: #008040; font-family: 'Courier New'; font-size: 12pt; letter-spacing: 1pt;"><span style="font-family: 'Times New Roman'; font-size: 7pt;"> </span></span><span style="color: #008040; font-family: 'Courier New'; font-size: 12pt; letter-spacing: 1pt; text-indent: -0.25in;"><span style="font-family: 'Times New Roman'; font-size: 7pt;"> </span>1.<span style="font-family: 'Times New Roman'; font-size: 7pt;"> </span></span><span dir="LTR" style="text-indent: -0.25in;"></span><b style="text-indent: -0.25in;"><span style="color: #008040; font-family: 'Courier New'; font-size: 12pt;">#include<iostream.h></span></b></div>
<div class="MsoListParagraphCxSpMiddle" style="background-color: white; border: none; font-family: Georgia, Utopia, 'Palatino Linotype', Palatino, serif; font-size: 20px; line-height: 28px; margin: 0in 0in 0.0001pt 0.25in; padding: 0in; text-align: justify; text-indent: -0.25in;">
<span style="color: #008040; font-family: 'Courier New'; font-size: 12pt; letter-spacing: 1pt;"><span style="font-family: 'Times New Roman'; font-size: 7pt;"> </span>2.<span style="font-family: 'Times New Roman'; font-size: 7pt;"> </span></span><span dir="LTR"></span><b><span style="color: #008040; font-family: 'Courier New'; font-size: 12pt;">#include<conio.h><o:p></o:p></span></b></div>
<div class="MsoListParagraphCxSpMiddle" style="background-color: white; border: none; font-family: Georgia, Utopia, 'Palatino Linotype', Palatino, serif; font-size: 20px; line-height: 28px; margin: 0in 0in 0.0001pt 0.25in; padding: 0in; text-align: justify; text-indent: -0.25in;">
<span style="font-family: 'Courier New'; font-size: 12pt; letter-spacing: 1pt;"><span style="font-family: 'Times New Roman'; font-size: 7pt;"> </span>3.<span style="font-family: 'Times New Roman'; font-size: 7pt;"> </span></span><span dir="LTR"></span><b><span style="color: blue; font-family: 'Courier New'; font-size: 12pt;">void</span></b><b><span style="font-family: 'Courier New'; font-size: 12pt;"> main</span></b><b><span style="color: red; font-family: 'Courier New'; font-size: 12pt;">()</span></b><b><span style="font-family: 'Courier New'; font-size: 12pt;"><o:p></o:p></span></b></div>
<div class="MsoListParagraphCxSpMiddle" style="background-color: white; border: none; font-family: Georgia, Utopia, 'Palatino Linotype', Palatino, serif; font-size: 20px; line-height: 28px; margin: 0in 0in 0.0001pt 0.25in; padding: 0in; text-align: justify; text-indent: -0.25in;">
<span style="font-family: 'Courier New'; font-size: 12pt; letter-spacing: 1pt;"><span style="font-family: 'Times New Roman'; font-size: 7pt;"> </span>4.<span style="font-family: 'Times New Roman'; font-size: 7pt;"> </span></span><span dir="LTR"></span><b><span style="color: red; font-family: 'Courier New'; font-size: 12pt;">{</span></b><b><span style="font-family: 'Courier New'; font-size: 12pt;"><o:p></o:p></span></b></div>
<div class="MsoListParagraphCxSpMiddle" style="background-color: white; border: none; font-family: Georgia, Utopia, 'Palatino Linotype', Palatino, serif; font-size: 20px; line-height: 28px; margin: 0in 0in 0.0001pt 0.25in; padding: 0in; text-align: justify; text-indent: -0.25in;">
<span style="color: grey; font-family: 'Courier New'; font-size: 12pt; letter-spacing: 1pt;"><span style="font-family: 'Times New Roman'; font-size: 7pt;"> </span>5.<span style="font-family: 'Times New Roman'; font-size: 7pt;"> </span></span><span dir="LTR"></span><b><span style="color: grey; font-family: 'Courier New'; font-size: 12pt;"> //clrscr();<o:p></o:p></span></b></div>
<div class="MsoListParagraphCxSpMiddle" style="background-color: white; border: none; font-family: Georgia, Utopia, 'Palatino Linotype', Palatino, serif; font-size: 20px; line-height: 28px; margin: 0in 0in 0.0001pt 0.25in; padding: 0in; text-align: justify; text-indent: -0.25in;">
<span style="font-family: 'Courier New'; font-size: 12pt; letter-spacing: 1pt;"><span style="font-family: 'Times New Roman'; font-size: 7pt;"> </span>6.<span style="font-family: 'Times New Roman'; font-size: 7pt;"> </span></span><span dir="LTR"></span><b><span style="color: blue; font-family: 'Courier New'; font-size: 12pt;"> int</span></b><b><span style="font-family: 'Courier New'; font-size: 12pt;"> number</span></b><b><span style="color: red; font-family: 'Courier New'; font-size: 12pt;">,</span></b><b><span style="font-family: 'Courier New'; font-size: 12pt;">count</span></b><b><span style="color: red; font-family: 'Courier New'; font-size: 12pt;">=0;</span></b><b><span style="font-family: 'Courier New'; font-size: 12pt;"><o:p></o:p></span></b></div>
<div class="MsoListParagraphCxSpMiddle" style="background-color: white; border: none; font-family: Georgia, Utopia, 'Palatino Linotype', Palatino, serif; font-size: 20px; line-height: 28px; margin: 0in 0in 0.0001pt 0.25in; padding: 0in; text-align: justify; text-indent: -0.25in;">
<span style="font-family: 'Courier New'; font-size: 12pt; letter-spacing: 1pt;"><span style="font-family: 'Times New Roman'; font-size: 7pt;"> </span>7.<span style="font-family: 'Times New Roman'; font-size: 7pt;"> </span></span><span dir="LTR"></span><b><span style="font-family: 'Courier New'; font-size: 12pt;"> cout</span></b><b><span style="color: red; font-family: 'Courier New'; font-size: 12pt;"><<</span></b><b><span style="color: blue; font-family: 'Courier New'; font-size: 12pt;">"ENTER NUMBER TO <span class="IL_AD" id="IL_AD2" style="background-attachment: scroll !important; background-color: transparent !important; background-image: none !important; background-position: 0% 50%; background-repeat: repeat repeat !important; border-bottom-color: rgb(0, 0, 255) !important; border-bottom-style: dotted !important; border-bottom-width: 1px !important; cursor: pointer !important; display: inline !important; float: none !important; padding: 0px 0px 1px !important; position: static;">CHECK IT</span> IS PRIME OR NOT "</span></b><b><span style="color: red; font-family: 'Courier New'; font-size: 12pt;">;</span></b><b><span style="font-family: 'Courier New'; font-size: 12pt;"><o:p></o:p></span></b></div>
<div class="MsoListParagraphCxSpMiddle" style="background-color: white; border: none; font-family: Georgia, Utopia, 'Palatino Linotype', Palatino, serif; font-size: 20px; line-height: 28px; margin: 0in 0in 0.0001pt 0.25in; padding: 0in; text-align: justify; text-indent: -0.25in;">
<span style="font-family: 'Courier New'; font-size: 12pt; letter-spacing: 1pt;"><span style="font-family: 'Times New Roman'; font-size: 7pt;"> </span>8.<span style="font-family: 'Times New Roman'; font-size: 7pt;"> </span></span><span dir="LTR"></span><b><span style="font-family: 'Courier New'; font-size: 12pt;"> cin</span></b><b><span style="color: red; font-family: 'Courier New'; font-size: 12pt;">>></span></b><b><span style="font-family: 'Courier New'; font-size: 12pt;">number</span></b><b><span style="color: red; font-family: 'Courier New'; font-size: 12pt;">;</span></b><b><span style="font-family: 'Courier New'; font-size: 12pt;"><o:p></o:p></span></b></div>
<div class="MsoListParagraphCxSpMiddle" style="background-color: white; border: none; font-family: Georgia, Utopia, 'Palatino Linotype', Palatino, serif; font-size: 20px; line-height: 28px; margin: 0in 0in 0.0001pt 0.25in; padding: 0in; text-align: justify; text-indent: -0.25in;">
<span style="font-family: 'Courier New'; font-size: 12pt; letter-spacing: 1pt;"><span style="font-family: 'Times New Roman'; font-size: 7pt;"> </span>9.<span style="font-family: 'Times New Roman'; font-size: 7pt;"> </span></span><span dir="LTR"></span><b><span style="color: blue; font-family: 'Courier New'; font-size: 12pt;"> for</span></b><b><span style="color: red; font-family: 'Courier New'; font-size: 12pt;">(</span></b><b><span style="color: blue; font-family: 'Courier New'; font-size: 12pt;">int</span></b><b><span style="font-family: 'Courier New'; font-size: 12pt;"> a</span></b><b><span style="color: red; font-family: 'Courier New'; font-size: 12pt;">=1;</span></b><b><span style="font-family: 'Courier New'; font-size: 12pt;">a</span></b><b><span style="color: red; font-family: 'Courier New'; font-size: 12pt;"><=</span></b><b><span style="font-family: 'Courier New'; font-size: 12pt;">number</span></b><b><span style="color: red; font-family: 'Courier New'; font-size: 12pt;">;</span></b><b><span style="font-family: 'Courier New'; font-size: 12pt;">a</span></b><b><span style="color: red; font-family: 'Courier New'; font-size: 12pt;">++)</span></b><b><span style="font-family: 'Courier New'; font-size: 12pt;"><o:p></o:p></span></b></div>
<div class="MsoListParagraphCxSpMiddle" style="background-color: white; border: none; font-family: Georgia, Utopia, 'Palatino Linotype', Palatino, serif; font-size: 20px; line-height: 28px; margin: 0in 0in 0.0001pt 0.25in; padding: 0in; text-align: justify; text-indent: -0.25in;">
<span style="font-family: 'Courier New'; font-size: 12pt; letter-spacing: 1pt;"><span style="font-family: 'Times New Roman'; font-size: 7pt;"> </span>10.<span style="font-family: 'Times New Roman'; font-size: 7pt;"> </span></span><span dir="LTR"></span><b><span style="color: red; font-family: 'Courier New'; font-size: 12pt;"> {</span></b><b><span style="font-family: 'Courier New'; font-size: 12pt;"><o:p></o:p></span></b></div>
<div class="MsoListParagraphCxSpMiddle" style="background-color: white; border: none; font-family: Georgia, Utopia, 'Palatino Linotype', Palatino, serif; font-size: 20px; line-height: 28px; margin: 0in 0in 0.0001pt 0.25in; padding: 0in; text-align: justify; text-indent: -0.25in;">
<span style="font-family: 'Courier New'; font-size: 12pt; letter-spacing: 1pt;"><span style="font-family: 'Times New Roman'; font-size: 7pt;"> </span>11.<span style="font-family: 'Times New Roman'; font-size: 7pt;"> </span></span><span dir="LTR"></span><b><span style="color: blue; font-family: 'Courier New'; font-size: 12pt;"> if</span></b><b><span style="color: red; font-family: 'Courier New'; font-size: 12pt;">(</span></b><b><span style="font-family: 'Courier New'; font-size: 12pt;">number</span></b><b><span style="color: red; font-family: 'Courier New'; font-size: 12pt;">%</span></b><b><span style="font-family: 'Courier New'; font-size: 12pt;">a</span></b><b><span style="color: red; font-family: 'Courier New'; font-size: 12pt;">==0)</span></b><b><span style="font-family: 'Courier New'; font-size: 12pt;"><o:p></o:p></span></b></div>
<div class="MsoListParagraphCxSpMiddle" style="background-color: white; border: none; font-family: Georgia, Utopia, 'Palatino Linotype', Palatino, serif; font-size: 20px; line-height: 28px; margin: 0in 0in 0.0001pt 0.25in; padding: 0in; text-align: justify; text-indent: -0.25in;">
<span style="font-family: 'Courier New'; font-size: 12pt; letter-spacing: 1pt;"><span style="font-family: 'Times New Roman'; font-size: 7pt;"> </span>12.<span style="font-family: 'Times New Roman'; font-size: 7pt;"> </span></span><span dir="LTR"></span><b><span style="color: red; font-family: 'Courier New'; font-size: 12pt;"> {</span></b><b><span style="font-family: 'Courier New'; font-size: 12pt;"><o:p></o:p></span></b></div>
<div class="MsoListParagraphCxSpMiddle" style="background-color: white; border: none; font-family: Georgia, Utopia, 'Palatino Linotype', Palatino, serif; font-size: 20px; line-height: 28px; margin: 0in 0in 0.0001pt 0.25in; padding: 0in; text-align: justify; text-indent: -0.25in;">
<span style="font-family: 'Courier New'; font-size: 12pt; letter-spacing: 1pt;"><span style="font-family: 'Times New Roman'; font-size: 7pt;"> </span>13.<span style="font-family: 'Times New Roman'; font-size: 7pt;"> </span></span><span dir="LTR"></span><b><span style="font-family: 'Courier New'; font-size: 12pt;"> count</span></b><b><span style="color: red; font-family: 'Courier New'; font-size: 12pt;">++;</span></b><b><span style="font-family: 'Courier New'; font-size: 12pt;"><o:p></o:p></span></b></div>
<div class="MsoListParagraphCxSpMiddle" style="background-color: white; border: none; font-family: Georgia, Utopia, 'Palatino Linotype', Palatino, serif; font-size: 20px; line-height: 28px; margin: 0in 0in 0.0001pt 0.25in; padding: 0in; text-align: justify; text-indent: -0.25in;">
<span style="font-family: 'Courier New'; font-size: 12pt; letter-spacing: 1pt;"><span style="font-family: 'Times New Roman'; font-size: 7pt;"> </span>14.<span style="font-family: 'Times New Roman'; font-size: 7pt;"> </span></span><span dir="LTR"></span><b><span style="color: red; font-family: 'Courier New'; font-size: 12pt;"> }</span></b><b><span style="font-family: 'Courier New'; font-size: 12pt;"><o:p></o:p></span></b></div>
<div class="MsoListParagraphCxSpMiddle" style="background-color: white; border: none; font-family: Georgia, Utopia, 'Palatino Linotype', Palatino, serif; font-size: 20px; line-height: 28px; margin: 0in 0in 0.0001pt 0.25in; padding: 0in; text-align: justify; text-indent: -0.25in;">
<span style="font-family: 'Courier New'; font-size: 12pt; letter-spacing: 1pt;"><span style="font-family: 'Times New Roman'; font-size: 7pt;"> </span>15.<span style="font-family: 'Times New Roman'; font-size: 7pt;"> </span></span><span dir="LTR"></span><b><span style="color: red; font-family: 'Courier New'; font-size: 12pt;"> }</span></b><b><span style="font-family: 'Courier New'; font-size: 12pt;"><o:p></o:p></span></b></div>
<div class="MsoListParagraphCxSpMiddle" style="background-color: white; border: none; font-family: Georgia, Utopia, 'Palatino Linotype', Palatino, serif; font-size: 20px; line-height: 28px; margin: 0in 0in 0.0001pt 0.25in; padding: 0in; text-align: justify; text-indent: -0.25in;">
<span style="font-family: 'Courier New'; font-size: 12pt; letter-spacing: 1pt;"><span style="font-family: 'Times New Roman'; font-size: 7pt;"> </span>16.<span style="font-family: 'Times New Roman'; font-size: 7pt;"> </span></span><span dir="LTR"></span><b><span style="color: blue; font-family: 'Courier New'; font-size: 12pt;">if</span></b><b><span style="color: red; font-family: 'Courier New'; font-size: 12pt;">(</span></b><b><span style="font-family: 'Courier New'; font-size: 12pt;">count</span></b><b><span style="color: red; font-family: 'Courier New'; font-size: 12pt;">==2)</span></b><b><span style="font-family: 'Courier New'; font-size: 12pt;"><o:p></o:p></span></b></div>
<div class="MsoListParagraphCxSpMiddle" style="background-color: white; border: none; font-family: Georgia, Utopia, 'Palatino Linotype', Palatino, serif; font-size: 20px; line-height: 28px; margin: 0in 0in 0.0001pt 0.25in; padding: 0in; text-align: justify; text-indent: -0.25in;">
<span style="font-family: 'Courier New'; font-size: 12pt; letter-spacing: 1pt;"><span style="font-family: 'Times New Roman'; font-size: 7pt;"> </span>17.<span style="font-family: 'Times New Roman'; font-size: 7pt;"> </span></span><span dir="LTR"></span><b><span style="color: red; font-family: 'Courier New'; font-size: 12pt;"> {</span></b><b><span style="font-family: 'Courier New'; font-size: 12pt;"><o:p></o:p></span></b></div>
<div class="MsoListParagraphCxSpMiddle" style="background-color: white; border: none; font-family: Georgia, Utopia, 'Palatino Linotype', Palatino, serif; font-size: 20px; line-height: 28px; margin: 0in 0in 0.0001pt 0.25in; padding: 0in; text-align: justify; text-indent: -0.25in;">
<span style="font-family: 'Courier New'; font-size: 12pt; letter-spacing: 1pt;"><span style="font-family: 'Times New Roman'; font-size: 7pt;"> </span>18.<span style="font-family: 'Times New Roman'; font-size: 7pt;"> </span></span><span dir="LTR"></span><b><span style="font-family: 'Courier New'; font-size: 12pt;"> cout</span></b><b><span style="color: red; font-family: 'Courier New'; font-size: 12pt;"><<</span></b><b><span style="color: blue; font-family: 'Courier New'; font-size: 12pt;">" PRIME NUMBER \n"</span></b><b><span style="color: red; font-family: 'Courier New'; font-size: 12pt;">;</span></b><b><span style="font-family: 'Courier New'; font-size: 12pt;"><o:p></o:p></span></b></div>
<div class="MsoListParagraphCxSpMiddle" style="background-color: white; border: none; font-family: Georgia, Utopia, 'Palatino Linotype', Palatino, serif; font-size: 20px; line-height: 28px; margin: 0in 0in 0.0001pt 0.25in; padding: 0in; text-align: justify; text-indent: -0.25in;">
<span style="font-family: 'Courier New'; font-size: 12pt; letter-spacing: 1pt;"><span style="font-family: 'Times New Roman'; font-size: 7pt;"> </span>19.<span style="font-family: 'Times New Roman'; font-size: 7pt;"> </span></span><span dir="LTR"></span><b><span style="color: red; font-family: 'Courier New'; font-size: 12pt;"> }</span></b><b><span style="font-family: 'Courier New'; font-size: 12pt;"><o:p></o:p></span></b></div>
<div class="MsoListParagraphCxSpMiddle" style="background-color: white; border: none; font-family: Georgia, Utopia, 'Palatino Linotype', Palatino, serif; font-size: 20px; line-height: 28px; margin: 0in 0in 0.0001pt 0.25in; padding: 0in; text-align: justify; text-indent: -0.25in;">
<span style="font-family: 'Courier New'; font-size: 12pt; letter-spacing: 1pt;"><span style="font-family: 'Times New Roman'; font-size: 7pt;"> </span>20.<span style="font-family: 'Times New Roman'; font-size: 7pt;"> </span></span><span dir="LTR"></span><b><span style="color: blue; font-family: 'Courier New'; font-size: 12pt;">else</span></b><b><span style="font-family: 'Courier New'; font-size: 12pt;"><o:p></o:p></span></b></div>
<div class="MsoListParagraphCxSpMiddle" style="background-color: white; border: none; font-family: Georgia, Utopia, 'Palatino Linotype', Palatino, serif; font-size: 20px; line-height: 28px; margin: 0in 0in 0.0001pt 0.25in; padding: 0in; text-align: justify; text-indent: -0.25in;">
<span style="font-family: 'Courier New'; font-size: 12pt; letter-spacing: 1pt;"><span style="font-family: 'Times New Roman'; font-size: 7pt;"> </span>21.<span style="font-family: 'Times New Roman'; font-size: 7pt;"> </span></span><span dir="LTR"></span><b><span style="color: red; font-family: 'Courier New'; font-size: 12pt;"> {</span></b><b><span style="font-family: 'Courier New'; font-size: 12pt;"><o:p></o:p></span></b></div>
<div class="MsoListParagraphCxSpMiddle" style="background-color: white; border: none; font-family: Georgia, Utopia, 'Palatino Linotype', Palatino, serif; font-size: 20px; line-height: 28px; margin: 0in 0in 0.0001pt 0.25in; padding: 0in; text-align: justify; text-indent: -0.25in;">
<span style="font-family: 'Courier New'; font-size: 12pt; letter-spacing: 1pt;"><span style="font-family: 'Times New Roman'; font-size: 7pt;"> </span>22.<span style="font-family: 'Times New Roman'; font-size: 7pt;"> </span></span><span dir="LTR"></span><b><span style="font-family: 'Courier New'; font-size: 12pt;"> cout</span></b><b><span style="color: red; font-family: 'Courier New'; font-size: 12pt;"><<</span></b><b><span style="color: blue; font-family: 'Courier New'; font-size: 12pt;">" NOT A PRIME NUMBER \n"</span></b><b><span style="color: red; font-family: 'Courier New'; font-size: 12pt;">;</span></b><b><span style="font-family: 'Courier New'; font-size: 12pt;"><o:p></o:p></span></b></div>
<div class="MsoListParagraphCxSpMiddle" style="background-color: white; border: none; font-family: Georgia, Utopia, 'Palatino Linotype', Palatino, serif; font-size: 20px; line-height: 28px; margin: 0in 0in 0.0001pt 0.25in; padding: 0in; text-align: justify; text-indent: -0.25in;">
<span style="font-family: 'Courier New'; font-size: 12pt; letter-spacing: 1pt;"><span style="font-family: 'Times New Roman'; font-size: 7pt;"> </span>23.<span style="font-family: 'Times New Roman'; font-size: 7pt;"> </span></span><span dir="LTR"></span><b><span style="color: red; font-family: 'Courier New'; font-size: 12pt;"> }</span></b><b><span style="font-family: 'Courier New'; font-size: 12pt;"><o:p></o:p></span></b></div>
<div class="MsoListParagraphCxSpMiddle" style="background-color: white; border: none; font-family: Georgia, Utopia, 'Palatino Linotype', Palatino, serif; font-size: 20px; line-height: 28px; margin: 0in 0in 0.0001pt 0.25in; padding: 0in; text-align: justify; text-indent: -0.25in;">
<span style="color: grey; font-family: 'Courier New'; font-size: 12pt; letter-spacing: 1pt;"><span style="font-family: 'Times New Roman'; font-size: 7pt;"> </span>24.<span style="font-family: 'Times New Roman'; font-size: 7pt;"> </span></span><span dir="LTR"></span><b><span style="color: grey; font-family: 'Courier New'; font-size: 12pt;">//getch();<o:p></o:p></span></b></div>
<div class="MsoListParagraphCxSpLast" style="background-color: white; border: none; font-family: Georgia, Utopia, 'Palatino Linotype', Palatino, serif; font-size: 20px; line-height: 28px; margin: 0in 0in 0.0001pt 0.25in; padding: 0in; text-align: justify; text-indent: -0.25in;">
<span style="font-family: 'Courier New'; font-size: 12pt; letter-spacing: 1pt;"><span style="font-family: 'Times New Roman'; font-size: 7pt;"> </span>25.<span style="font-family: 'Times New Roman'; font-size: 7pt;"> </span></span><span dir="LTR"></span><b><span style="color: red; font-family: 'Courier New'; font-size: 12pt;">}</span></b><b><span style="font-family: 'Courier New'; font-size: 12pt;"><o:p></o:p></span></b></div>
<div>
<b><span style="color: red; font-family: 'Courier New'; font-size: 12pt;"><br /></span></b></div>
</div>
Abid Omarhttp://www.blogger.com/profile/17710987984717643487noreply@blogger.com0tag:blogger.com,1999:blog-5969418920221545571.post-1957475111718616802012-09-29T02:33:00.000-07:002012-09-29T02:33:30.441-07:00പ്രോഗ്രാമിംഗ് എന്നാല് എന്ത്?<div dir="ltr" style="text-align: left;" trbidi="on">
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgVfVb69U82lSLcHaNY1aEgX0ulkxs66QkF5uW_udIgEWXWkMEMVo61rKenDlAnfKmr_H5qTTHGFw51VoWQ4Z96UN4YM-S_zpFa4zQ1pHW5DSUwgFN4emKMHrz_ebvMY_Zk67RtPb9t6Rs/s1600/C-gods-programming-language.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="240" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgVfVb69U82lSLcHaNY1aEgX0ulkxs66QkF5uW_udIgEWXWkMEMVo61rKenDlAnfKmr_H5qTTHGFw51VoWQ4Z96UN4YM-S_zpFa4zQ1pHW5DSUwgFN4emKMHrz_ebvMY_Zk67RtPb9t6Rs/s320/C-gods-programming-language.jpg" width="320" /></a></div>
<b><u>പ്രോഗ്രാം </u></b><br />
<br />
കമ്പ്യൂട്ടറിന് പ്രവർത്തിക്കാനാവശ്യമായ നിർദ്ദേശങ്ങളുടെ കൂട്ടമാണ് പ്രോഗ്രാം.പ്രോഗ്രാമുകളുടെ കൂട്ടമാണ് സോഫ്റ്റ്വെയർ. നമ്മുടെ കമ്പ്യൂട്ടറുകൾ പ്രവർത്തിക്കുന്നത്, പ്രോഗ്രാമർമാർ നേരത്തേ നൽകിയ നിർദ്ദേശങ്ങൾ അനുസരിച്ചാണ്.<br />
<br />
<b><u>പ്രോഗ്രാമിംഗ്</u> </b><br />
<b><br /></b>
കമ്പ്യൂട്ടർ അടിസ്ഥാനപരമായി ഒരു കാൽകുലേറ്റർ ആണ്. അതിന് ചില ലളിതമായ ഗണിതക്രിയകൾ മാത്രമേ ചെയ്യുവാൻ സാധിക്കൂ. അതായത് രണ്ടു സംഖ്യകൾ തമ്മിൽ കൂട്ടുക(+), കുറക്കുക(-), ഗുണിക്കുക(*),ഹരിക്കുക(/) രണ്ട് സംഖ്യകളുടെ വിലകൾ താരതമ്യം ചെയ്യുക(ഒരു സംഖ്യ മറ്റൊന്നിനെക്കാൾ ചെറുതാണോ വലുതാണോ എന്ന് പരിശോധിക്കുക) എന്നിവ. അതിനാൽ പ്രോഗ്രാമർ കമ്പ്യൂട്ടറിന് നൽകുന്ന നിർദേശങ്ങളിൽ ഈ ഗണിത ക്രിയകളേ ഉണ്ടാവാൻ പാടുള്ളൂ. മാത്രമല്ല കമ്പ്യൂട്ടറിന് ഒരേസമയം ഒരു ഗണിതക്രിയയേ ചെയ്യാൻ കഴിയൂ. അതിനാൽ ‘വലിയ’ കാര്യങ്ങൾ ഒറ്റയടിക്ക് ചെയ്യാൻ കമ്പ്യൂട്ടറിനോട് ആവശ്യപ്പെടാൻ പ്രോഗ്രാമർക്ക് കഴിയില്ല.ലളിതമായ സ്റ്റെപ്പുകളായിവേണം നിർദേശങ്ങൾ നല്കാൻ. ഇപ്രകാരം നിർദേശങ്ങൾ നൽകലാണ് പ്രോഗ്രാമിങ്ങ്.<br />
<br />
ഉദാഹരണത്തിന്, നമുക്ക് ഒരു സോഫ്റ്റ്വെയർ വേണമെന്നിരിക്കട്ടെ. നമ്മൾ കീബോർഡിൽ രണ്ട് സംഖ്യകൾ റ്റൈപ് ചെയ്തു നൽകും. സോഫ്റ്റ്വെയർ അവയുടെ ശരാശരി കണക്കാക്കി മോണിറ്റരിൽ കാണിക്കണം.<br />
<br />
നമ്മൾ ഒരു പ്രോഗ്രാമ്മറെ സമീപിച്ചു. പ്രോഗ്രാമ്മർ കമ്പ്യൂട്ടറിന് നൽകാൻ പോകുന്ന നിർദേശങ്ങൾ ഏതാണ്ട് ഇതുപോലെയാണ്:<br />
1.കീബോർഡിൽ റ്റൈപ്പ് ചെയ്യുന്ന രണ്ട് സംഖ്യകൾ സ്വീകരിക്കുക.<br />
2.അവയുടെ തുക കണക്കാക്കുക.<br />
3.തുകയെ രണ്ട് കൊണ്ട് ഹരിക്കുക.<br />
4.ഉത്തരം സ്ക്രീനിൽ പ്രദർശിപ്പിക്കുക.<br />
<br />
കമ്പ്യൂട്ടറിന് വാസ്തവത്തിൽ രണ്ട് സംഖ്യകളുടെ ശരാശരി കാണാൻ അറിയില്ല; കൂട്ടാനും ഹരിക്കാനും അറിയാം.അതുകൊണ്ടാണ് പ്രോഗ്രാമർ ആദ്യം രണ്ട് സംഖ്യകളുടെ തുക കാണാനും പിന്നീട് തുകയെ രണ്ടുകൊണ്ട് ഹരിക്കാനും നിർദ്ദേശിച്ചത്. അതായത് കൂട്ടാനും ഹരിക്കാനും അറിയാവുന്ന കമ്പ്യൂട്ടറിനെ ശരാശരി കാണാൻ ‘പഠിപ്പിക്കുക’യാണ് പ്രോഗ്രാമർ ചെയ്തത്. കൂട്ടാനും കുറക്കാനും ഗുണിക്കാനും ഹരിക്കാനും മാത്രമറിയാവുന്ന നാലാം ക്ലാസ്സ് വിദ്യാർത്ഥിയാണ് കമ്പ്യൂട്ടർ. ടീച്ചറാണ് പ്രോഗ്രാമർ. ‘വലിയ’ കാര്യങ്ങൾ ചെയ്യാൻ കമ്പ്യൂട്ടറിനെ പഠിപ്പിക്കുന്ന പ്രക്രിയയാണ് പ്രോഗ്രാമിങ്ങ്.<br />
<br />
<b><u>അല്ഗോരിതം</u></b><br />
<b><u><br /></u></b>
നേരത്തേ പരയുകയുണ്ടായി, കമ്പ്യൂട്ടരിന് വലിയകാര്യങ്ങൾ ഒറ്റയടിക്ക് ചെയ്യാൻ കഴിയില്ല,പല സ്റ്റെപ്പുകളായി വേണം നിർദേശങ്ങൾ നൽകാൻ എന്ന്. രണ്ട് സംഖ്യകളുടെ ശരാശരി കാണാൻ പ്രോഗ്രാമർ നൽകിയ നിർദേശങ്ങൾ ശ്രദ്ധിക്കുക.“രണ്ടു സംഖ്യകളെ പരസ്പരം കൂട്ടി രണ്ടുകൊണ്ട് ഹരിക്കുക” എന്ന ഒറ്റ നിർദേശമല്ല, “1.രണ്ട് സംഖ്യകൾ തമ്മിൽ കൂട്ടുക”,“2.തുകയെ രണ്ട് കൊണ്ട് ഹരിക്കുക” എന്നിങ്ങനെ രണ്ട് സ്റ്റെപ് ആയാണ് പ്രോഗ്രാമർ നിർദേശം നൽകിയിരിക്കുന്നത്. ഈ സ്റ്റെപ്പ് സമ്പ്രദായം മനസിലാക്കാനാണ് അൽഗരിതം എഴുതുന്നത്. അൽഗരിതം എഴുതുമ്പോൾ “1.കീബോർഡിൽ റ്റൈപ്പ് ചെയ്യുന്ന രണ്ട് സംഖ്യകൾ സ്വീകരിക്കുക.” എന്നതിനുപകരം “READ A,B” എന്ന് എഴുതും.<br />
“2.അവയുടെ തുക കണക്കാക്കുക.” എന്നതിനു പകരം“C=A+B” എന്നും<br />
“3.തുകയെ രണ്ട് കൊണ്ട് ഹരിക്കുക.” എന്നതിനു പകരം “D=C/2” എന്നും<br />
“4.ഉത്തരം സ്ക്രീനിൽ പ്രദർശിപ്പിക്കുക.” എന്നതിനുപകരം “PRINT D” എന്നും എഴുതാം. ഇതിനു പുറമേ അൽഗരിതം തുടങ്ങുമ്പോൾ “START” എന്നും അവസാനിക്കുമ്പോൾ “STOP” എന്നും എഴുതണം. Aയും Bയും Cയും Dയും എല്ലാം ചരങ്ങളാണ്. പേരുകൾ. A,B എന്നിവ ടൈപ് ചെയ്ത സംഖ്യകൾ. C തുകക്ക് നൽകിയ പേര്. D ശരാശരിയുടെ നാമം.<br />
<br />
<br />
അപ്പോൾ നേരത്തേ നൽകിയ നിർദേശങ്ങളുടെ അൽഗരിതം ഇതാണ്:<br />
<br />
<br />
1.START<br />
2.READ A,B<br />
3.C=A+B<br />
4.D=C/2<br />
5.PRINT D<br />
6.STOP<br />
<br />
കടപ്പാട് : <a href="https://sites.google.com/site/cpptutorialmalayalam/basics/algorithm">https://sites.google.com/site/cpptutorialmalayalam/basics/algorithm</a><br />
</div>
Abid Omarhttp://www.blogger.com/profile/17710987984717643487noreply@blogger.com0tag:blogger.com,1999:blog-5969418920221545571.post-34918425985361578472012-09-29T02:05:00.000-07:002012-09-29T02:05:08.588-07:00Windows7ല് ടര്ബോ C++ ഇന്സ്റ്റോള് ചെയ്യാം <div dir="ltr" style="text-align: left;" trbidi="on">
<span style="color: #312c36; font-family: Arial, Helvetica, sans-serif;"><span style="font-size: 14px; line-height: 20px;"><b>ആദ്യമായി ടര്ബോ സോഫ്റ്റ്വെയര് ഇവിടെ നിന്നും ഡൌണ്ലോഡ് ചെയ്യുക.</b></span></span><b style="background-color: white; color: #312c36; font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 20px;"><br /></b><a href="http://www.mediafire.com/?77otl3gh4hfital">http://www.mediafire.com/?77otl3gh4hfital</a><br />
<br />
<b style="color: #312c36; font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 20px;">എങ്ങനെ വിന്ഡോസ് 7 നില ടര്ബോ ഇന്സ്റ്റോള് ചെയ്യുമെന്ന് നോക്കാം.</b><br />
<br />
ഈ വീഡിയോ കണ്ടു നോക്കൂ..<br />
<b style="background-color: white; color: #312c36; font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 20px;"><br /></b>
<div class="separator" style="clear: both; text-align: center;">
<iframe allowfullscreen='allowfullscreen' webkitallowfullscreen='webkitallowfullscreen' mozallowfullscreen='mozallowfullscreen' width='320' height='266' src='https://www.youtube.com/embed/jb5ZIrnuPLY?feature=player_embedded' frameborder='0'></iframe></div>
<span style="color: #312c36; font-family: Arial, Helvetica, sans-serif;"><span style="font-size: 14px; line-height: 20px;"><b><br /></b></span></span>
<br />
അല്ലെങ്കില് ഇത് വായിക്കൂ...<br />
<b style="background-color: white; color: #312c36; font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 20px;">Cortesy: </b><a href="http://www.techturning.in/">http://www.techturning.in</a><br />
<b style="background-color: white; color: #312c36; font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 20px;"><br /></b>
<b style="background-color: white; color: #312c36; font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 20px;">step 1:</b><span class="Apple-style-span" style="background-color: white; border-collapse: collapse; border-spacing: 2px; color: #312c36; font-family: tahoma, arial, sans-serif; font-size: 13px; line-height: 20px;">Install the software <strong>DOSBox-</strong>download <a href="http://sourceforge.net/projects/dosbox/files/dosbox/0.74/DOSBox0.74-win32-installer.exe/download" style="color: #88a3a7; outline: none;">here</a></span><br style="background-color: white; color: #312c36; font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 20px;" /><br style="background-color: white; color: #312c36; font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 20px;" /><b style="background-color: white; color: #312c36; font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 20px;">step 2</b><span style="background-color: white; color: #312c36; font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 20px;">:</span><span class="Apple-style-span" style="background-color: white; border-collapse: collapse; border-spacing: 2px; color: #312c36; font-family: tahoma, arial, sans-serif; font-size: 13px; line-height: 20px;"> Create a folder,c:\turbo</span><br style="background-color: white; color: #312c36; font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 20px;" /><span class="Apple-style-span" style="background-color: white; border-collapse: collapse; border-spacing: 2px; color: #312c36; font-family: tahoma, arial, sans-serif; font-size: 13px; line-height: 20px;"><br /></span><br style="background-color: white; color: #312c36; font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 20px;" /><span class="Apple-style-span" style="background-color: white; border-collapse: collapse; border-spacing: 2px; color: #312c36; font-family: tahoma, arial, sans-serif; font-size: 13px; line-height: 20px;"><b>step 3</b>:</span><span class="Apple-style-span" style="background-color: white; border-collapse: collapse; border-spacing: 2px; color: #312c36; font-family: tahoma, arial, sans-serif; font-size: 13px; line-height: 20px;"> Download and extract <strong>TC</strong> into the Turbo folder (c:\Turbo\): <a href="http://blog.bestsoftware4download.com/goto/http://s1.freedownloadme.info/turboc_installed.zip" rel="nofollow" style="color: #207ec5; outline: none; text-decoration: none;" target="_blank" title="ZIP file">download here</a></span><br style="background-color: white; color: #312c36; font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 20px;" /><br style="background-color: white; color: #312c36; font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 20px;" /><b style="background-color: white; color: #312c36; font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 20px;">step 4:</b><span class="Apple-style-span" style="background-color: white; border-collapse: collapse; border-spacing: 2px; color: #312c36; font-family: tahoma, arial, sans-serif; font-size: 13px; line-height: 20px;"> Run the DOSBox 0.73 from the icon located on the desktop</span><br style="background-color: white; color: #312c36; font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 20px;" /><span class="Apple-style-span" style="background-color: white; border-collapse: collapse; border-spacing: 2px; color: #312c36; font-family: tahoma, arial, sans-serif; font-size: 13px; line-height: 20px;"><br /></span><br style="background-color: white; color: #312c36; font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 20px;" /><span class="Apple-style-span" style="background-color: white; border-collapse: collapse; border-spacing: 2px; color: #312c36; font-family: tahoma, arial, sans-serif; font-size: 13px; line-height: 20px;"><b>step 5</b> :run dosbox once</span><br style="background-color: white; color: #312c36; font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 20px;" /><span class="Apple-style-span" style="background-color: white; border-collapse: collapse; border-spacing: 2px; color: #312c36; font-family: tahoma, arial, sans-serif; font-size: 13px; line-height: 20px;"><br /></span><br style="background-color: white; color: #312c36; font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 20px;" /><span class="Apple-style-span" style="background-color: white; border-collapse: collapse; border-spacing: 2px; color: #312c36; font-family: tahoma, arial, sans-serif; font-size: 13px; line-height: 20px;"><b>step 6</b>: type in exit to close the program</span><br style="background-color: white; color: #312c36; font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 20px;" /><span class="Apple-style-span" style="background-color: white; border-collapse: collapse; border-spacing: 2px; color: #312c36; font-family: tahoma, arial, sans-serif; font-size: 13px; line-height: 20px;"><br /></span><br style="background-color: white; color: #312c36; font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 20px;" /><span class="Apple-style-span" style="background-color: white; border-collapse: collapse; border-spacing: 2px; color: #312c36; font-family: tahoma, arial, sans-serif; font-size: 13px; line-height: 20px;"><b>step 7</b>: goto C:\Users\borax12\AppData\Local\DOSBox</span><br style="background-color: white; color: #312c36; font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 20px;" /><span class="Apple-style-span" style="background-color: white; border-collapse: collapse; border-spacing: 2px; color: #312c36; font-family: tahoma, arial, sans-serif; font-size: 13px; line-height: 20px;"><br /></span><br style="background-color: white; color: #312c36; font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 20px;" /><span class="Apple-style-span" style="background-color: white; border-collapse: collapse; border-spacing: 2px; color: #312c36; font-family: tahoma, arial, sans-serif; font-size: 13px; line-height: 20px;"><b>step 8</b>-open the file doxbox 0.74 conf file in notepad and scroll down to the very end</span><br style="background-color: white; color: #312c36; font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 20px;" /><span class="Apple-style-span" style="background-color: white; border-collapse: collapse; border-spacing: 2px; color: #312c36; font-family: tahoma, arial, sans-serif; font-size: 13px; line-height: 20px;"><br /></span><br style="background-color: white; color: #312c36; font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 20px;" /><span class="Apple-style-span" style="background-color: white; border-collapse: collapse; border-spacing: 2px; color: #312c36; font-family: tahoma, arial, sans-serif; font-size: 13px; line-height: 20px;"><b>step 9</b>: add these commands to the bottom of the file-</span><br style="background-color: white; color: #312c36; font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 20px;" /><span class="Apple-style-span" style="background-color: white; border-collapse: collapse; border-spacing: 2px; color: #312c36; font-family: tahoma, arial, sans-serif; font-size: 13px; line-height: 20px;"> mount d c:\turbo</span><br style="background-color: white; color: #312c36; font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 20px;" /><span class="Apple-style-span" style="background-color: white; border-collapse: collapse; border-spacing: 2px; color: #312c36; font-family: tahoma, arial, sans-serif; font-size: 13px; line-height: 20px;"> d:</span><br style="background-color: white; color: #312c36; font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 20px;" /><span class="Apple-style-span" style="background-color: white; border-collapse: collapse; border-spacing: 2px; color: #312c36; font-family: tahoma, arial, sans-serif; font-size: 13px; line-height: 20px;"> cd tc</span><br style="background-color: white; color: #312c36; font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 20px;" /><span class="Apple-style-span" style="background-color: white; border-collapse: collapse; border-spacing: 2px; color: #312c36; font-family: tahoma, arial, sans-serif; font-size: 13px; line-height: 20px;"> cd bin</span><br style="background-color: white; color: #312c36; font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 20px;" /><span class="Apple-style-span" style="background-color: white; border-collapse: collapse; border-spacing: 2px; color: #312c36; font-family: tahoma, arial, sans-serif; font-size: 13px; line-height: 20px;"> tc</span><br style="background-color: white; color: #312c36; font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 20px;" /><span class="Apple-style-span" style="background-color: white; border-collapse: collapse; border-spacing: 2px; color: #312c36; font-family: tahoma, arial, sans-serif; font-size: 13px; line-height: 20px;"><br /></span><br style="background-color: white; color: #312c36; font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 20px;" /><span class="Apple-style-span" style="background-color: white; border-collapse: collapse; border-spacing: 2px; color: #312c36; font-family: tahoma, arial, sans-serif; font-size: 13px; line-height: 20px;"><b>step 10</b>:open dos box,now to shoul starrt turbo c++ borland automatically.For fullscreen pres alt+enter</span><br style="background-color: white; color: #312c36; font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 20px;" /><span class="Apple-style-span" style="background-color: white; border-collapse: collapse; border-spacing: 2px; color: #312c36; font-family: tahoma, arial, sans-serif; font-size: 13px; line-height: 20px;"><br /></span><br style="background-color: white; color: #312c36; font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 20px;" /><span class="Apple-style-span" style="background-color: white; border-collapse: collapse; border-spacing: 2px; color: #312c36; font-family: tahoma, arial, sans-serif; font-size: 13px; line-height: 20px;"><b>step 11</b>: note:ctrl + wont work as its the same key for exitng dos box...so you have to use the menu option for compiling...</span><br style="background-color: white; color: #312c36; font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 20px;" /><span class="Apple-style-span" style="background-color: white; border-collapse: collapse; border-spacing: 2px; color: #312c36; font-family: tahoma, arial, sans-serif; font-size: 13px; line-height: 20px;"><br /></span><br style="background-color: white; color: #312c36; font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 20px;" /><span class="Apple-style-span" style="background-color: white; border-collapse: collapse; border-spacing: 2px; color: #312c36; font-family: tahoma, arial, sans-serif; font-size: 13px; line-height: 20px;">also change the following-</span><br style="background-color: white; color: #312c36; font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 20px;" /><span class="Apple-style-span" style="background-color: white; border-collapse: collapse; border-spacing: 2px; color: #312c36; font-family: tahoma, arial, sans-serif; font-size: 13px; line-height: 20px;"><br /></span><br style="background-color: white; color: #312c36; font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 20px;" /><span class="Apple-style-span" style="background-color: white; border-collapse: collapse; border-spacing: 2px; color: #312c36; font-family: tahoma, arial, sans-serif; font-size: 13px; line-height: 20px;">In the Turbo C++ goto Options>Directories> Change the source of TC to the source directory [D] ( i.e. virtual D: refers to original c:\Turbo\ . </span><span class="Apple-style-span" style="background-color: white; border-collapse: collapse; border-spacing: 2px; color: #312c36; font-family: tahoma, arial, sans-serif; font-size: 13px; line-height: 20px;">(The directory which contains TC folder)</span><span class="Apple-style-span" style="background-color: white; border-collapse: collapse; border-spacing: 2px; color: #312c36; font-family: tahoma, arial, sans-serif; font-size: 13px; line-height: 20px;">he path change to something like :\TC\include and D:\TC\lib respectively )</span><br style="background-color: white; color: #312c36; font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 20px;" /><span class="Apple-style-span" style="background-color: white; border-collapse: collapse; border-spacing: 2px; color: #312c36; font-family: tahoma, arial, sans-serif; font-size: 13px; line-height: 20px;"><br /></span><br style="background-color: white; color: #312c36; font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 20px;" /><span class="Apple-style-span" style="background-color: white; border-collapse: collapse; border-spacing: 2px; color: #312c36; font-family: tahoma, arial, sans-serif; font-size: 13px; line-height: 20px;"><br /></span><br style="background-color: white; color: #312c36; font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 20px;" /><span class="Apple-style-span" style="background-color: white; border-collapse: collapse; border-spacing: 2px; color: #312c36; font-family: tahoma, arial, sans-serif; font-size: 13px; line-height: 20px;"><br /></span><br />
<div class="separator" style="background-color: white; clear: both; color: #312c36; font-family: Arial, Helvetica, sans-serif; font-size: 14px; line-height: 20px; text-align: center;">
<a href="http://2.bp.blogspot.com/_2QAU_69SIJY/TUESdoPGh-I/AAAAAAAAAGw/O1pyLhTKiWI/s1600/step-4.jpg" imageanchor="1" style="color: #88a3a7; margin-left: 1em; margin-right: 1em; outline: none;"><img border="0" height="250" src="http://2.bp.blogspot.com/_2QAU_69SIJY/TUESdoPGh-I/AAAAAAAAAGw/O1pyLhTKiWI/s400/step-4.jpg" style="background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: none; clear: both; margin: 0px 4px 4px 0px; max-height: 500px; max-width: 520px; padding: 0px;" width="400" /></a></div>
<span class="Apple-style-span" style="background-color: white; border-collapse: collapse; border-spacing: 2px; color: #312c36; font-family: tahoma, arial, sans-serif; font-size: 13px; line-height: 20px;">When you exit from the DosBox [precisely when u unmount the virtual drive where Turbo C++ 3.0 has been mounted] all the files you have saved or made changes in Turbo C++ 3.0 will be copied into the source director</span></div>
Abid Omarhttp://www.blogger.com/profile/17710987984717643487noreply@blogger.com0tag:blogger.com,1999:blog-5969418920221545571.post-9913865515457087212012-09-28T23:24:00.002-07:002012-09-28T23:24:28.036-07:00ലളിതമായ ആദ്യ പ്രോഗ്രാം <div dir="ltr" style="text-align: left;" trbidi="on">
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhy9c52mcyeBcH_pc9ush_m_2OR-9otGrKizI4qLr_UNusrDRZnjLdnuc19dLihV01heSA3szhF3g6ATXr9hyphenhyphenO_Svbgi-rsKgFoEcaulDV_HJZV0dAL4QjLgmFbzBKGgpR-vEAegyri2Rc/s1600/download.jpg" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"><img border="0" height="221" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhy9c52mcyeBcH_pc9ush_m_2OR-9otGrKizI4qLr_UNusrDRZnjLdnuc19dLihV01heSA3szhF3g6ATXr9hyphenhyphenO_Svbgi-rsKgFoEcaulDV_HJZV0dAL4QjLgmFbzBKGgpR-vEAegyri2Rc/s320/download.jpg" width="320" /></a></div>
ആദ്യം തന്നെ വലിയ-വലിയ പ്രോഗ്രാമ്മുകള് കാണിച്ചു നിങ്ങളെ മടുപ്പിക്കുന്നില്ല..<br />
ക++ ഉപയോഗിച്ച് സ്ക്രീനില് ഒരു വാചകം എങ്ങനെ കാണിക്കാം എന്ന് നോക്കൂ..<br />
താഴെ കാണുന്ന പ്രോഗ്രാം ടര്ബോ C++ ല് ടൈപ്പ് ചെയ്യുക.<br /><br />
<br />
<b><br /></b>
<b><br /></b>
<b><br /></b>
<b style="background-color: #6fa8dc;">#include<iostream.h></b><br />
<b style="background-color: #6fa8dc;">void main( )</b><br />
<b style="background-color: #6fa8dc;">{</b><br />
<b style="background-color: #6fa8dc;"> cout<<"MY FIRST PROGRAM";</b><br />
<b style="background-color: #6fa8dc;">}</b><br />
<b><br /></b>
ഇതിന്റെ ഔട്ട്പുട്ട് ഇങ്ങനെ ആയിരിക്കും.<br />
<br />
<b>MY FIRST PROGRAM </b><br />
<br />
ശ്രദ്ധിക്കേണ്ടവ :<br />
<br />
<br />
<ol style="text-align: left;">
<li>മുകളിലെ പ്രോഗ്രാം ശരിയായിട്ടാണോ ടര്ബോ ല് ടൈപ്പ് ചെയ്തത് എന്ന് നോക്കുക.</li>
<li>void,main,cout എന്നിവ ചെറിയ അക്ഷരതിലായിരിക്കേണം.</li>
<li>MY FIRST PROGRAM എന്ന് കൊടുത്തിരിക്കുന്നത് രണ്ടു ഡബിള് ക്വാട്ട്സ് (" ") ന്റെ ഇടയിലായിരിക്കണം.</li>
</ol>
<div>
<br /></div>
<div>
ഇനി നമുക്ക് ഒന്ന് സേവ് ചെയ്യണം.അതിനായി File മെനുവില് നിന്ന് Save അമര്ത്തുക.</div>
<div>
<br /></div>
<div>
Print എന്ന അര്ത്ഥത്തിലാണ് ഇവിടെ cout ഉപയോഗിക്കുന്നത് .നാം ടൈപ്പ് ചെയ്തത് സ്ക്രീനില് കാണിക്കാനാണിത്.</div>
<br />
<br />
<br /></div>
Abid Omarhttp://www.blogger.com/profile/17710987984717643487noreply@blogger.com9tag:blogger.com,1999:blog-5969418920221545571.post-23801590552065339412012-09-28T22:28:00.001-07:002012-09-28T22:29:34.869-07:00Turbo C++ എന്ത് ? എങ്ങനെ ?<div dir="ltr" style="text-align: left;" trbidi="on">
<br />
<table cellpadding="0" cellspacing="0" class="tr-caption-container" style="float: left; margin-right: 1em; text-align: left;"><tbody>
<tr><td style="text-align: center;"><a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjRZUxKmAm3DL1k578JuFfaumRH1owxXQXr8sOwuYEWivfmp00p71uNIFNrl2VLBQEXVizCYfAJaSf_w8CWdBauFcMD0-9exHQiMv5vEmTxOc7uM30Kc9QjSEfPzNPp7Eyt5Ax7SmhnvE4/s1600/TC++.png" imageanchor="1" style="clear: left; margin-bottom: 1em; margin-left: auto; margin-right: auto;"><img border="0" height="200" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjRZUxKmAm3DL1k578JuFfaumRH1owxXQXr8sOwuYEWivfmp00p71uNIFNrl2VLBQEXVizCYfAJaSf_w8CWdBauFcMD0-9exHQiMv5vEmTxOc7uM30Kc9QjSEfPzNPp7Eyt5Ax7SmhnvE4/s320/TC++.png" width="320" /></a></td></tr>
<tr><td class="tr-caption" style="text-align: center;">Turbo C++ window</td></tr>
</tbody></table>
സി++ നെ കുറിച്ച് പറയുമ്പോള് ആദ്യം ഓര്മ്മ വരുന്നത് Turbo C++ ആണ്.നാം സി++ ല് പ്രോഗ്രാം രചിക്കാന് ഉപയോഗിക്കുന്നത് ടര്ബോ ഉപയോഗിച്ചാണ്.ആദ്യമായി ടര്ബോ സി++ എന്ന് കേള്ക്കുമ്പോള് വായനക്കാര്ക്ക് അമ്ബരപ്പുണ്ടാകുമെന്നരിയാം . പേടിക്കേണ്ട . ഇത് വേറെ ജാതിക്കാരനായ സി++ ഒന്നും അല്ല കേട്ടോ.<br />
'ടര്ബോ' ഒരു കംപൈലെര് ആണ്.'ഹൈ-ലെവല് ഭാഷയിലുള്ള നിര്ദേശങ്ങള് കമ്പ്യൂട്ടറിന് മനസ്സിലാക്കി കൊടുക്കുന്ന ഒരു ഇടനിലക്കാരന് .<br />
<br />
<br />
<b>ടര്ബോ സി++ ഉപയോഗിച്ച് എങ്ങനെ ഒരു പ്രോഗ്രാം നിര്മ്മിക്കാം എന്ന് നോക്കാം.</b><br />
ടര്ബോ സി++ ന്റെ IDE റണ് ചെയ്യണം.അത് എങ്ങനെ എന്ന് നോക്കാം .<br />
<b>Step 1: </b><i>Start -> All programs -> Accesseries -> Command Prompt</i><br />
<b>Step 2: <i><span style="color: red;">CD/ </span></i></b>എന്ന് ടൈപ്പ് ചെയ്തു എന്റര് അമര്ത്തുക..<br />
<b>Step 3: </b><i><span style="color: red;"><b>CD TC</b></span></i><b> </b>എന്ന് ടൈപ്പ് ചെയ്തു എന്റര് അമര്ത്തുക.<br />
<b>Step 4:<span style="color: red;"><i>CD BIN</i></span> </b>എന്ന് ടൈപ്പ് ചെയ്തു എന്റര് അമര്ത്തുക.<br />
<b>Step 5:TC </b>എന്ന് ടൈപ്പ് ചെയ്തു എന്റര് അമര്ത്തുക.<br />
<b>Step 6:</b>അപ്പോള് ടര്ബോ സി++ ജാലകം തുറന്നു വരും.ഇനി പ്രോഗ്രാം രചിക്കാം.<br />
<div>
<br /></div>
<br /></div>
Abid Omarhttp://www.blogger.com/profile/17710987984717643487noreply@blogger.com0