Oye don't diz the Pascal! Bloody millennialsSetting the first character to zero disables the string? What did they write the software with, Pascal??!!
Gen X thank you very much. And I learned Pascal in college on an original 128K Apple Macintosh!Oye don't diz the Pascal! Bloody millennials
Setting the first character to zero disables the string? What did they write the software with, Pascal??!!
Oye don't diz the Pascal! Bloody millennials
To kind, to kind , I use to teach Cobal, in fairness I was the same age as some of the studentsGen X thank you very much. And I learned Pascal in college on an original 128K Apple Macintosh!
Gen X thank you very much. And I learned Pascal in college on an original 128K Apple Macintosh!
OK, but pascal doesn't null terminate its strings...at least not the original pascal. the strings are indexed [1] to [255] and location [0] is actually the length of the string, so no termination needed. Maybe later versions of Pascal do something different, but this was Pascal as of 1983.
C and C++ do null terminate their strings, writing an ascii zero in the first position would give you an empty string.
Yes that was the joke. When they set the first byte, the length byte, to zero, the string has zero length so it is ignored.
Oh THAT first byte. OK, gotcha!!! (I was thinking of the first byte of the string proper, i.e., string[1].)
(Amusing, though how it ends up working the same way for Pascal and C for two totally different reasons!)
That is pretty funny. My mind immediately went to the Pascal length byte, but you’re right, putting the C null terminator there would have the same effect.
They probably actually wrote it in C++. To delete the strings, they called std::string::clear(), and their compiler implemented it that way.
Cheers!
Well that might be true for Canon cameras, but imagine someone found out you once had an affair with a Nikon camera, that could thoroughly taint your reputation.I don't see the privacy issue here. If the camera is sold 2nd hand or stolen, and someone finds out the [previous] owner's name. So? People aren't secretive about their camera model.
When I was in between my last film SLR (EOS 100) and my first DSLR (EOS 20D), I had a brief fling with an Olympus C-5050. She was a hot little number with some great specs in those days (wink, wink)! And hoo-wee what a lens! But it didn't last long. She didn't have the fastest autofocus in the camera bag, if you know what I mean.Well that might be true for Canon cameras, but imagine someone found out you once had an affair with a Nikon camera, that could thoroughly taint your reputation.
Of course those who buy lottery tickets will fight you.You are right in that 255 successive blank spaces can not categorically be declared nonrandom but at the same time can not sanely be attributed to chance.
Find me one who'll pick "1-1-1-1-1-1+1" and you have a pointOf course those who buy lottery tickets will fight you.