Last edited by zaroon786; 8th July 2015 at 09:00 AM. Reason: Link added
کلاس میں استعمال ہونے والے کوڈ:
if (condition)
statement;
else if (condition)
statement;
else
statement;
-----------------------------
if (condition)
statement;
else
statement;
-----------------------------
if(textBox1.Text=="Ali"){
MessageBox.Show("You write'Ali'!");
}
else if(textBox1.Text=="Abdullah"){
MessageBox.Show("You Write 'Abdullah'!");
}
else
MessageBox.Show("You write other than 'Ali'and'Abdullah'!");
-----------------------------------------------------------------------------
لیکچر ڈونلوڈ کریں۔
https://app.box.com/s/vqz4ydx0y8h8mhun37c8oxk7g9m1w7cy
واہ بھائی عمدہ شئیرنگ آپ نے تو کمال کر دیا
Jy ha kya ahi
بچہ آدمی کا باپ ہوتاہے
[SIZE="5"][CENTER][COLOR="Black"][FONT="Jameel Noori Nastaleeq"]آخر موت ہے[/FONT][/COLOR][/CENTER][/SIZE]
بہت خوب برادر
بہت اچھے اور سادھے انداز میں آپ نے آج کی کلاس شئیر کی
بہت اچھا لگا پڑھ کر اور جان کر
ایف ۔۔ایلس کے لوپ ۔۔۔یا۔۔۔کمانڈز کے بارے میں پڑھ کر
ہمارے ساتھ اس کلا س کو پیش کرنے کا شکریہ
Achi koshish he, magar meri kuch suggestions hain.
Programming uss wakt samajh main aati he jb apko har aik sentence (balke har aik character) ka bhi pata ho k wo kyon likha ja raha he.
Ab chalte hain apke code ki taraf. Ap ne likha
Iss main textBox1.Text kia he?? Mujhe pata he new user is stage per nhin samajh sakta, magar apko ko thora sa zaroor batana chahye....Code:if(textBox1.Text=="Ali")
issi tareh (textBox1.Text == "Ali") iss expression ka matlab kia he. == aik comparison operator he. Ki ap ne apne previous lectures main comparison operators k baare main bataya he??? I think No. to students ko samajh kese aae ge.
Ap ne likha
Jab k apka ko working code he uss main statement se pehle aur baad main curly braces hain. Apko batana chahye k agar ap curly braces use kar rahe hain to kyon aur agar nhin kar rahe to kyon???Code:if (condition) statement; else statement;
Ye sab likhne ka maqsad ye he k thread main improvement aaye. Agar ap itni mehnat se lecture dete ho to uss ke mazeed ache result hoon.
Wese itne saare reply aaye hain magar ye question kisi ne nhin pooche, I don't know why
بہت شکریہ بردار ہمیں آپ سے یہی امید تھی
Bookmarks