language: C++11 (gcc-4.7.2)
date: 251 days 10 hours ago
link:
visibility: public
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
     #include <iostream>
    #include <string>
    
    using namespace std;
    
    struct A
    {
        int age;
        
        A(int x): age(x){};
        A() = default;
        
    };
    
    int main()
    {
        A test(10);
        cout << test.age << endl;
        return 0;
    }