删除数组中的重复项 [英] removing duplicates in an array

查看:114
本文介绍了删除数组中的重复项的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,我的代码有点问题......我已经编写了程序,但它只是没有做我想要的,需要一个小调整,我一直在尝试修复它为ohurs和无法找到解决方案。我只需要编写一个删除数组中重复项的函数。继承我的主要代码

Hello, I''m having a little problem with my code...I have the program written but its just not doing what I want and needs a minor tweak and I''ve been trying to fix it for ohurs and can''t find a solution. I just need to write a function that removes the duplicates in an array. heres my code for main

展开 | 选择 | Wrap | 行号

推荐答案


你好,我我的代码有点问题......我已经编写了程序,但它没有做我想做的事情,需要进行一些小调整,我一直在努力为ohurs修复它而无法找到解决方案。我只需要编写一个删除数组中重复项的函数。继承我的主要代码
Hello, I''m having a little problem with my code...I have the program written but its just not doing what I want and needs a minor tweak and I''ve been trying to fix it for ohurs and can''t find a solution. I just need to write a function that removes the duplicates in an array. heres my code for main
展开 | 选择 | Wrap | 行号


for isPresent函数虽然我不知道我正在搜索的数字...对于int v ...我不应该有2个for循环然后迭代所有数组的数目
for the isPresent function though i don;t know what number im searching for...for the int v...shouldnt i have 2 for loops then to iterate all the number of the array
展开 | 选择 | Wrap | 行号



for isPresent函数虽然我不知道我在搜索什么号码...对于int v ...不应该有2个for循环然后迭代所有数组的数目
for the isPresent function though i don;t know what number im searching for...for the int v...shouldnt i have 2 for loops then to iterate all the number of the array
展开 | 选择 | 换行 | 行号


这篇关于删除数组中的重复项的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆