|
thank you kindly for the straight dope . re/ declarations as best as i recall the superb text by Harbison & Steele which explains such are to be performed merely by following the rules of precedence . the Kernighan Ritchie text i found confusing on this subject even they seemed confused . i compiled the code below and displayed the types for the aforementioned int a[10] . i present as a minor curiosity . they seem logical to me . may i say what i find weird/confusing/odd/uncertain/strange is utilizing const and * . thankfully i rarely utilize pointers . -Best
#include "pch.h"
using namespace std;
const char narrow_space = ' ';
void foo(int a[10])
{
cout <<__LINE__ <<narrow_space << typeid(decltype(a)).name() <<endl;
}
int main()
{
int a[10];
cout << __LINE__<<narrow_space<<typeid(decltype(a)).name() <<endl;
foo(a);
const int* p;
int const* p_;
cout << typeid(p).name() << endl;
cout << typeid(p_).name() << endl;
return 0;
} output :
13 int [10]
7 int * __ptr64
int const * __ptr64
int const * __ptr64
|
|
|
|
|
C because I know pretty much what is happening under the hood and it doesn't change much. Second point is important for older folk who just want to do their job and not have to learn new syntax with every project.
|
|
|
|
|
|
The user should be able to select the colors.
|
|
|
|
|
Artisan crafted ruler. (7)
|
|
|
|
|
Tsarina ?
In a closed society where everybody's guilty, the only crime is getting caught. In a world of thieves, the only final sin is stupidity. - Hunter S Thompson - RIP
|
|
|
|
|
Yeah - pretty easy one to end the week. You are up Monday!
Solution
Definition: Ruler
Artisan [crafted (anagramed)]
TSARINA
|
|
|
|
|
That's why I try and avoid using anagrams
In a closed society where everybody's guilty, the only crime is getting caught. In a world of thieves, the only final sin is stupidity. - Hunter S Thompson - RIP
|
|
|
|
|
Preparing to move my home office to another room after 20+ years, so you can probably imagine...
Found a couple of gems:
* The first USB stick / thumb drive I ever bought. I remember when and where by association with another significant event (daughter's wedding). March 2005, a whopping 256MB for $60. Still works too!
* A pocket USB hard disk I came by around that era. Seagate ST625211USB, if anyone wants to look it up. About 7cm dia, 1.5cm thick. 2.5 GB of real spinning rust. Again, still works!
Haven't yet unearthed my old tower, Pentium III, iirc. Shipped with Win ME, upgraded to XP as soon as it was available. Must be 22 or 23 years old. Hmmm, should I fire it up for old times sake?
Software rusts. Simon Stephenson, ca 1994. So does this signature. me, 2012
|
|
|
|
|
If I were you, I'd move only the stuff that is actually in use to the new room, and seal the old room for future archaeologists. You never know what you'll find there, tunnels to the dungeon dimensions included!
Freedom is the freedom to say that two plus two make four. If that is granted, all else follows.
-- 6079 Smith W.
|
|
|
|
|
Yep. Treat it like a time capsule.
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
Good thought, but the room is to become a bathroom. Herself now requires a walk-in shower, not one over the bathtub.
However, the next room may experience such a fate in a few more years.
About half of what I'm moving out is going to recycling or the charity shop.
Software rusts. Simon Stephenson, ca 1994. So does this signature. me, 2012
|
|
|
|
|
Perhaps you'll find more archeological software gems in the contents of that USB stick and USB hard disk, in case you've backed-up code there. As in - 'Did I write that code'? Some of that code would be worth posting in the Weird and Wonderful page.
|
|
|
|
|
*shudder*
I did find some stuff from a project I was hired to urgently take over maintenance from a guy who had just been committed to a mental hospital.
It'll probably give me nightmares again.
Software rusts. Simon Stephenson, ca 1994. So does this signature. me, 2012
|
|
|
|
|
I've heard it said that you should write your code as if the person who is going to maintain it is a psycho killer, but this seems to be the reverse!
The difficult we do right away...
...the impossible takes slightly longer.
|
|
|
|
|
Those are all good, but did you find your missing 10mm socket from your socket wrench set?
|
|
|
|
|
Are attending any conferences this year?
|
|
|
|
|
Nope.
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
I was going to go to GTC but it was virtual only again this year. Maybe next year it will be in-person again.
"They have a consciousness, they have a life, they have a soul! Damn you! Let the rabbits wear glasses! Save our brothers! Can I get an amen?"
|
|
|
|
|
I already was in 2 and a couple more coming.
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
Rating helpful answers is nice, but saying thanks can be even nicer.
|
|
|
|
|
Never have.
Been to a few Microsoft roll-out events in the past though.
|
|
|
|
|
Went to a one-day cyber security conference yesterday. The keynote was by the the director of the regional CISA office and the final session was the director of the regional Secret Service office's cybercrimes division.
|
|
|
|
|
#Worldle #482 3/6 (100%)
🟩⬜⬜⬜⬜⬅️
🟩🟩🟩🟩🟨↘️
🟩🟩🟩🟩🟩🎉
https://worldle.teuteuf.fr
hard
"A little time, a little trouble, your better day"
Badfinger
|
|
|
|
|
Wordle 699 5/6
⬛⬛⬛⬛🟨
⬛⬛⬛🟩⬛
⬛⬛🟩🟩⬛
🟨🟩🟩🟩⬛
🟩🟩🟩🟩🟩
|
|
|
|
|
Wordle 699 5/6
⬜⬜🟩🟩⬜
⬜⬜🟩🟩🟨
⬜🟩🟩🟩⬜
⬜🟩🟩🟩🟩
🟩🟩🟩🟩🟩
|
|
|
|