免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
论坛 程序设计 Shell Help SOS
最近访问板块 发新帖
查看: 1103 | 回复: 4
打印 上一主题 下一主题

Help SOS [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2006-08-08 12:59 |只看该作者 |倒序浏览
Write a C routine which is passed three parameters. The first is an array of integers and the second is the length of the array. The third parameter, ‘p’, is an integer passed by reference. The routine should look for the first occurrence of the integer in the array and return a pointer to that array element. If the integer is not found, the routine should return NULL and should also increment ‘p’. Write a main program which fills the array with integers passed from the command line and then calls the routine with a value of ‘3’ for ‘p’. It should then output the value of ‘p’ and, if the return value was not NULL, the position in the array where the integer was found. You may assume that the command-line parameters are integers.

论坛徽章:
8
摩羯座
日期:2014-11-26 18:59:452015亚冠之浦和红钻
日期:2015-06-23 19:10:532015亚冠之西悉尼流浪者
日期:2015-08-21 08:40:5815-16赛季CBA联赛之山东
日期:2016-01-31 18:25:0515-16赛季CBA联赛之四川
日期:2016-02-16 16:08:30程序设计版块每日发帖之星
日期:2016-06-29 06:20:002017金鸡报晓
日期:2017-01-10 15:19:5615-16赛季CBA联赛之佛山
日期:2017-02-27 20:41:19
2 [报告]
发表于 2006-08-08 13:04 |只看该作者
1.发错了地方
2.这里不帮人写作业的

论坛徽章:
0
3 [报告]
发表于 2006-08-08 19:46 |只看该作者
关键 我不会啊

所以 来求助的 希望大家给点思路

谢谢 了

论坛徽章:
0
4 [报告]
发表于 2006-08-09 15:24 |只看该作者
why nobody helps me???
Please

论坛徽章:
0
5 [报告]
发表于 2006-08-09 15:28 |只看该作者
I think you should learn the skills for asking
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP