devilish666@lemmy.world to Programmer Humor@programming.dev · 8 个月前True Storylemmy.worldimagemessage-square33fedilinkarrow-up1134arrow-down114
arrow-up1120arrow-down1imageTrue Storylemmy.worlddevilish666@lemmy.world to Programmer Humor@programming.dev · 8 个月前message-square33fedilink
minus-squareMinekPo1 [She/Her]@lemmygrad.mllinkfedilinkarrow-up1·8 个月前reminder that .H can be used as a c++ header extension , along with .C for source files
minus-squareScoopta@programming.devlinkfedilinkarrow-up1·8 个月前Yep which IMO is ugly but I’d way prefer that over everyone using .h
minus-squareMinekPo1 [She/Her]@lemmygrad.mllinkfedilinkarrow-up1·7 个月前honestly I use .hh/.cc which is quite nice IMO . you can also use .hpp/.cpp but I don’t like it personally
minus-squareScoopta@programming.devlinkfedilinkarrow-up1·7 个月前Yeah. My original comment should have been “I wish people would use a C++ specific extension for headers.” I just picked hpp because cpp seems to be the most widely used C++ extension.
reminder that .H can be used as a c++ header extension , along with .C for source files
Yep which IMO is ugly but I’d way prefer that over everyone using .h
honestly I use .hh/.cc which is quite nice IMO . you can also use .hpp/.cpp but I don’t like it personally
Yeah. My original comment should have been “I wish people would use a C++ specific extension for headers.” I just picked hpp because cpp seems to be the most widely used C++ extension.