跳到主要內容

計算導論與 C 語言基礎:第六週 (C 語言歷史、規範)

本文為個人用於筆記 Coursera 課程:計算導論與 C 語言基礎中的課堂筆記。


本次課幫助大家了解 C 語言的歷史,了解 C 語言規範(Specification)的版本演進,了解 C 語言的規範是一個“寬鬆”的規範;在此基礎上,我們將闡述一門程序設計語言所包含的四種基本成分(如上所述)。


焦點問題:為什麼相同的 C 程序在不同的 C 程序編譯器上,會編譯出不同的結果?




目前的課程進度


  1. C 語言的由來
可以在這個網站上面看看近年的程式語言使用受歡迎程度: http://urlm.co/www.langpop.com


python是近年來興起的新語言,也相當熱門。


以下是 C 語言的歷史由來(why not A? or B?)


*fortran 適合做數學計算
劍橋 BCPL
貝爾實驗室


  1. C 語言的標準
制訂標準的組織ANSI
我們現在要學習的是
本課程是期望在 C 環境中,學習 C++ 語言中C語言的部分。


  1. C 語言的程序
學習語法知識
基於程式是由這是個部分所組成,也因此在學習一門新的語言時可以由這四個方面做切入,如下:
  • 數據成分// 有哪些數據類型?如何使用?
  • 運算成分// 有哪些運算符號?要如何使用?
  • 控制成分// 三種類型的控制語句是如何寫的?(tips:就包含課前介紹的三種:順序、分支、循環)
  • 傳輸成分// 在程序中如何輸入和輸出數據?



留言

這個網誌中的熱門文章

【Quora 翻譯&整理】對於程式初學者嘗試解決問題的好網站推薦

原文出處: What are some suggested websites to solve programming problems for beginners? (2016/5/15) 此篇文章強調的是去參加project的那種網站推薦

第一章 電腦、網際網路與全球資訊網簡介

C++  How to Program 7/E 筆記 第一章 電腦、網際網路與全球資訊網簡介 學習目標 基本軟硬體觀念 物件技術觀念(類別、物件、屬性、行為、封裝、繼承) 程式語言的種類 典型的C++開發環境 業界標準物件導向素模語言——UML 沿革 網際網路、球球資訊網與Web 2.0現象的沿革 在Linux 的GNU C++ 與在Microsoft Visual C++環境中測試C++ 應用程式 *結構化程式設計(structured programming) *物件導向程式設計

【 Intro to Java Programming 】Lesson 1 : Introduction-5 (Algorithms)

This Notes is according to the udacity free course : Intro to Java Programming Lesson 1 : Introduction-5(Algorithms) Key Word : pseudocode Algorithms just like a doing things protocol+condition. Without protocol+condition, you can not make choice or do the decision. So if you want to buy car, you know the car speed and you don't consider the car price or the car condition, so it is your thought, it is the algorithm you buy a car. For computer, we give them the program ===>for them to do algorithm, but now we try to write done in Pseudocode. Pseudocode write in "spoken language" which help us to understand the problem so we can translate them into computer language ==>JAVA Code.org maybe it could help you have fun from learning code