- 博客(6)
- 资源 (3)
- 收藏
- 关注
转载 C++ Tutorial: Enhance Type Safety and Code Clarity with the nullptr Keyword
IntroductionThe literal 0 has a unique position in C++ programming -- it automatically converts to almost every fundamental type, depending on the context: int x=0; double d=0; char * p
2011-12-30 10:58:46 754
转载 C++ 2011: nullptr
C++ used to lack a special value to indicate a null pointer. It used 0 for this purpose, something that was inherited from C. This led to some problems, which we'll show in this article. The new sta
2011-12-30 10:37:31 1133
转载 C++ 2011: Strongly-typed Enums
Enumerations are an important feature of C++, but unlike in other languages, enumerations are not type-safe. There are several problems with the enums: they export their enumerators (the members of
2011-12-30 10:09:37 1266
转载 C++ 2011: Uniform Initialization
In C++, initializing objects is not done in the same manner in all contexts. The rules for initialization and constructors are not really simple and developers sometimes have to write lot of explici
2011-12-30 09:48:54 1155
转载 随机提取N条记录的SQL语句(转)
Sql server: select top 10 * from 表 order by newid()Access: SELECT top 10 * FROM 表 ORDER BY Rnd(id) Rnd(id) 其中的id是自动编号字段,可以利用其他任何数值来完成比如用姓名字段(UserName) SELECT top 10 *
2011-12-28 17:09:13 425
转载 百度面试题
问题1,用C语言实现一个revert函数,它的功能是将输入的字符串在原串上倒序后返回。答案:char *revert(char * str){int n=strlen(str);int i=0;char c;for(i=0;i{c=str;str=str[n-i];str[n-i]=c;}return str;}问题2 编程:用C语言
2011-12-28 17:08:21 427
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人