00 what is C Programming?C编程是什么?

C语言简介

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特点一:简单

C特点一:简单.png

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特点二:高效、快速

C特点二:高效、快速.png
  • 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特点三:可移植性

C特点三:可移植性.png
  • 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编程是什么?)