i have an assignment where i have to write a program which allows the user to enter two arrays and combine them but before combining them the program should compare all the integers in each array and delete repeated integers then compare both arrays together and delete repeated integers. i want to know how can i delete an integer from an array. i have ideas for the rest of the assignment but i am not able to write the code for the first part which has to do whith deleting the repeated numbers. one more thing, when i want to print the array how do i print it, because when i type cout<<a; where a is the array i get weird values. by the way i am using arrays and not strings or cstrings. thank you
Comments
Leave a comment