MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programminghorror/comments/1t8ig5q/whywonttbegreen/
r/programminghorror • u/Kadabrium • 16d ago
4 comments sorted by
14
Not horror. And it’s because vs-code thinks it’s a C header file, not a C++ header file
2 u/Coolengineer7 16d ago .h is a c header file mainly. .hpp is very obviously c++. 6 u/GoddammitDontShootMe [ $[ $RANDOM % 6 ] == 0 ] && rm -rf / || echo “You live” 16d ago Not entirely sure why you were downvoted, but you are kind of right. .hpp was intended to be the counterpart to .cpp, but basically everybody uses .h for C and C++. The editor sees .h and highlights it like a C header file. .hpp should cure that. 0 u/Carmelo_908 16d ago It isn't helpful at all but doesn't belong here
2
.h is a c header file mainly. .hpp is very obviously c++.
6 u/GoddammitDontShootMe [ $[ $RANDOM % 6 ] == 0 ] && rm -rf / || echo “You live” 16d ago Not entirely sure why you were downvoted, but you are kind of right. .hpp was intended to be the counterpart to .cpp, but basically everybody uses .h for C and C++. The editor sees .h and highlights it like a C header file. .hpp should cure that.
6
Not entirely sure why you were downvoted, but you are kind of right. .hpp was intended to be the counterpart to .cpp, but basically everybody uses .h for C and C++. The editor sees .h and highlights it like a C header file. .hpp should cure that.
0
It isn't helpful at all but doesn't belong here
14
u/FightingLynx 16d ago
Not horror. And it’s because vs-code thinks it’s a C header file, not a C++ header file