《c++编程.pptVIP

  • 7
  • 0
  • 约 32页
  • 2016-12-28 发布于北京
  • 举报
对齐 程序的分界符‘{’和‘}’应独占一行并且位于同一列,同时与引用它们的语句左对齐。 }之内的代码块在‘{’右边数格处左对齐。 注释 注释通常用于: (1)版本、版权声明; (2)函数接口说明; (3)重要的代码行或段落提示。 虽然注释有助于理解代码,但注意不可过多地使用注释。 类的版式 建议以“行为”为中心,先接口,再数据,先public, 再private。 Evaluation only. Created with Aspose.Slides for .NET 3.5 Client Profile 5.2.0.0. Copyright 2004-2011 Aspose Pty Ltd. Chapter One: Introduction * As we saw, C++ was developed from C. C versus C++ Question: Is C++ the best language? (Better than C?) This sometimes become a political play ball which I don’t want to become involved in. C++ offers certain advantages over C which we will be presented as we

文档评论(0)

1亿VIP精品文档

相关文档