小型系統 心情 vs. 古典樂 心情 vs. 古典樂 浪漫求籤系統 美食導航系統 季潔亭雅鈺熒岱芸 美食導航系統 楊氏音樂模擬大會考人瑋 若維 芷萱 伽倩 楊氏音樂模擬大會考 麥當勞熱量計算系統 火星文困擾你嗎 ? 火星文困擾你嗎 ? 歌詞知多少 - 挑戰你的腦容量英琪 日馨 青雪 鈺娟.

Slides:



Advertisements
Similar presentations
Chapter Programming in C
Advertisements

心理學上有一個著名的 “ 瓦倫達效應 ” ,瓦倫達是 美國一個著名的高空走鋼索的表演者,他在一次 重大的表演中,不幸失足身亡,事後他的妻子說, 我知道這一次一定要出事,因為他上場前總是不 停地說,這次太重要了,不能失敗;而以前每次 成功的表演,他總想著走鋼絲這件事本身,而不 去管這件事可能帶來的一切,後來,人們就把專.
1 Chemical and Engineering Thermodynamics Chapter 2 Conservation of mass and energy Sandler.
Planning of life Glenn Bland. 我們的神 管理一切的 永遠無誤的 公正公平的 充滿愛的 永恆的 全知的 全能的 無所不在的 超越變易的 真實無欺的.
資管同學的一些建議 高雄大學資管系 蕭漢威. 資管的生活 打 BBS 玩連線遊戲 上網看電影 聽 MP3 做網頁 唸書、考試 … 畢業時你具備了什麼能力 ?? 是不是還該多學些什麼 ??
What is static?. Static? 靜態 ? class Test { static int staticX; int instanceX; public Test(int var1, int var2) { this.staticX = var1; this.instanceX =
: Boxes ★★★☆☆ 題組: Problem Set Archive with Online Judge 題號: 11003: Boxes 解題者:蔡欣燁 解題日期: 2007 年 3 月 19 日.
CSE1301 Computer Programming Lecture 4: C Primitives I.
1 Advanced Chemical Engineering Thermodynamics Chapter 1 The phase equilibrium problem.
1 Advanced Chemical Engineering Thermodynamics Appendix H Brief introduction to perturbation theory of dense fluid.
1.1 電腦的特性 電腦能夠快速處理資料:電腦可在一秒內處理數百萬個 基本運算,這是人腦所不能做到的。原本人腦一天的工 作量,交給電腦可能僅需幾分鐘的時間就處理完畢。 電腦能夠快速處理資料:電腦可在一秒內處理數百萬個 基本運算,這是人腦所不能做到的。原本人腦一天的工 作量,交給電腦可能僅需幾分鐘的時間就處理完畢。
STAT0_sampling Random Sampling  母體: Finite population & Infinity population  由一大小為 N 的有限母體中抽出一樣本數為 n 的樣 本,若每一樣本被抽出的機率是一樣的,這樣本稱 為隨機樣本 (random sample)
: Matrix Decompressing ★★★★☆ 題組: Contest Volumes with Online Judge 題號: 11082: Matrix Decompressing 解題者:蔡權昱、劉洙愷 解題日期: 2008 年 4 月 18 日 題意:假設有一矩陣 R*C,
Lecture Note of 9/29 jinnjy. Outline Remark of “Central Concepts of Automata Theory” (Page 1 of handout) The properties of DFA, NFA,  -NFA.
: Exact Change ★★★☆☆ 題組: Contest Archive with Online Judge 題號: 11517: Exact Change 解題者:李重儀 解題日期: 2008 年 11 月 3 日 題意: 會給你一個東西的價格,以及你所擁有的鈔票和 硬幣的面額,你的程式要輸出以你的那些鈔票和.
Department of Air-conditioning and Refrigeration Engineering/ National Taipei University of Technology 模糊控制設計使用 MATLAB 李達生.
10215: The Largest/Smallest Box... ★ 題組: Problem Set Archive with Online Judge 題號: 10215: The Largest/Smallest Box... 解題者:張維珊 解題日期: 2006 年 4 月 17 日 題意:
1 Introduction to Chemical Engineering Thermodynamics Chapter 5 The second law of thermodynamics Smith.
論文研討 2 學分 授課教師:吳俊概.
: The largest Clique ★★★★☆ 題組: Contest Archive with Online Judge 題號: 11324: The largest Clique 解題者:李重儀 解題日期: 2008 年 11 月 24 日 題意: 簡單來說,給你一個 directed.
最新計算機概論 第 5 章 系統程式. 5-1 系統程式的類型 作業系統 (OS) : 介於電腦硬體與 應用軟體之間的 程式,除了提供 執行應用軟體的 環境,還負責分 配系統資源。
Unix Continuum of Tools Do something once: use the command line Do something many times: –Use an alias –Use a shell script Do something that is complex.
: War on Weather ★★☆☆☆ 題組: Contest Volumes Archive with Online Judge 題號: 10915: War on Weather 解題者:陳明凱 題意:題目總共會給你 k 個點座標代表殺手衛星的位置, 距離地球表面最少 50 公里以上,並且會給你.
Chapter 8 消費可能性 偏好 選擇 Part 3 家庭的選擇
: Playing War ★★★★☆ 題組: Problem Set Archive with Online Judge 題號: 11061: Playing War 解題者:陳盈村 解題日期: 2008 年 3 月 14 日 題意:在此遊戲中,有一類玩家一旦開始攻擊, 就會不停攻擊同一對手,直到全滅對方或無法再.
短缺,盈餘與均衡. 遊戲規則  老師想出售一些學生喜歡的小食。  老師首先講出價錢,有興趣買的請舉手。
: Placing Lampposts ★★★☆☆ 題組: Problem Set Archive with Online Judge 題號: 10859: Placing Lampposts 解題者:陳志瑜 解題日期: 2011 年 5 月 10 日 題意:美化為 Dhaka City.
生產系統導論 生產系統簡介 績效衡量 現代工廠之特徵 管理機能.
The application of boundary element evaluation on a silencer in the presence of a linear temperature gradient Boundary Element Method 期末報告 指導老師:陳正宗終身特聘教授.
資訊教育 東海大學物理系施奇廷 92 學年度第一學期. 物理研究的新方法 傳統:理論與實驗 傳統:理論與實驗 現在:理論、實驗、計算 現在:理論、實驗、計算 計算 vs. 實驗:計算物理可視為在所有的條 件皆能完美調控之下的「數值實驗室」 計算 vs. 實驗:計算物理可視為在所有的條 件皆能完美調控之下的「數值實驗室」
1 Key Concepts:  Why C?  Life Cycle Of a C program,  What is a computer program?  A program statement?  Basic parts of a C program,  Printf() function?
: Problem G e-Coins ★★★☆☆ 題組: Problem Set Archive with Online Judge 題號: 10306: Problem G e-Coins 解題者:陳瀅文 解題日期: 2006 年 5 月 2 日 題意:給定一個正整數 S (0
學習的評量 評鑑 (evaluation) 或評量 (assessment) : 學校用來正式測量學生表現的所有方法。
: A-Sequence ★★★☆☆ 題組: Problem Set Archive with Online Judge 題號: 10930: A-Sequence 解題者:陳盈村 解題日期: 2008 年 5 月 30 日 題意: A-Sequence 需符合以下的條件, 1 ≤ a.
: GCD - Extreme II ★★★★☆ 題組: Contest Archive with Online Judge 題號: 11426: GCD - Extreme II 解題者:蔡宗翰 解題日期: 2008 年 9 月 19 日 題意: 最多 20,000 組測資,題目會給一個數字.
Image Interpolation Use SSE 指導教授 : 楊士萱 學 生 : 楊宗峰 日 期 :
演算法 8-1 最大數及最小數找法 8-2 排序 8-3 二元搜尋法.
開工前的禱告.
Calculating Word Frequency in a Document.   11/6( 四 ) 這個星期四小考, 5. Threaded Binary.
Chapter 3 Entropy : An Additional Balance Equation
Extreme Discrete Summation ★★★★☆ 題組: Contest Archive with Online Judge 題號: Extreme Discrete Summation 解題者:蔡宗翰 解題日期: 2008 年 10 月 13 日.
23802 兒童成長與護理 兒童成長與護理專題講座 講者:方向敏. 在了解孩子在生理、心理及 社交上的成長過程及 會面對的問題後, 更能有效地掌握 與孩子相處之道, 共同建立愉快健康的家庭。
概念性產品企劃書 呂學儒 李政翰.
憂鬱小王子抗逆之旅 Class One - 關於憂鬱小王子抗逆之旅. 目的:向同學介紹「憂鬱小王子抗逆之旅」這個課程 目標: 認識「憂鬱小王子抗逆之旅」課程的作用 學習參與這個課程應有的行為.
資訊教育 吳桂光 東海大學物理系助理教授 Tel: 3467 Office: ST223 Office hour: Tue, Fri. (10-11am)
第 3 章 生物基礎、胎兒發展與出生 pp.86,91-92, , ,120.
: Dream ★★★☆☆ 題組: Contest Archive with Online Judge 題號: 11414: Dream 解題者:李育賢 解題日期: 2008 年 9 月 2 日 題意: 題目會給你一個數字代表測資的數量 ( 最多 100 組 ) , 每組測資第一個數字是此圖形點的個數.
Unit 3: Holland ‘ s Theory of Types 單元 3:Holland ’ s 理論的類型 By: Angela Lo.
Teacher : Ing-Jer Huang TA : Chien-Hung Chen 2015/6/30 Course Embedded Systems : Principles and Implementations Weekly Preview Question CH7.1~CH /12/26.
McGraw-Hill/Irwin © 2003 The McGraw-Hill Companies, Inc.,All Rights Reserved. 壹 企業研究導論.
自我概念與自我效能 張利中. 我 (self) 是人格的主體 我傷心我要! 我很痛我沒錯! 不公平我付出! 看不起人?我不爽! 我怎麼哭了?幫幫我 為什麼不理我?我錯了 我很差嗎?我很棒!
1 Chemical and Engineering Thermodynamics Chapter 1 Introduction Sandler.
Introduction to C. A Brief History Created by Dennis Ritchie at AT&T Labs in 1972 Originally created to design and support the Unix operating system.
“C” Programming Language CIS 218. Description C is a procedural languages designed to provide lowlevel access to computer system resources, provide language.
Introduction to C Programming. A Brief History u Created by Dennis Ritchie at AT&T Labs in 1972 u Originally created to design and support the Unix operating.
Programming With C.
C Program Design Introduction to C Programming 主講人:虞台文.
Federated Spatial Databases and Interoperability.
6.4 氣 壓.
Chapter 1 Introduction to Computers, the Internet and the Web.
An overview of C Language. Overview of C C language is a general purpose and structured programming language developed by 'Dennis Ritchie' at AT &T's.
1 Types of Programming Language (1) Three types of programming languages 1.Machine languages Strings of numbers giving machine specific instructions Example:
小型系統 心情 vs. 古典樂 心情 vs. 古典樂 浪漫求籤系統 美食導航系統 季潔亭雅鈺熒岱芸 美食導航系統 楊氏音樂模擬大會考人瑋 若維 芷萱 伽倩 楊氏音樂模擬大會考 麥當勞熱量計算系統 火星文困擾你嗎 ? 火星文困擾你嗎 ? 歌詞知多少 - 挑戰你的腦容量英琪 日馨 青雪 鈺娟.
Chapter 1 slides1 What is C? A high-level language that is extremely useful for engineering computations. A computer language that has endured for almost.
BIL 104E Introduction to Scientific and Engineering Computing Lecture 1.
1 全腦優勢 吳俊諆 『開放式創意機械工程設計』講義 2004 年 10 月 12 日. 2 課程大綱 介紹全腦優勢目的 人腦的四大象限 (4 Quadrant) 模型。 大腦優勢和思維偏好的關聯。 觀念與練習。 關鍵概念:赫曼 (4 Quadrant) 模式 、 全腦 優勢 (brain dominace)
CSCE 206 Structured Programming in C
CSC201: Computer Programming
Introduction to C Language
Chapter 2, Part I Introduction to C Programming
Presentation transcript:

小型系統 心情 vs. 古典樂 心情 vs. 古典樂 浪漫求籤系統 美食導航系統 季潔亭雅鈺熒岱芸 美食導航系統 楊氏音樂模擬大會考人瑋 若維 芷萱 伽倩 楊氏音樂模擬大會考 麥當勞熱量計算系統 火星文困擾你嗎 ? 火星文困擾你嗎 ? 歌詞知多少 - 挑戰你的腦容量英琪 日馨 青雪 鈺娟 歌詞知多少 - 挑戰你的腦容量

Winter Projects

陳怡芬 Anny Problem Solving & Programming

Pair Programming

Driver and Navigator working together on one task Roles changing often Collective responsibility for outcome Bringing together of multiple perspectives, experiences, abilities, and expertise

Why pair? Higher quality code Faster cycle time Enhanced trust/teamwork Knowledge transfer Enhanced learning More fun

The world’s first computer programmer. You read that right, a woman was the first programmer! Born in 1815, Lovelace wrote programs for an early analytical engine built by Charles Babbage. Women will take over the world!

熱情能驅動他們把軟體的某一個面向雕琢到極致,這需要 超乎常人的毅力和堅持,以及絕不向壓力妥協的精神 …

The C Language Currently, the most commonly-used language for embedded systems High-level assembly Very portable compilers exist for virtually every processor Easy-to-understand compilation Produces efficient code Fairly concise

C History Developed between 1969 and 1973 along with Unix Due mostly to Dennis Ritchie Designed for systems programming Operating systems Utility programs Compilers Filters

Computer Architecture ALU Control CPU Input Output Memory Input Device Output Device

Main Parts of C Programs

Our First C Program  Hello World

/* Hello.c Our first program */ #include /* function main begins program execution */ main() { printf("hello, world\n"); } /* Hello.c Our first program */ #include /* function main begins program execution */ main() { printf("hello, world\n"); }

The #include Directive /* Hello.c Our first program */ #include /* function main begins program execution */ main() { printf("hello, world\n"); } /* Hello.c Our first program */ #include /* function main begins program execution */ main() { printf("hello, world\n"); } include information about standard library C preprocessors C preprocessors start with #

The #include Directive /* Hello.c Our first program */ #include /* function main begins program execution */ main() { printf("hello, world\n"); } /* Hello.c Our first program */ #include /* function main begins program execution */ main() { printf("hello, world\n"); } include information about standard library C preprocessors C preprocessors start with #

Entry Point of C Programs /* Hello.c Our first program */ #include /* function main begins program execution */ main() { printf("hello, world\n"); } /* Hello.c Our first program */ #include /* function main begins program execution */ main() { printf("hello, world\n"); } define a function called main that receives no argument define a function called main that receives no argument Function body

Function Body /* Hello.c Our first program */ #include /* function main begins program execution */ main() { printf("hello, world\n"); } /* Hello.c Our first program */ #include /* function main begins program execution */ main() { printf("hello, world\n"); } Function body Function body starts with { Function body ends with }

C Statements /* Hello.c Our first program */ #include /* function main begins program execution */ main() { printf("hello, world\n"); } /* Hello.c Our first program */ #include /* function main begins program execution */ main() { printf("hello, world\n"); } a C statement C statements end with ;

Comments /* Hello.c Our first program */ #include /* function main begins program execution */ main() { printf("hello, world\n"); } /* Hello.c Our first program */ #include /* function main begins program execution */ main() { printf("hello, world\n"); } /*... */ or // for multiple lines (c++) for single line

Comments /* Hello.c Our first program */ #include /* function main begins program execution */ main() { printf("hello, world\n"); } /* Hello.c Our first program */ #include /* function main begins program execution */ main() { printf("hello, world\n"); } /*... */ or // for multiple lines (c++) for single line // Hello.c // Our first program #include // function main begins program execution main() { printf("hello, world\n"); } // Hello.c // Our first program #include // function main begins program execution main() { printf("hello, world\n"); }

Robot’s Movement

// Hello.c // Our first program #include // function main begins program execution main() { printf("hello, world\n"); } // Hello.c // Our first program #include <stdio.h> // function main begins program execution main() { printf("hello, world\n"); } printf  Print formatted data to stdout function name function Parameter (string)

#include #include int main( ) { int num; printf("Input a number:"); scanf("%d",&num); if (num>=0) printf(" 正數 "); else printf(" 負數 "); system("PAUSE"); return 0; }

// 程式功能:求解 BMI // 作者: Anny // 完成日期: 2005/4/1 #include #include int main( ) { float height, weight, BMI; printf("height=?(m)"); scanf("%f",&height); printf("weight=?(Kg)"); scanf("%f",&weight); BMI = weight / (height * height); printf("BMI = %f \n", BMI); if (BMI =18) &&(BMI <20)) printf(" 穠纖合度!! \n"); else printf(" 太重了喔!應注意。 \n"); system("PAUSE"); return 0; }

printf  Print formatted data to stdout printf("Hello, World\n"); Instructs computer to perform an action Specifically, prints the string of characters within quotes ( " " ) Entire line called a statement All statements must end with a semicolon ( ; ) Escape character ( \ ) Indicates that printf should do something out of the ordinary \n is the newline character

Some Common Escape Sequences

Editing  Compiling  Linking  Execution