User profile: coder777

User info
User name:coder777
History
Joined:
Number of posts:3708
Latest posts:

Function parameter error
declare [code]n[/code] before its first use:[code][u]const int n=3;[/u] // Use const to make it lega...

re: count duplicate words (count array, void function)
Try this:[code]void duplicate(const string source[], int low, int high) { int dupTimes = 1; ...

About output .csv file
First: you cannot compare c strings like on line 23. Use strcmp Second: [code]ID_length[/code] is to...

bad_alloc exception even though memory available
bad_alloc doesn't necessarily mean running out of memory. More likely it's cause by another bug like...

re: count duplicate words (count array, void function)
put [code]else[/code] after [code]if[/code] [i]inside[/i] the loop. After the loop there's no [code]...