版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)
文檔簡介
Lecture1
IntroductionCProgrammingLanguageOutlineGeneralCourseInformationHardwareandSoftwareProgrammingLanguagesHistoryandFeaturesofCFirstLookAbouttheCourseTotalcredithours:64Lecturehours:40Labworkhours:24IndependentStudyhour:80GradingAttendance+Coursework:30%
MiddleTermExam:30%
FinalExam:40%SuggestionsBelieveyourself:Yes,YouCan!Findyourownwaytolearn,tostudy,toenjoy…Makenotestohelpyou.Practiceasmoreasyoucan.ReadingListKernighan,B.W.,D.M.Ritchie,TheCProgrammingLanguage,2nded.,PrenticeHallPTRRoberts,E.S.,TheArtandScienceofC:ALibrary-BasedIntroductiontoComputerScience,AddisonWesleyHorton,I.,BeginningC:FromNovicetoProfessional,4thed.,SpringerKing,K.N.,CProgramming:AModernApproach,2nded.,W.W.Norton&Company王曙燕,C語言程序設(shè)計(jì)教程,人民郵電出版社ThinkAbout...Whatcomputerscandoforus?Howcomputerssolveproblems/work?ComputerHardwareAcomputersystemisconstructedbytwopartshardwaresystem(visible)CPU,Memory,storagessoftwaresystem(invisible)ComputerHardwareComputerHardwareCPU(CentralProcessingUnit),isthemostimporthardwaredeviceofacomputer.CPUisabletoprocessinstructionssuchasarithmeticaloperations,movingdatatoandfromotherdevicesetc.EachtypeofCPUhasitsownspecificinstructionset.ComputerHardwareMemorycanstoredatatemporary.Thewholememoryisdividedintosmallunitslogically,andeachunithasaspecificaddress.Normally,thecapacityofoneunitisonebyte,whichiseightbits.CPUneedtoread/writedataonmemorybyusingaddresses.ComputerHardwareHarddisks,flashdisks,opticaldisksarecommonlyusedpersistentstorages.Datatobestoredonpersistentstoragesareorganizedastheformatofafile.Filenamesareusedtoidentifydifferentfilesandtooperatethedatabelongstoagivenfile.SoftwareandProgramSoftwareisonthehardware,bythehardware,andforthehardware.softwareisdividedintotwocategories:systemsoftwareapplicationsoftwareComputerSoftwareSoftwareandProgramAserialofinstructionscanberegardedasapieceofprogram.ThepurposeofprogrammingisjusttomakeouttheinstructionserialforprocessingbyCPU.Itishardtocomposeinstructionsbyhandsdirectly.Programminglanguagescanhelpustodoit.ProgrammingLanguagesProgramminglanguageshelpprogrammerstocommunicatewithcomputers.EarlierprogramminglanguagesaresimpleModernprogramminglanguagearewell-designedandwithsimilarsyntaxandsemantictoournaturallanguage.ProgrammingLanguagesDevelopmentofprogramminglanguages1G:Machinelanguage2G:Assemblylanguage3G:High-Levellanguage4G?5G?ProgrammingLanguagesDifferentprogramminglanguageshavedifferentwaystorepresentdataandprocessdata.SomesyntaxoftheCprogramminglanguageissimilartootherprogramminglanguages,butsomeothersmaytotallydifferent.ProgrammingLanguagesHistoryandDevelopmentofCHistoryBornin1972attheBellLaboratories.Itwasnamed"C"becauseitsfeatureswerederivedfromanearlierlanguagecalled"B".DevelopmentOriginal:ClassicalCLater:StandardCorC89newly:C99FeaturesofCStructuredprogrammingmethodologyHighefficiencywithagilecodesProductiveandgoodqualityPortabilityondifferentplatformIrreplaceableonsystem-levelandembeddeddevicesprogrammingFewkeywords,simplesyntax,easytolearnFuturesofCCprogramminglanguagekeepsitslivingnesssinceitscreationtillnow.Basedonthefastdevelopmentofembeddedsystemsandmobilesystems,itcanbeforecastedthattheCprogramminglanguagewillstillkeepitsincreasedtrendinthefuture.Doyouknow...WhatcanCdo?WhatCcan’tdo?WhatdoesCprogramlooklike?FirstLook#include<stdio.h>main(){printf("hello,world.\n");}ProgrammingStepseditsourcecodefile(.c)byaneditorcompiletogetobjectfile(.obj)byacompilerlinktogetexecutablefile(.exe)byalinkerruntheexefiletoseeifitiscorrectornotdebugsourcecodetofixbugscompile/link/runagain…sourcefile:Hello.cObjectfile:Hello.objlibrary&systemcodeexecutablefile:Hello.execompilelinkProgrammingStepsTipsErrorswilloccurwhenyoubegintowriteprograms.Noonecanavoidthis.Thebestwaytolearnalanguage,notonlyahumanlanguage,butalsoacomputerlanguage,ist
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。
最新文檔
- 2026上半年云南事業(yè)單位聯(lián)考農(nóng)業(yè)職業(yè)技術(shù)學(xué)院招聘5人(碩士)考試參考題庫及答案解析
- 2026年甘肅酒泉金塔縣人民法院招聘聘用制人員考試備考試題及答案解析
- 2026中央機(jī)關(guān)遴選和選調(diào)公務(wù)員調(diào)劑考試參考題庫及答案解析
- 2026科技部監(jiān)管中心招聘派遣制職工2人考試參考試題及答案解析
- 2026南海農(nóng)商銀行科技金融專業(yè)人才社會(huì)招聘考試參考試題及答案解析
- 2026江銅南方公司社會(huì)招聘4人考試備考試題及答案解析
- 2026浙江開化農(nóng)村商業(yè)銀行寒假實(shí)習(xí)生社會(huì)實(shí)踐活動(dòng)招募筆試備考題庫及答案解析
- 2026江西宜春市人力資源服務(wù)有限責(zé)任公司(宜春旅游集團(tuán))招聘3人筆試備考試題及答案解析
- 2026重慶西南大學(xué)附屬中學(xué)招聘筆試模擬試題及答案解析
- 2026上海浦東新區(qū)基礎(chǔ)醫(yī)學(xué)院招聘教學(xué)科研人員19人考試參考題庫及答案解析
- 湖南省2025-2026學(xué)年七年級(jí)歷史上學(xué)期期末復(fù)習(xí)試卷(含答案)
- 2026年中國熱帶農(nóng)業(yè)科學(xué)院南亞熱帶作物研究所第一批招聘23人備考題庫完美版
- 2026新疆阿合奇縣公益性崗位(鄉(xiāng)村振興專干)招聘44人考試參考試題及答案解析
- 紡織倉庫消防安全培訓(xùn)
- 器官移植術(shù)后排斥反應(yīng)的風(fēng)險(xiǎn)分層管理
- 虛擬電廠關(guān)鍵技術(shù)
- 事業(yè)單位清算及財(cái)務(wù)報(bào)告編寫范本
- 護(hù)坡綠化勞務(wù)合同范本
- 臨床績效的DRG與CMI雙指標(biāo)調(diào)控
- 護(hù)坡施工安全專項(xiàng)方案
- 2026年湛江日?qǐng)?bào)社公開招聘事業(yè)編制工作人員備考題庫及完整答案詳解
評(píng)論
0/150
提交評(píng)論