一个C++的题目看不太懂,大家帮忙看下
写一个函数接收2个数组和数组的大小,要求这个函数实现的功能:1.Ifthesizeofthegivenarrayiseventhenonlydataelementswit...
写一个函数接收2个数组和数组的大小,要求这个函数实现的功能:
1. If the size of the given array is even then only data elements with even indices from this array will used. Or,if the size of the given array is odd then only data elements with odd indicers from this array will be used. These data elements are called the restricted index data elements.
2. For the first array, work with only the first 3 restricted index data elements. And for the second array, work with only the first 3 restricted index data elements.
这两个要求看不太懂,大家帮帮忙,谢谢
--------------------------------------------------------------------
谢谢你的回答,问下下标为偶数的元素是什么样的数,题目给的两个数组分别是
ary1 = {123,456,789,-63,221144,4072,213,702}
ary2 = {321,654,987,-36,441122,2074,113346}
这些数怎样判断下标是偶数还是奇数? 展开
1. If the size of the given array is even then only data elements with even indices from this array will used. Or,if the size of the given array is odd then only data elements with odd indicers from this array will be used. These data elements are called the restricted index data elements.
2. For the first array, work with only the first 3 restricted index data elements. And for the second array, work with only the first 3 restricted index data elements.
这两个要求看不太懂,大家帮帮忙,谢谢
--------------------------------------------------------------------
谢谢你的回答,问下下标为偶数的元素是什么样的数,题目给的两个数组分别是
ary1 = {123,456,789,-63,221144,4072,213,702}
ary2 = {321,654,987,-36,441122,2074,113346}
这些数怎样判断下标是偶数还是奇数? 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询