标题:我是菜鸟帮一下忙啊
取消只看楼主
fateboy
Rank: 1
等 级:新手上路
帖 子:35
专家分:0
注 册:2006-5-21
 问题点数:0 回复次数:1 
我是菜鸟帮一下忙啊
#include <iostream.h>
void input(int *p,int m)
{
cout<<"please enter"<<m<<"integers:"<<endl;
for(int i=0;i<n;i++)
cin>>p[i];
}

}\\给数组付值
void main()
{
cout<<"please input the integer:";
cin>>n;
int a[n];
input(a ,n);
}

能那样定义数组吗?



搜索更多相关主题的帖子: include please 
2006-07-09 11:29
fateboy
Rank: 1
等 级:新手上路
帖 子:35
专家分:0
注 册:2006-5-21
得分:0 
谢谢了阿
2006-07-11 15:03



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




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

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