-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathheader_interpOne.h
93 lines (75 loc) · 1.06 KB
/
header_interpOne.h
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
#include <string>
#include <iostream>
//using namespace std;
int t = 9;
int p = 10;
template<typename T>
void f(T s)
{
std::cout << s << '\n';
}
int function(){
int x = 8;
int y = 9;
std::cout << "function() " << std::endl;
return x+y;
}
template <class a_type>
struct templ_class {
a_type a;
};
template <class A_Type> class calc
{
public:
A_Type multiply(A_Type x, A_Type y);
A_Type add(A_Type x, A_Type y);
};
template <class A_Type> A_Type calc<A_Type>::multiply(A_Type x,A_Type y)
{
return x*y;
}
template <class A_Type> A_Type calc<A_Type>::add(A_Type x, A_Type y)
{
return x+y;
}
struct SA{
private:
int sa;
};
class A{
int private_member;
public:
int a;
static int bb;
int c;
};
class AA : public A{
};
namespace B{
int t;
}
namespace C{
int t;
class D{
public:
int a;
};
int u;
namespace E{
int nnC;
int b;
}
}
namespace F{
int b;
int bb;
}
extern "C"{
void foo(){
std::cout << "Interp1::foo " << std::endl;
static int i = 0;
std::cout << ++i << std::endl;
//A a;
//a.a = 9;
}
}