It is impossible for you to win this argument with me, so stop trying, because it's not even an argument. It's a fact: That is C++.
Remember in school when they explained true and false questions to you? If any part of it is false, the whole statement is false. If any part of that is C++, all of it is C++.
But just to humor you:
Code:
// This will CAP the first letter of a single word
This is C++. Technically it could be C99, but this style of comment originated with C++, that makes it more C++ than C.
Code:
char *CAP_WORD(char *txt)
{
C++ has pointers, and char, so does C. This can go either ay, so we will ignore it.
Code:
std::string rt = "";
That is completely C++.That could be either, so we will ignore it.That's C++ because you are using an overloaded assignment operator to be able to assign to that string class.
Code:
txt2 = const_cast<char*>(rt.c_str());
_strlwr(txt2);
That cast is purely C++, so is the method for the class you are invoking. While technically you could have a function pointer as part of a structure, you and I both know that is C++.
Code:
*txt2 = (((*txt2)>='a' && (*txt2) <= 'z') ? ((*txt2)+('A'-'a')) : (*txt2));
That could be either.
Code:
return (_strdup(txt2));
}
I'm assuming you are saying that is C, even though standard C doesn't have _strdup.
Anyway, as I've pointed out, that is C++. You win no part of this argument, stop trying.
Quzah.