跳到內容
Main menu
Main menu
move to sidebar
hide
Navigation
Main Page
Help
Browse
Cookbook
Wikijunior
Featured books
Recent changes
Random book
Using Wikibooks
Community
Reading room forum
Community portal
Bulletin Board
Help out!
Policies and guidelines
Contact us
Search
Search
Donations
Appearance
Create account
Log in
Personal tools
Create account
Log in
Pages for logged out editors
learn more
Contributions
Discussion for this IP address
目錄
移動到側邊欄
隱藏
開始
1
概述
2
章節提綱
3
學習目標
切換目錄
程式設計基礎/條件
Add languages
Add links
Book
Discussion
English
Read
Latest draft
Edit
Edit source
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Latest draft
Edit
Edit source
View history
General
What links here
Related changes
Upload file
Special pages
Permanent link
Page information
Cite this page
Get shortened URL
Download QR code
Sister projects
Wikipedia
Wikiversity
Wiktionary
Wikiquote
Wikisource
Wikinews
Wikivoyage
Commons
Wikidata
MediaWiki
Meta-Wiki
Print/export
Create a collection
Download as PDF
Printable version
In other projects
外觀
移動到側邊欄
隱藏
來自華夏公益教科書,開放書籍,為開放世界
<
程式設計基礎
最新審查版本於
2019年10月8日
檢查
。有
等待審查的模板/檔案更改
。
概述
[
編輯
|
編輯原始碼
]
本章介紹條件和選擇控制結構。
章節提綱
[
編輯
|
編輯原始碼
]
結構化程式設計
選擇控制結構
如果那麼否則
程式碼塊
關係運算符
賦值與相等
邏輯運算子
巢狀如果那麼否則
案例控制結構
條件示例
程式碼示例
C++
C#
Java
JavaScript
Python
Swift
練習:條件
學習目標
[
編輯
|
編輯原始碼
]
理解關鍵術語和定義。
給定示例虛擬碼、流程圖和原始碼,建立一個使用條件和選擇控制結構來解決給定問題的程式。
← 練習:函式
程式設計基礎
結構化程式設計 →
類別
:
圖書:程式設計基礎
華夏公益教科書