| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 576 人关注过本帖
标题:快来看看这是怎么一回事?
取消只看楼主 加入收藏
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
快速回复:快来看看这是怎么一回事?
数据加载中...
 
   



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

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