机器人编程c语言入门

机器人培训 2022-03-17 18:07www.robotxin.com机器人培训
机器人编程的C++基础知识
The next important requirement for orking ith a robot is to learn a fe programming languages. By using these languages, e can program the robot for different application. Some of the popular programming languages used for creating robotic applications are C++ and Python. This doesn’t mean that e on’t use other languages. Programming languages like Java and C# are also used in robotics, but the most mon languages are C++ and Python.
使用机器人的下一个重要要求是学习一些编程语言。通过使用这些语言,我们可以为不同的应用程序设计机器人。用于创建机器人应用程序的一些流行的编程语言是C++和Python。这并不意味着我们不会使用其他语言。诸如Java和C语言这样的编程语言也在机器人学中使用,最常用的语言是C++和Python。
132098743.jpg
1 Getting Started ith C++
We can define C++ as a superset of the C programming language, or e can say “C ith classes.” The C++ programming language project, initially called C ith Classes, as started in 1979 by puter programmer Bjarne Stroustrup. His main ork as adding object-oriented programming into the C language by maintaining its portability ithout sacrificing speed or lo-level functionality. Like C, C++ is a piled language. It needs a piler to convert the source code into executable code.
我们可以将C++定义为C编程语言的超集,或者我们可以说“C ith classes”。C++编程语言项目,最初称为C ith Classes,是由计算机程序员Bjarne Stroustrup在1979开始的。他的主要工作是通过保持C语言的可移植性而不牺牲速度或低级功能,将面向对象编程添加到C语言中。与C一样,C++是一种编译语言。它需要一个编译器将源代码转换成可执行代码。
2 Timeline: The C++ Language
In 1983, the C ith Classes project changed to C++. The ++ operator is used for incrementing a variable, so C++ means it is the C language ith ne features.
1983年,C ith Classes项目改为C++。++运算符用于递增变量,C++意味着它是具有新特性的C语言。
In 1990, Borland’s Turbo C++ piler released as a mercial product.
1990年,Borland的Turbo C++编译器作为商业产品发布。
In 1998, C++ standards ere published as C++ ISO/ IEC 14882:1992 or C++98.
1998年,C++标准发布为C++ ISO/IEC 14882:1992或C++98。
In 2005, the C++ standards mittee released a report of ne features added to the latest C++ standard.
2005年,C++标准委员会发布了一个关于最新C++标准的新特性的报告。
In 2011, the ne C++ standards ere pleted.
2011年,最新的C++标准完成。
The Boost libraries (.boost.) made a considerable impact on the ne standards. Boost C++ Libraries is a set of libraries for the C++ programming that provides support for tasks and structures, such as linear algebra, multithreading, image processing, regular expressions, and unit testing.
Boost库(.boost.)对新标准产生了相当大的影响。Boost C++库是C++编程的一组库,它为任务和结构提供支持,例如线性代数、多线程、图像处理、正则表达式和单元测试。
3145856565.jpg
3 C/C++ in Ubuntu Linux
Ubuntu Linux es ith an in-built C/C++ piler called GCC/G++. GCC stands for GNU Compiler Collection. It includes pilers for C, C++, Objective-C, Fortran, Ada, and Go, as ell as libraries for these languages.
Ubuntu Linux带有一个内置的C/C++编译器,称为GCC/G++。GCC代表GNU编译器集合。它包括C、C++、ObjaveC、FORTRAN、Ada和GO的编译器,以及这些语言的库。
 
 

Copyright © 2016-2025 www.robotxin.com 人工智能机器人网 版权所有 Power by