资源描述:
《vfp 课件 第章 程序设计基础》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
1、第5章程序设计基础程序设计就是将电脑能识别的命令按一定的规则组合在一起,编成一个程序文件,当程序文件执行时,电脑能一次执行一组命令。在VFP6.0中提供了面向过程的程序设计方法和面向对象的程序设计方法。在结构化的程序设计中,程序的结构一般有三种:顺序结构,分支结构和循环结构。程序举例:*VFP程序示例,用于计算圆的面积。SETTALKOFF&&关闭人机对话CLEAR&&清屏INPUT[请输入圆的半径:]TORS=PI()*R*R&&函数PI()返回圆周率?’面积S=’,S&&显示计算结果SETTALK
2、ON&&打开人机对话5.1.1程序文件的建立,修改和运行1.程序文件的建立和修改integratedenergy,chemicalsandtextileYibincity,arethethreecorepillarsoftheindustry.In2014,thewuliangyebrandvalueto73.58billionyuan,thecity'sliquorindustrysliptostabilise.Promotingdeepdevelopmentofintegratedenergy,a
3、dvancedequipmentmanufacturingindustry,changningdistrict,shalegasproductioncapacityreached277millioncubicmetres,builtthecountry'sfirstindependenthigh-yieldwellsandpipelinesinthefirstsection,theleadinfactoryproductionandsupplytothepopulation.2.1-3GDPgrowt
4、hfigure2.1-4Yibin,Yibincity,Yibincity,fiscalrevenuegrowth2.1.4topographyterrainoverallisSouthwest,North-EasternState.Lowmountainsandhillsinthecitylandscapeasthemainridge-and-Valley,pingbasmallfragmentednaturepicturefor"waterandthesecondlandofthesevenhil
5、ls".236metersto2000metersabovesealevelinthecity,lowmountain,46.6%hills45.3%,pingbaonly8.1%.2.1.5developmentofYibinlandscapesanddistinctivefeatureinthecenterofthecity,withlimitations,andspatialstructureoftypicalzonalgroup,2012-citiesinbuildingwithanareao
6、fabout76.2km2.Fromcity-buildingsituation,"oldtown-theSouthBank"Centerconstructionislaggingbehind,disintegrationoftheoldcityisslow,optimizationandupgrading,qualitypublicserviceresourcesarestillheavilyconcentratedintheoldtowntogether.SouthbankCentrehasnot
7、beenformed,functionsoftheserviceareaspaceismissing.Meanwhile,peripheralgroupcentresservicewasweakandinadequateaccountingforcitydevelopment,"suspicious"patterncouldnotbeformed.Asregardstransport,withtheoutwardexpansionofcities,citieshavebeenexpanding,cen
8、tripetalcitytrafficorganizationhasnotchanged,integratedenergy,chemicalsandtextileYibincity,arethethreecorepillarsoftheindustry.In2014,thewuliangyebrandvalueto73.58billionyuan,thecity'sliquorindustrysliptostabilise.Promotingdeepde