Re: equality and errors
From: marvin (scary_at_movie.com)
Date: 12/12/03
- Next message: Arjen Markus: "Re: Community involvment populating tklib"
- Previous message: Jonas: "Re: How to get the mod time of a file"
- In reply to: Aric Bills: "Re: equality and errors"
- Next in thread: Donald Arseneau: "Re: equality and errors"
- Reply: Donald Arseneau: "Re: equality and errors"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Fri, 12 Dec 2003 00:06:31 -0500
thanks aric !
exactly what i needed. the code you provided is easier to follow and i will
use it.
it was this line that confused me
set fail [catch { $first < 1} range1]
in C++ if you have this code below, it will output zero to the screen when
you run it.
2 < 1; is also a valid statement in C++ and returns 0 without being assigned
to any variable.
i will use an if statement when i evaluate conditionals from now on.
thanks again,
marvin
#include <iostream>
using namespace std;
int main()
{
int a;
a = 2 < 1;
cout << a;
return 0;
}
- Next message: Arjen Markus: "Re: Community involvment populating tklib"
- Previous message: Jonas: "Re: How to get the mod time of a file"
- In reply to: Aric Bills: "Re: equality and errors"
- Next in thread: Donald Arseneau: "Re: equality and errors"
- Reply: Donald Arseneau: "Re: equality and errors"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|