i can't write code for you . But i can just give the idea .
just decalre 2 arrays like a and b assign values to them.And create one more variable of boolean type assign it a value false(Actually i am working with very old and also not good compiler which is TurboC++, there is nothing like bool.). So if you also working on TurboC++ compiler then i think you should create a integer type variable assign 0 to it.
then check each element of array with == operator.When condition is found true then assign True Or 1 to the variable.When you find the result of == to be false then simply assign False Or 0 to the variable and break the loop.
at last check if the variable contain True Or 1 , its mean both are same And Arrays won't be same when the variable contain False or 0.
Actually i am not sure whether c programing support bool data type or not. if it does not support then you can just assign 0 or 1 for False and True respectively.
you can take two arrays and check the condition a[i]==b[j] within 2 for loops.one will be i=o i<size of 1st array i++ and within this j=0 j<=i j++
and in these 2 loops you can check the condition a[i]==b[j] and print elements are same or else come out of loop and print they are not same.
Hi, as I was told that my code doesn’t scale well at all, I thought perhaps I’d try to get a better understanding of interfaces/abstract classes and classes and the relationship between them.
I don’t want at this stage work on a big separate project as I've already got plenty ...
Hey, so I wanna ask how I need to create a method who will remove word if in that word is 2 same chars. Example: "Potato" in this word there is a 2 "o" chars so this word will need to be removed. "Forum" in this word there is no ...