C语言简介

  • C is a programming language that lets us give a computer very specifio commands.
  • C语言是一种编程语言,它让我们可以给计算机非常特殊的命令
  • C was invented in 1972. It's one of the oldest languages to be used even today !
  • C是在1972年发明的。它是至今仍在使用的最古老的语言之一!
  • It is one of the **most widely used **programming languages in the world.
  • 它是世界上使用最广泛的编程语言之一。
  • It has influenced many popular languages, especially C++.
  • 它影响了许多流行的语言,尤其是c++。
  • But why do we still use such an old programming language?
  • 但为什么我们还在使用这么古老的编程语言呢?
  • Why not something newer and easier to understand, like Python?c++
  • 为什么不使用一些更新的、更容易理解的东西,比如Python呢?
  • let's find out !
  • 让我们找出答案。

C语言特点

C特点一:简单

Simple: C is a Structure based language i.e we can divide a big program into multiple parts, which makes it easy to write and understand.

简单:C是一种基于结构的语言。我们可以把一个大程序分成多个部分,这使它易于编写和理解。

C特点二:高效、快速

  • Efficient and Fast 高效、快速

    • Programs written in C are efficient and fast.
    • 用C写的程序效率高,速度快。
    • This is the most critical factor for usinq C over other lanquages.
    • 这是用C而不是其他语言最关键的因素。
    • C is considered to be "close to the computer," meaning we can program the computer to do precisely what we want.
    • C被认为是“接近计算机”的,这意味着我们可以对计算机编程,使其精确地做我们想做的事情。
    • To understand what this means, here is an analogy: Imagine you want your brother to buy you a cake from the store.
    • 为了理解这是什么意思,这里有一个类比:想象你想让你的兄弟从商店给你买一个蛋糕。
      • In Python, you would just use one line to say "Buy me a cake from the store."

      • 在Python中,你只需要用一行字来表示“从商店给我买个蛋糕”。

      • Your brother will go and come back in 5 hours because he went to a store very far to get the best cake available.

      • 你哥哥会在5个小时后回来,因为他去了一家很远的商店买最好的蛋糕

      • In C, we can tell your brother, "Get in the car, drive to the store around the block, buy the first cake you see, and drive immediately back", which will happen in 20 odd minutes.

      • 在C语言中,我们可以告诉你的兄弟,“上车,开车到附近街区的商店,买第一个蛋糕,然后马上开车回来”,这将在20多分钟内发生。

      • Of course , it won’t be the best cake . But it is much faster and is the exact cake that you wanted .

      • 当然,这不会是最好的蛋糕。但是它的速度要快得多,而且正是你想要的蛋糕

C特点三:可移植性

  • Portable : Programs written in C can be run on different types of machines with little or no modifications .
  • 可移植性:用C编写的程序可以在不同类型的机器上运行,只需很少的修改或不需要修改。

00 what is C Programming?C编程是什么?的更多相关文章

  1. Programming pearls 编程珠玑的题目

    Programming pearls 编程珠玑的题目 这段时间有空都在看编程珠玑,很经典的一本书,一边看一边用 python 做上面的题目,我做的都放到 github 上了 https://githu ...

  2. Language Oriented Programming:下一代编程样式 Part I (翻译)

    原文信息 原文地址 作者信息 Sergey Dmitriev JetBrains Sergey Dmitriev is the cofounder and CEO of JetBrains Inc., ...

  3. 03 Comments in C Programming C编程中的注释

    Comments 注释简介 Let's take a quick break from programming and talk about comments. Comments help progr ...

  4. Teaching yourself programming -一个编程爱好者的碎碎念

    多数时候,个人活动的展开都源于某个具体的动机.或许你是为了可以写点小工具,解决日常生活中的一些重复劳动:或许,你心怀梦想,梦想着某一天完成一款你心目中完美的游戏:又或许是,你内心憧憬电影里的hack, ...

  5. Structured Streaming Programming Guide结构化流编程指南

    目录 Overview Quick Example Programming Model Basic Concepts Handling Event-time and Late Data Fault T ...

  6. Java实战之03Spring-03Spring的核心之AOP(Aspect Oriented Programming 面向切面编程)

    三.Spring的核心之AOP(Aspect Oriented Programming 面向切面编程) 1.AOP概念及原理 1.1.什么是AOP OOP:Object Oriented Progra ...

  7. S2---深入.NET平台和C#编程的完美总结

    1.NET简单解说 l 面向对象提升 OOP(Object Oriented  Programming)面向对象编程 AOP:(Aspache  Oriented Programming):面向切面编 ...

  8. python面向对象编程

    面向对象编程,简称OOP, object oriented programming OOP编程的三大特性:封装,继承,多态 1. 封装 把功能的实现细节封装起来,不对外暴露.只留出入接口. 2. 继承 ...

  9. 首届Autodesk编程马拉松(Hackathon)开始报名啦 -- 6.14~15 上海

    欢迎报名参加Autodesk 首届编程马拉松 ( Hackathon ) 活动   首届Autodesk编程马拉松(Hackathon)活动即将在Autodesk公司中国研究院(上海)举办.本次编程马 ...

随机推荐

  1. 利用Decorator和SourceMap优化JavaScript错误堆栈

    配合源码阅读体验更佳. 最近收到用户吐槽 @cloudbase/js-sdk(云开发Cloudbase的JavaScript SDK)的报错信息不够清晰,比如下面这条报错: 这属于业务型报错,对于熟悉 ...

  2. 除了方文山,用TA你也能帮周杰伦写歌词了

    周杰伦几乎陪伴了每个90后的青春,那如果AI写杰伦风格的歌词会写成怎样呢? 首先当然我们需要准备杰伦的歌词,这里一共收录了他的十几张专辑,近5000多行歌词. 原文档格式: 第一步数据预处理 def ...

  3. php中无参函数的RCE

    学习一下php中无符号的问题. 1.无参数 <?php if(';' === preg_replace('/[^\W]+\((?R)?\)/', '', $_GET['code'])) { ev ...

  4. 09 promise then

    then() 方法返回一个 Promise 链式调用:then里面回调函数(成功回调和失败回调),凡事这两个回调函数里面抛出错误或者返回一个已经是拒绝状态的 Promise. 那么 then 返回的  ...

  5. 2020 最新python入门知识

    1. 基础语法 1.1 注释 在编写代码的时候,有些代码不需要执行或增加代码说明,那么就需要用到注释了. 被注释的文本或代码是不会被执行的. 注释可以使用如下三种方式: # 号 # 第一个注释,本行代 ...

  6. vue.js 的安装

    包含vue的脚手架的安装. 1,到项目目录下输入 cnpm i -g vue-cli 2,安装完毕后咱们看看.输入 vue 即可看到vue的安装情况. 3,输入 vue list 即可看到框架的选择 ...

  7. Promise核心实现

    核心 构造函数核心 维护状态变量,只能由pending变为resolve或者reject 维护一个存储结果的变量 维护一个回调数组,执行到then,如果我们传入的立即执行函数没有立即执行resolve ...

  8. 不光是查找值!"二分搜索"

    从有序数组中查找某个值 问题描述:给定长度为n的单调不下降数列a0,…,an-1和一个数k,求满足ai≥k条件的最小的i.不存在则输出n. 限制条件:1≤n≤1060≤a0≤a1≤…≤an-1< ...

  9. $\TeX$ Gyre 字体安装过程与问题解决

    目录 安装过程 1. 下载字体包 2. 安装字体 3. 测试范例文件 本文地址 https://www.cnblogs.com/oberon-zjt0806/p/13672426.html 本文只是一 ...

  10. Redis哨兵模式(sentinel)部署

    1 主机环境 我这里使用的操作系统是centos 6.5,安装在vmware上,共三台. 主机名 IP 操作系统 用户名 安装目录 node1 192.168.1.101 centos 6.5 wxy ...