标题:快来看看这是怎么一回事?
取消只看楼主
wantflying
Rank: 1
等 级:新手上路
帖 子:5
专家分:0
注 册:2005-5-16
 问题点数:0 回复次数:0 
快来看看这是怎么一回事?

各位高手:我是新手啊! 一定帮我看看这个问题该怎么解决呢? #include <stdio.h>

void main() { int a[2][3],*p=a; int i,j; for (i=0;i<2; i++) for (j=0; j<3; j++); scanf("%d",p+i*3+j); for(i=0;i<2;i++) { printf("\n"); for (j=0; j<3;j++) printf("%d", *(p+i*3+j)); } } 错误提示:E:\XiaoHu\C\7\7.cpp(5) : error C2440: 'initializing' : cannot convert from 'int [2][3]' to 'int *' Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or func

搜索更多相关主题的帖子: conversion convert include cannot 
2005-05-16 19:47



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-18407-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.016260 second(s), 8 queries.
Copyright©2004-2025, BCCN.NET, All Rights Reserved