-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path1-1.cpp
53 lines (38 loc) · 839 Bytes
/
1-1.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
// johnpaul/john.hpp
#ifndef JOHN_HPP_INCLUDED
#define JOHN_HPP_INCLUDED
void john( ); // Prints "John, "
#endif // JOHN_HPP_INCLUDED
// johnpaul/john.cpp
#include <iostream>
#include "john.hpp"
void john( )
{
std::cout << "John, ";
}
// johnpaul/paul.hpp
#ifndef PAUL_HPP_INCLUDED
#define PAUL_HPP_INCLUDED
void paul( ); // Prints " Paul, "
#endif // PAUL_HPP_INCLUDED
// johnpaul/paul.cpp
#include <iostream>
#include "paul.hpp"
void paul( )
{
std::cout << "Paul, ";
}
// johnpaul/johnpaul.hpp
#ifndef JOHNPAUL_HPP_INCLUDED
#define JOHNPAUL_HPP_INCLUDED
void johnpaul( ); // Prints "John, Paul, "
#endif // JOHNPAUL_HPP_INCLUDED
// johnpaul/johnpaul.cpp
#include "john.hpp"
#include "paul.hpp"
#include "johnpaul.hpp"
void johnpaul( )
{
john( );
paul( );
}