asad bhi aaj se lecture start kar rahe hen
jin ka cs201 subject he
ya wo C++ ko seekhne me interested hen wo regular touch rakhen
thanxxxxx.....
On Thu, Mar 17, 2011 at 10:25 PM, And-or-Logic <bc100400662asad@gmail.com> wrote:
*************Today is Lecture01**************Topic:Constants variables and keywordswhy need Constants and variables:programming k duran data ko store karney k ley hum ko variables ki zaroort hoti hai.fix values wali quantites ko use karney k leyhum ok constants ki zaroort parti hai.for example3x+4y=20iss example mai 3 or 20 aesy quantities hain jo fix hain in ki values kabi change nahi honey matlb k 3 ney always 3 or 20 ney always 20 hirahna hai.jab k x,y yeh quantities change ho sakty hain.Types of Constants:1)Primary Constants2)Secondary ConstantsToday will discuss only Primary Constants.Primary Constants:There are three types belong to Primary constants that are1.integer constants2.real constants3.character constantsinteger constantsAesy numeric values jin k andr decimal nahi hota wo integers constants hoty hainexample42610246896-1204-9685Note:what about 23.03 is it also an integer constant or no??? post the ans herereal constants:Real constants ko aksr aik aor name sey yad kiya jata hai yani Floating point constants.Real constants ko 2 tarha sey likha ja sakta hai.i.fractional formii.Ex-ponential formMath waly hzraat ko pta hi ho ga k Ex-ponential form kiya hoti hai.for example426.012.236-65.2e+3(yeh ex-ponential form hai)-58.20yeh values Real type constants ki catagories main aati hain.character constants:character constant assi value ko kehty hian jiss mai single alphabet ya single digit ya phir single special symbol hoocharacter constaant ko single inverted commas k andr likha jata hai.Both inverted commas left point waly honey chahy.for example,c, is wrong because this type of commas not supported"a" is wrong because double quotes not allowed'a' is right because this type of commas is alloweda is wrong because there are no inverted commas'1a' is wrong more than one digit is hereRules for making Constants(integers)1.integer values main kam az kam aik digit zaroor hona chahy.2.decimal point kissi bi soart mai iss type k constant mai nahi aasakta3.intergs constants positvie ya negative hosakta hai.4.agr value k sath koi bi sign na lgya ho to compiler us values ko by default positive samj leta hai.5.2digits k darmiyan space ya alphabetic nahi aasakty.6.integers constant ki range -32768 to +32767 tak ho sakti hai.Rules for making Constants(Real constants)1.Real values main kam az kam aik digit zaroor hona chahy.2.it must have a decimal point yani iss mai aeshariya(.) zaroor ayega3.Real constants positvie ya negative hosakta hai.4.Default sign +ve hota hai.5.2digits k darmiyan space ya alphabetic nahi aasakty.Rules for making Constants(character)1.Maximum length of a character constant should be 1 character.2.are closed in inverted commas.3.can use alphabet,digit and special symbolExercise:'A B' is a character constant or not?+0.56 is positive integer constant or not?+347690 is a positive integer constant or not?*******************End of Lecture01
--
Take your soul out of the way from cheristanityAsad AliBSc (Semester-02)
City.Lahore
--
For study materials, past papers and assignments,
Join VU School at www.VusCool.com
and www.VUGuys.com
CoooL Virtual University Students Google Group.
To post to this group, send email to coool_vu_students@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/coool_vu_students?hl=en
--
تو غنی از ھر دو عالم من فقیر
روزِ محشر عذر ھائے من پذیر
گر (ور) حسابم را تو بینی نا گُزیر
از نگاہِ مصطفیٰ پنہاں بگیر
اے اللہ میں تیرا منگتا ہوں، تو دو عالم کو عطا کرنے والا ہے۔ روزِ محشر میرا عذر قبول فرمانا اگر میرے نامہ اعمال کا حساب نا گزیر بھی ہے تو پھر اے میرے مولیٰ اسے میرے آقا محمد مصطفیٰ صلی اللہ علیہ وسلم کی نگاہوں سے پوشیدہ رکھنا۔
--
For study materials, past papers and assignments,
Join VU School at www.VusCool.com
and www.VUGuys.com
CoooL Virtual University Students Google Group.
To post to this group, send email to coool_vu_students@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/coool_vu_students?hl=en
No comments:
Post a Comment