int xfun(int *a,int n) { int x = *a;//a的类型是int *,a+1跳动一个int的长度 ; pa < a + n; pa++)//指向同一个类型的指针比较大小,相减是两者之间的元素个数 { //string s = pa - a;// string接受const char*的单参构造函数不是explicit的,但编译器不能把int转换为string类型 decltype(pa - a) t; ][]; decltype(arr) Type; float f
http://stackoverflow.com/questions/228532/difference-between-char-isdigit-and-char-isnumber-in-c-sharp Char.IsDigit() is a subset of Char.IsNumber(). Some of the characters that are 'numeric' but not digits include 0x00b2 and 0x00b3 which are supersc
关于这三者的区别stackoverrflow里有一个答案是这样说的: 3.9.1 Fundamental types [basic.fundamental] 1 Objects declared as characters char) shall be large enough to store any member of the implementation's basic character set. If a character from this set is stored in a c
1, char a[] = "hello"; char c[] = {'h','e','l','l','o'}; int b[] = {1, 2, 3, 4, 5}; 数组是开辟一块连续的内存空间,数组本身的标识符(也就是通常所说的数组名)代表整个数组,可以使用sizeof来获得数组所占据内存空间的大小(注意,不是数组元素的个数,而是数组占据内存空间的大小,这是以字节为单位的).举例如下: // test.cpp : Defines the entry point for the co