HACKER
TALK
Home
Channels
beta
Bookmarks
Messages
Notifications
Sign In
Comment
C++类的内存占用大小问题
include<iostream using namespace std; class Person { public: double mA;//double占用8字节
Whisper
·
2 years ago
啥意思?就是int的4字节为了和double的8字节对其,int也变成8字节了?
Reply
Report
Replies
1
#!/bin/zsh
·
2 years ago
int还是4,空的就空了,但struct大小需要算上
Reply
Report
Whisper
Joined 2 years ago
Follow
Message