Settings
|
Sign in
|
Sign up
Bar
Post
Home
>
Bar C++
>
View post
Reply the post
|
View all
The author has
5
posts.
Dev-C++竟然能直接用变量定义数组的大小,无需malloc或new!
Floor 1
巨大八爪鱼
3/23/16 12:35
#include <iostream>
using namespace std;
int main(void)
{
int n = 15;
int arr[n];
arr[0] = 10;
cout << "Size: " << sizeof(arr) / sizeof(int) << endl;
return 0;
}
Floor 2
巨大八爪鱼
3/23/16 12:36
这样也行啊,卧槽
Floor 3
巨大八爪鱼
3/23/16 12:38
Floor 4
巨大八爪鱼
3/23/16 12:40
http://blog.csdn.net/sxhelijian/article/details/16972221
Floor 5
巨大八爪鱼
3/23/16 12:41
http://bbs.csdn.net/topics/390852247
Content converter:
No conversion
Mainland
Taiwan
Hong Kong
Singapore
Reply the post
Content:
User:
You are currently anonymous.
Captcha:
Unclear? Try another one.