第二章 c++ 基础知识

  • View
    174

  • Download
    8

Embed Size (px)

DESCRIPTION

第二章 c++ 基础知识. 2.1 变量和赋值 2.2 输入与输出 2.3 数据类型与表达式 2.4 简单控制流程 2.5 程序风格 作业. 课时安排:第一次课: 2.1~2.3 ; 第二次课: 2.4~2.5. 2.1 变量和赋值. #include void main() {int number_of_5,total_cents,number_of_25,number_of_10; coutnumber_of_25; - PowerPoint PPT Presentation Copyright Complaint Adult Content Flag as Inappropriate Report This Download Presentation 第二章 c++ 基础知识 An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. - - - - - - - - - - - - - - - - - - - - - - - - - - E N D - - - - - - - - - - - - - - - - - - - - - - - - - - Presentation Transcript 第二章 c++基础知识 2.1 变量和赋值 2.2 输入与输出 2.3 数据类型与表达式 2.4 简单控制流程 2.5 程序风格 作业 课时安排:第一次课:2.1~2.3; 第二次课:2.4~2.5 2.1 变量和赋值 #include void main() {int number_of_5,total_cents,number_of_25,number_of_10; coutnumber_of_25; coutnumber_of_10; coutnumber_of_5; total_cents=number_of_25*25+number_of_10*10 +number_of_5*5; cout