资源描述:
《c语言中赋值运算的应用》由会员上传分享,免费在线阅读,更多相关内容在工程资料-天天文库。
1、C语言中赋值运算的应用TheapplicationofassignmentoperationinClanguageCisahigh-levelcomputerprogramminglanguagewhichiswidelyusedinthewor1d.Itcanbeusedeithertowritesystemsoftwareortowriteapplicationsoftware・X=8,whoseroleistoperformanassignmentoperation(orassignment),assignsinteger8tot
2、hevariablex.1IntroductionCisahigh-levelcomputerprogramminglanguagewhichiswidelyusedinthewor1d.Itcanbeusedeithertowritesystemsoftwareortowriteapplicationsoftware・ComputereducationinCollegesanduniversitiesintheCprogramminglanguagehasbecomealmostallcomputerrelatedprofession
3、alwillopencoursesfromundergraduatecomputerscienceandtechnology,softwareengineering,networkengineeringandotherrelatedprofessional,toelectronicinformationscienceandengineeringmajors,andhighervocatiorialcomputerapplicationtechnology,computernetworktechnology,theapplicationo
4、felectronictechnologyandotherrelatedprofessiona1.Someprofessionalcourses,someisacompulsorybasiccourse,coursenameonlyslightlydifferent,acommon〃Clanguageprogramclesign,aclvaneedlanguageprogramdesign,C,Cprogramming/,and^structuredprogramming〃・Nomatterwhatkindofprofessional,
5、nomatterwhatcurriculum,textbookselectionthecoursesarenotmuchdifferent,mostoftheTanHaoqiangeditoroftheTsinghusUniversityPresspublishedthe〃Cprogramminglanguage,ztextbook・Referencenet・However,thedistributionofhoursandteachingrequirementsarequitedifferent.Undergraduateeducat
6、ionismainlybasedonsubjectknowledge,whilehighervocationaleducationismainlyapplied.However,fromthecurrenttrendofdevelopment,undergraduateeducationisalsomainlyorientedtoapplication.1definitionsofassignmentoperations2.1theassignmentoperationisanoperationprovidedbyvariouscomp
7、uterhigh-levelprogramminglanguagesInCprogramming,assignmentisoneofthemostwidelyusedoperations,andthegeneralformofthedefinitionis:VariableassignmentnumberexpressionHisfunctionistoassignadatatoavariable・2.1.1variableAvariableisasimplevariable・2.1.2assignmentnumberTheassign
8、mentnumberconsistsoftwokinds,oneis〃二“,thatis,theassignmentoperatorintheClanguage,whichisabinocularopera