首页 > 编程语言 > 详细

Essential C++ Reading Notes

时间:2019-09-19 21:59:51      阅读:102      评论:0      收藏:0      [点我收藏+]

Chapter1

P6, 1.2 Why //#include<string> we still can use "string user_name"?

-->ctrl+left mouse on the string of "string user_name", you can find string defined in "stringfwd.h"

     ctrl+left mouse on std of "using namespace std", you can find std include "stringfwd.h"

Note1: cout<<"enter...\n";  equal to cout<<"endter..."<<endl;

P7, 1.3 if change main to my_main(), what will happen?

-->ld error, undefined ‘main‘ in function ‘_start‘

Note2: don‘t forget "constructor syntax" for initialization, example: int age(10); it works not only for class.

 

Essential C++ Reading Notes

原文:https://www.cnblogs.com/feliz/p/11552544.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!