Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F78977049
cat_dog.hh
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
Sat, Aug 24, 02:20
Size
322 B
Mime Type
text/x-c++
Expires
Mon, Aug 26, 02:20 (1 d, 22 h)
Engine
blob
Format
Raw Data
Handle
20130439
Attached To
R9360 PCSC_git
cat_dog.hh
View Options
#include <iostream>
class
Cat
{
public
:
void
scream
()
{
std
::
cout
<<
name
<<
": MIAOU
\n
"
;
}
private
:
std
::
string
name
;
};
class
Dog
{
public
:
void
scream
()
{
std
::
cout
<<
name
<<
": OUAFF
\n
"
;
}
private
:
std
::
string
name
;
};
int
cannot_write
()
{
Cat
list
[
2
];
Cat
c
;
Dog
d
;
list
[
0
]
=
c
;
list
[
1
]
=
d
;
}
Event Timeline
Log In to Comment