Cornflake wrote:
Biokinetica wrote:
MasterJedi wrote:
I need something coded
TRUE GRIT
Now, I now that TRUE is one of those ubiquitous programming words used a lot in SQL and BASIC.
Was kind of hoping to get a string showing something like "IF GRIT =1 THEN TRUE" or something.
I haven't written BASIC since I was 10.
If you can in fact do this, I'd prefer it to be as complex as possible given the length of text.
Another thing: null characters terminate strings, so there can't be any spaces in the statement. You can cheat and use an array, but...
<pedant>
But a space isn't a null character.
Well, if you're getting the input from the iostream, a null character will be appended by a space. Even though I don't think that's what the thread starter wants, it's still worth noting.
Quote:
Er, and null doesn't necessarily terminate a string - it depends on the language.
I don't see the point in doing this in anything but C/C++/C#. That said, if all we're doing with the code is writing a syllogism, there are better ways to do that. But yeah, you're right.