There are currently 5 posts.
Font size: Small - 100% (Default)  Content converter: No conversion
 
Clicks Replies
1132 4
Dev-C++竟然能直接用变量定义数组的大小,无需malloc或new!
巨大八爪鱼
武林盟主 二十一级
Reply
Floor 1 Posted at: 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;
}


巨大八爪鱼
武林盟主 二十一级
Reply
Floor 2 Posted at: 3/23/16 12:36

这样也行啊,卧槽
巨大八爪鱼
武林盟主 二十一级
Reply
Floor 3 Posted at: 3/23/16 12:38
巨大八爪鱼
武林盟主 二十一级
Reply
Floor 4 Posted at: 3/23/16 12:40
http://blog.csdn.net/sxhelijian/article/details/16972221
巨大八爪鱼
武林盟主 二十一级
Reply
Floor 5 Posted at: 3/23/16 12:41
http://bbs.csdn.net/topics/390852247
Reply the post
Content:
User: You are currently anonymous.
Captcha:
Unclear? Try another one.
(Shortcut key: Ctrl+Enter)
Post Information
Clicks: 1132 Replies: 4
Author: 巨大八爪鱼
Last reply: 巨大八爪鱼
Last reply time: 3/23/16 12:41
Announcements