Computer >> บทช่วยสอนคอมพิวเตอร์ >  >> การเขียนโปรแกรม >> C++

ภาษาโปรแกรม C++ คืออะไร?

C++ เป็นภาษาโปรแกรมที่พัฒนาโดย Bjarne Stroustrup ในปี 1979 ที่ Bell Labs C++ ถูกมองว่าเป็น middle-level language รวมคุณสมบัติ high-level และ low-level เป็น superset ของ C โปรแกรม C ที่ถูกต้องเกือบทุกตัวเป็น C++ ที่ถูกต้อง C++ รันบนหลาย platform: Windows, Mac OS, UNIX versions

เป็นภาษาที่:

  • Statically typed – type checking ทำระหว่าง compile-time ไม่ใช่ run-time
  • Compiled – implementations เป็น compilers (แปลง source code เป็น machine code) ไม่ใช่ interpreters
  • General-purpose – ใช้ได้ทั่วไปข้าม application domains ไม่ specialized สำหรับ domain เฉพาะ
  • Case-sensitive – identifiers, keywords หมายความต่างกันเมื่อ case ต่างกัน
  • Free-form – positioning ของ characters ใน program text ไม่สำคัญ
  • Procedural Programming – โครงสร้างโปรแกรมเป็น reusable procedures (subroutines/functions)
  • Object-oriented Programming – paradigm บน concept ของ objects (data fields + methods)
  • Generic Programming – algorithms เขียนในรูป types to-be-specified-later instantiate เมื่อต้องการสำหรับ specific types