User profile: Hotice

User info
User name:Hotice
Name:Michael Warren
Location:Indianapolis, IN
History
Joined:
Number of posts:98
Latest posts:

Searching dynamic memory for a string literal.
I have modified the straightforward approach to: [code] while (d < 10) { if (c != a[d]) d++; } ...

Searching dynamic memory for a string literal.
I guess that this is true because it checks two conditions even if the second is false. (How did I n...

Searching dynamic memory for a string literal.
Then, tell me! What is the problem with this: [code] #include <iostream> #include <string> #include ...

Searching dynamic memory for a string literal.
No. I ran it through the debugger. It crashes at the start of that while loop (if the string is not ...

Searching dynamic memory for a string literal.
OK. [code] while ((c != a[d]) && (d < 10)) { d++; } //end while [/code]