Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F120906717
struct.cpp
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Mon, Jul 7, 18:57
Size
238 B
Mime Type
text/x-c
Expires
Wed, Jul 9, 18:57 (2 d)
Engine
blob
Format
Raw Data
Handle
27266888
Attached To
R9360 PCSC_git
struct.cpp
View Options
#include <iostream>
struct NameType {
double a;
int b;
};
struct Planet {
double coords[3];
std::string name;
};
int main() {
Planet p;
p.coords[0] = 10;
std::cout << sizeof(Planet) << std::endl;
return EXIT_SUCCESS;
}
Event Timeline
Log In to Comment