Click here to Skip to main content
15,900,675 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: What do you love about the languages you use? Pin
jschell23-May-23 5:48
jschell23-May-23 5:48 
GeneralRe: What do you love about the languages you use? Pin
honey the codewitch23-May-23 2:55
mvahoney the codewitch23-May-23 2:55 
GeneralRe: What do you love about the languages you use? Pin
Wizard of Sleeves23-May-23 3:16
Wizard of Sleeves23-May-23 3:16 
GeneralRe: What do you love about the languages you use? Pin
sasadler23-May-23 7:25
sasadler23-May-23 7:25 
GeneralRe: What do you love about the languages you use? Pin
SeattleC++23-May-23 8:32
SeattleC++23-May-23 8:32 
GeneralRe: What do you love about the languages you use? Pin
BernardIE531723-May-23 13:17
BernardIE531723-May-23 13:17 
GeneralRe: What do you love about the languages you use? Pin
SeattleC++23-May-23 14:17
SeattleC++23-May-23 14:17 
GeneralRe: What do you love about the languages you use? Pin
BernardIE531723-May-23 15:17
BernardIE531723-May-23 15:17 
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
GeneralRe: What do you love about the languages you use? Pin
Felix Collins23-May-23 11:37
Felix Collins23-May-23 11:37 
GeneralIt's funny cuz it's true Pin
honey the codewitch19-May-23 5:00
mvahoney the codewitch19-May-23 5:00 
GeneralRe: It's funny cuz it's true Pin
PIEBALDconsult19-May-23 10:26
mvePIEBALDconsult19-May-23 10:26 
GeneralWSO CCC OTD 2023-05-19 Pin
FreedMalloc18-May-23 22:03
FreedMalloc18-May-23 22:03 
GeneralRe: WSO CCC OTD 2023-05-19 Pin
pkfox18-May-23 22:06
professionalpkfox18-May-23 22:06 
GeneralRe: WSO CCC OTD 2023-05-19 - Winner Pin
FreedMalloc18-May-23 22:13
FreedMalloc18-May-23 22:13 
GeneralRe: WSO CCC OTD 2023-05-19 - Winner Pin
pkfox18-May-23 22:28
professionalpkfox18-May-23 22:28 
GeneralIndoor archaeology Pin
Peter_in_278018-May-23 20:49
professionalPeter_in_278018-May-23 20:49 
JokeRe: Indoor archaeology Pin
Daniel Pfeffer18-May-23 21:30
professionalDaniel Pfeffer18-May-23 21:30 
GeneralRe: Indoor archaeology Pin
OriginalGriff18-May-23 21:35
mveOriginalGriff18-May-23 21:35 
GeneralRe: Indoor archaeology Pin
Peter_in_278018-May-23 22:13
professionalPeter_in_278018-May-23 22:13 
GeneralRe: Indoor archaeology Pin
Amarnath S18-May-23 23:09
professionalAmarnath S18-May-23 23:09 
GeneralRe: Indoor archaeology Pin
Peter_in_278019-May-23 0:29
professionalPeter_in_278019-May-23 0:29 
GeneralRe: Indoor archaeology Pin
Richard Andrew x6419-May-23 7:41
professionalRichard Andrew x6419-May-23 7:41 
GeneralRe: Indoor archaeology Pin
obermd19-May-23 3:45
obermd19-May-23 3:45 
GeneralConferences Pin
Katarinaaaaaaaaaaa18-May-23 18:23
Katarinaaaaaaaaaaa18-May-23 18:23 
GeneralRe: Conferences Pin
OriginalGriff18-May-23 19:02
mveOriginalGriff18-May-23 19:02 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Straw Poll

Were you affected by the geomagnetic storms this past weekend?
Communication disruptions, electrified pipes, random unexplained blue-screens in Windows - the list of effects is terrifying.
  Results   494 votes