Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F85750654
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
Tue, Oct 1, 21:11
Size
238 B
Mime Type
text/x-c
Expires
Thu, Oct 3, 21:11 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
21261531
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