当前位置:网站首页>Creating dynamic two-dimensional array with C language
Creating dynamic two-dimensional array with C language
2022-06-10 23:22:00 【Harris-H】
C Language to create dynamic two-dimensional array
#include<bits/stdc++.h>
using namespace std;
int main(){
int **a;
a = (int**)malloc(sizeof(int*)*7); // Notice that this is establish 7 individual int* type
int i,j;
for( i=0;i<7;i++){
a[i] = (int*)malloc(sizeof(int)*5);
for( j=0;j<5;j++)
scanf("%d",&a[i][j]);
}
for( i=0;i<7;i++){
for( j=0;j<5;j++){
printf("%d ",a[i][j]);
}
puts("");
}
return 0;
}
边栏推荐
- [gmm+kde] target tracking simulation based on GMM and KDE kernel estimation of MATLAB
- 功能测试之设计语言测试:功能测试包含哪些测试?分别有什么作用
- MySQL related -0416
- 已知某种木材的横纹抗压力服从N(x,d2),现对十个试件作横纹抗压力试验,得数据如下:(单位:kg/cm2)
- PwnTheBox,Web:hello
- Reptiles learn knowledge
- 34. find the first and last positions of elements in the sorted array - binary search, double pointer
- 乘风破浪,探索数据可视化开发平台 FlyFish 开源背后的秘密!
- 中银证券股票开户安全吗?是正规的吗?
- 项目实训13——界面补充
猜你喜欢

第六章——分枝限界法
![[gmm+kde] target tracking simulation based on GMM and KDE kernel estimation of MATLAB](/img/44/f2b6ddf49b6d985129f57195e858eb.png)
[gmm+kde] target tracking simulation based on GMM and KDE kernel estimation of MATLAB

考研英语词汇 unit1

Software features and functions of the blind box mall app system development

一 组工人合作完成某一部件的装配工序所需的时间(单位:分钟)分别如下:

Dell R730 raid5 安装Server 2016(解决磁盘大于2T)

Executor - Shutdown、ShutdownNow、awaitTermination 詳解與實戰
![[Video] kmeans mean clustering and hierarchical clustering: R language analysis life happiness index visualization | data sharing](/img/d5/d544ab0c14ba22946219feafdc3392.png)
[Video] kmeans mean clustering and hierarchical clustering: R language analysis life happiness index visualization | data sharing

集度夏一平:不是所有事都向李彦宏汇报,靠产品跟小米华为竞争

字蛛(font-spider)教学——ttf/otf字体文件压缩
随机推荐
中银证券股票开户安全吗?是正规的吗?
一 组工人合作完成某一部件的装配工序所需的时间(单位:分钟)分别如下:
样板小作坊
MySQL related -0416
Sentinel
Vulnhub practice DC-1 target
Development and implementation of AI intelligent video analysis easycvr platform device channel batch deletion function
中金财富证券证券股票开户安全吗?靠谱吗?
数据与信息资源共享平台(八)
项目实训11——对数据库的定时备份
乘风破浪,探索数据可视化开发平台 FlyFish 开源背后的秘密!
上海股票开户是安全的吗?
关于嵌入式音频开发需要注意的两个方面
Reptiles learn knowledge
Clustered and non clustered indexes
Icml2022 | reexamine end-to-end voice to text translation from scratch
Exécuteur - shutdown, shutdown Now, awaittermination details and actual Fighting
laravel8 实现阿里云文件上传
改变世界的开发者丨玩转“俄罗斯方块”的瑶光少年
MySQL mvcc multi version concurrency control