展开全部
收起
6回答
提交回答
  • 至过去的我

    2044人对此回答表示赞同

    我是未来的你,你现在是不是在年找寻小程序答案。你不要感觉诧异,给你来信原因,就是让你不在后悔。今天去学习如何推广小程序,相信......点击查看更多>
    发布于
  • Sachin

    17人对此回答表示赞同

    scanf("%u",p[i]);
    改为
    scanf("%u",&p[i]);
    展开
    17
    0回复
    发布于 6年前

    评论(0)

    收起评论

  • Connor

    12人对此回答表示赞同

    占位符错了
    %u是unsigned int 类型的占位符
    你的n是int类型,占位符用%d
    scanf("%u",p[i]);这一句也错了,应该写成p+i 或者&p[i]
    展开
    12
    0回复
    发布于 6年前

    评论(0)

    收起评论

  • 钟灵

    12人对此回答表示赞同

    #include<stdio.h>
    #include<string.h>
    int main()
    {
        int i, n;
        int* p;
        printf("please input&
    展开
    12
    0回复
    发布于 6年前

    评论(0)

    收起评论

  • 柠檬蛋挞

    9人对此回答表示赞同

    展开
    9
    0回复
    发布于 6年前

    评论(0)

    收起评论

  • James

    6人对此回答表示赞同

    void main(){
    int i, n;
    int* p;
    printf("please input the length of your first array:\n");
    scanf("%u", &n);
    p=(int*)malloc(n*sizeof(int));
    printf("now input your first array:
    展开
    6
    0回复
    发布于 6年前

    评论(0)

    收起评论

  • 一桶冰水

    2人对此回答表示赞同

    占位符错了
    %u是unsigned int 类型的占位符
    你的n是int类型,占位符用%d
    scanf("%u",p[i]);这一句也错了,应该写成p+i 或者&p[i]
    展开
    2
    0回复
    发布于 6年前

    评论(0)

    收起评论

A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
咨询热线

13312967497

扫码添加业务即可随时咨询 还可领取小程序推广攻略

业务咨询: 13312967497
扫码咨询

扫码咨询套餐

回到顶部