User profile: Chervil

User info
User name:Chervil
History
Joined:
Number of posts:6576
Latest posts:

use std::tolower() to find a keyword in a string
Just use a for-loop in the usual way. This[code] for (char& ch : keywords) ch = tolower(ch);[...

srand funtion
Your code is calling srand() multiple times. That is a problem, as it will almost certainly use the ...

Mistake when writing an object from another one
I'd say any time your code modifies the value of [code]N[/code], you should be checking that the poi...

Mistake when writing an object from another one
Thank you for posting the rest of the code. As I suspected the pointer was initialised to NULL, the...

Mistake when writing an object from another one
It should always be [code][b]int[/b] main()[/code], not void. The code above doesn't show in full ...

This user does not accept Private Messages

User: Chervil

  • Public profile