2015年8月17日

c/c++ sizeof运算符详解以及对象大小

摘要: 转自:http://krystism.is-programmer.com/学过c的都知道sizeof运算符。不过还是需要注意以下几点。先从c的sizeof说起:1. sizeof 是运算符,而不是函数。虽然我们习惯sizeof(...),但( )并不是必需的,它只是表示优先级。我们把sizeof后面... 阅读全文

posted @ 2015-08-17 15:37 zhangyz017 阅读(7473) 评论(2) 推荐(0) 编辑

C中的sizeof

摘要: sizeof 一般形式为:sizeof(object),也可以sizeof var_char,不过大部分programer习惯用sizeof()。 对象可以是表达式或者数据类型名,当对象是表达式时,括号可省略。sizeof是单目运算符,其运算符的含义是:求出对象在计算机内存中所占用的字节数。 一般来... 阅读全文

posted @ 2015-08-17 15:23 zhangyz017 阅读(177) 评论(0) 推荐(0) 编辑

2015年8月16日

C++按任意键继续

摘要: 1.直接调用系统函数system("pause");例如:#includeusing namespace std;int main(){ system("pause"); return 0;}2.调用getch()函数:需要include例如:#includeint main(){prinf("按任... 阅读全文

posted @ 2015-08-16 09:32 zhangyz017 阅读(3355) 评论(0) 推荐(0) 编辑

2015年8月13日

How to compile a MATLAB Engine application in Microsoft Visual Studio

摘要: To compile a MATLAB engine application in the Microsoft Visual Studio 9.0 (2008) or Microsoft Visual Studio 10.0 (2010) environments, perform the step... 阅读全文

posted @ 2015-08-13 10:38 zhangyz017 阅读(233) 评论(0) 推荐(0) 编辑

2013年6月20日

error: crosses initialization of xxx IN switch case

摘要: The C++ standard says:It is possible to transfer into a block, but not in a way that bypasses declarations with initialization. A program that jumps... 阅读全文

posted @ 2013-06-20 10:34 zhangyz017 阅读(311) 评论(0) 推荐(0) 编辑

导航