随笔分类 -  C++

摘要:http://www.cppreference.com/operator_precedence.htmlPrecedenceOperatorDescriptionExampleAssociativity1::Scoping operatorClass::age = 2;none2()[]->.++--Grouping operatorArray accessMember access fro... 阅读全文
posted @ 2010-11-02 01:33 Adriano 阅读(251) 评论(0) 推荐(0)
摘要:C++中的动态数组 数组做函数参数 阅读全文
posted @ 2010-09-29 00:58 Adriano 阅读(1398) 评论(0) 推荐(1)
摘要:笔试中有一道选择题,考了strncpy函数,具体题目我不记得,大致是这样 char *s1 = "Hello world"; // 还是 char s1[] = "Hello world" ;我忘记了 char s2[] = "Byebye"; strncpy(s1, s2, strlen(s2)); puts(s1); 问输出是什么? 阅读全文
posted @ 2010-09-28 16:16 Adriano 阅读(507) 评论(0) 推荐(0)
摘要:26号的微软笔试是我开始求职之旅的第一场笔试,之前没有太准备, 完全是去打酱油的,也顺便提醒一下要开始进入找工作的状态了。前面的10道选择题,算法、复杂度的偏多,比较注重细节,最后的一道算法题没写完,思路也有点错误。这里总结一下笔试时遇到的问题。 阅读全文
posted @ 2010-09-28 15:38 Adriano 阅读(496) 评论(0) 推荐(0)
摘要:一些关于虚函数的笔记 阅读全文
posted @ 2010-09-12 10:27 Adriano 阅读(292) 评论(0) 推荐(0)