multiset

Pages: 12
closed account (48T7M4Gy)
#kemort - my real problem is that when i input the number sequence i want to output numbers which appears odd times (sorry for my English) for example: if i input sequence: 1 2 4 1 2 3 the program must output: 3 4 because they appeared 1 time in my sequence and 1-is odd
and here is my program


@biwkina

I think you need to read the various replies you have already been given.

As far as the string problem is concerned the
best idea
is that you apply the same array solution, and try it yourself. You have more than enough information to achieve what you are trying to do.

Perhaps you might also like to review your knowledge of <string>'s or C-style strings and combine it with that. No more help is necessary though.

Thank you for your request and have a nice day. :)
mystrings contains:hard work and do it yourself makes it easy
mymultiset contains:        aaaadddeeefhiikklmnooorrrsssttuwyy
 ODD  Key:  has 1 entries
EVEN  Key:   has 8 entries
EVEN  Key: a has 4 entries
 ODD  Key: d has 3 entries
 ODD  Key: e has 3 entries
 ODD  Key: f has 1 entries
 ODD  Key: h has 1 entries
EVEN  Key: i has 2 entries
EVEN  Key: k has 2 entries
 ODD  Key: l has 1 entries
 ODD  Key: m has 1 entries
 ODD  Key: n has 1 entries
 ODD  Key: o has 3 entries
 ODD  Key: r has 3 entries
 ODD  Key: s has 3 entries
EVEN  Key: t has 2 entries
 ODD  Key: u has 1 entries
 ODD  Key: w has 1 entries
EVEN  Key: y has 2 entries

Program ended with exit code: 0
Last edited on
Topic archived. No new replies allowed.
Pages: 12