Programming in C.pdf

Programming in C.pdf

ID:34231916

大?。?78.69 KB

頁數(shù):85頁

時間:2019-03-04

Programming in C.pdf_第1頁
Programming in C.pdf_第2頁
Programming in C.pdf_第3頁
Programming in C.pdf_第4頁
Programming in C.pdf_第5頁
資源描述:

《Programming in C.pdf》由會員上傳分享,免費(fèi)在線閱讀,更多相關(guān)內(nèi)容在學(xué)術(shù)論文-天天文庫。

1、OxfordUniversityComputingServicesProgramminginCLanguagesl9.2/2TypographicalConventionsListedbelowarethetypographicalconventionsusedinthisguide.Namesofkeysonthekeyboardareenclosedinanglebrackets;forexamplerepresentstheEnter(orReturn)key.Twokeynamesenclosedinanglebracketsan

2、dseparatedbyaslash(forexample,)indicatethatthefirstkeyshouldbehelddownwhilethesecondispressed;bothkeyscanthenbereleasedtogether.Wheretwoormorekeysareeachenclosedinseparateanglebrackets(forexample,)eachkeyinthesequenceshouldbepressedinturn.Characterst

3、ypedinbytheuserareinlower-casenon-boldcharactersintypewriterfont.Otheroptionsandbuttonnamesareshowninlower-casenon-boldcharactersintypewriterfont.Pull-downmenuoptionsareindicatedbythenameoftheoptionenclosedinsquarebrackets,forexample[File/Print].Toselecttheoption[Print]fromthe[F

4、ile]menu:clickwiththemousebuttononthe[File]menuname;movethecursorto[Print];when[Print]ishighlighted,clickthemousebuttonagain.Wheremenuitemsorlargesectionsofoutputareincluded,theyareshownastheywouldbedisplayedonthescreen.Sectionsmarkedwitha?aremoreadvancedandcanbeomittedonafirstr

5、eading.ProgramminginCl9.2/2Contents1Introduction11.1AboutthisUserguide11.2WhyuseC?12AnExampleCProgram23VariablesandExpressions33.1VariableDeclaration33.2VariableTypes33.3VariableNames43.4Assignment53.5ArithmeticOperators63.6IncrementandDecrementOperators73.7CastOperators73.8Bitw

6、iseOperators?73.9PromotionsandConversions?83.10ParsingRules?103.11SymbolicConstantsandThePreprocessor114InputandOutput114.1FormattedOutput—printf114.2ConversionSpecifiers124.3LiteralConstants134.4FormattedInput—scanf154.5CharacterI/O—getchar&putchar164.6End-of-File175FlowofContr

7、ol175.1RelationalandLogicalOperators175.2ConditionalBranching—if185.3ConditionalSelection—switch195.4Iteration—while,for205.5LocalJumps—goto?215.6ShortCircuitBehaviour?225.7Problems225.8DeclaringArrayVariables235.9InitialisingArrayVariables246Functions256.1BuildingBlocksofProgra

8、ms256.2ReturnValue256.3FunctionParameters25Octo

當(dāng)前文檔最多預(yù)覽五頁,下載文檔查看全文

此文檔下載收益歸作者所有

當(dāng)前文檔最多預(yù)覽五頁,下載文檔查看全文
溫馨提示:
1. 部分包含數(shù)學(xué)公式或PPT動畫的文件,查看預(yù)覽時可能會顯示錯亂或異常,文件下載后無此問題,請放心下載。
2. 本文檔由用戶上傳,版權(quán)歸屬用戶,天天文庫負(fù)責(zé)整理代發(fā)布。如果您對本文檔版權(quán)有爭議請及時聯(lián)系客服。
3. 下載前請仔細(xì)閱讀文檔內(nèi)容,確認(rèn)文檔內(nèi)容符合您的需求后進(jìn)行下載,若出現(xiàn)內(nèi)容與標(biāo)題不符可向本站投訴處理。
4. 下載文檔時可能由于網(wǎng)絡(luò)波動等原因無法下載或下載錯誤,付費(fèi)完成后未能成功下載的用戶請聯(lián)系客服處理。