C语言C++的扩展.pptVIP

  • 1
  • 0
  • 约1.94千字
  • 约 11页
  • 2018-05-22 发布于河南
  • 举报
C语言C的扩展

第14章 C++的扩展 重点难点 掌握C++对c语言的扩充内容。 不同点,优点 Turbo c++ Turbo C,美国Borland 公司 该公司相继推出了一套 Turbo系列软件, 如Turbo BASIC, Turbo Pascal, Turbo Prolog Borland 公司,面向对象程序软件包Turbo C++并包含了面向对象的基本思想和设计方法。 C++的输入输出 eg14_01 #include stdio.h #include iostream.h main() { printf(\nthis is c++ program!\n); int a,b; float c; cout\nPlease Input a,b,c:; cin abc; cout a=aendl; cout b=bendl; cout c=cendl; } 2 函数重载 eg14_02 #include iostream.h int max(int a,int b,int c) { if (ab) a=b; if (ac) a=c; return a;} float max(float a,float b,float c) { if (ab) a=b; if (ac) a=c; return a;} main() {

文档评论(0)

1亿VIP精品文档

相关文档