c语言指针 动态数组分配的一个小小错误,求解决~~~谢谢!

[复制链接]
查看11 | 回复3 | 2016-8-14 08:08:44 | 显示全部楼层 |阅读模式
楼主你好。#include#includeint* Create2(int n,int m){
int *b=NULL;b = (int*)malloc(sizeof(int)*m*n);
return b;}main(){
int m,n;
int *a;int i,j;
printf("Please input n and m:");
scanf("%d %d",&m,&n);
printf("P...
回复

使用道具 举报

千问 | 2016-8-14 08:08:44 | 显示全部楼层
你想要什么结果...
回复

使用道具 举报

千问 | 2016-8-14 08:08:44 | 显示全部楼层
什么叫只出现第一行的结果啊?...
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行