c++的问题

[复制链接]
查看11 | 回复4 | 2009-8-14 11:24:07 | 显示全部楼层 |阅读模式
#include using namespace std;int main(){int max_value(int array[][4]);int a[3][4]={{1,4,2,6},{13,21,23,17},{56,32,14,28}};coutmax) max=arr...
回复

使用道具 举报

千问 | 2009-8-14 11:24:07 | 显示全部楼层
你for语句没有用{}括起来,超过1条语句就要使用{}的,使之成为语句块...
回复

使用道具 举报

千问 | 2009-8-14 11:24:07 | 显示全部楼层
这样写就行了:#include int max_value(int array[][4]);int main(){ int max_value(int array[][4]); int a[3][4]={{1,4,2,6},{13,21,23,17},{56,32,14,28}}; cout<<"max_v...
回复

使用道具 举报

千问 | 2009-8-14 11:24:07 | 显示全部楼层
#include using namespace std;int main(){ int max_value(int array[][4]);int a[3][4] = {{1,4,2,6},{13,21,23,17},{56,32,14,28}};cout<<"max_value is"<<max_value(a...
回复

使用道具 举报

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

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行