forked from chronolaw/cpp_study
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcodestyle.cpp
More file actions
43 lines (33 loc) · 740 Bytes
/
codestyle.cpp
File metadata and controls
43 lines (33 loc) · 740 Bytes
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
// Copyright (c) 2020 by Chrono
//
// g++ codestyle.cpp -std=c++11 -o a.out;./a.out
// g++ codestyle.cpp -std=c++14 -o a.out;./a.out
//
#include <iostream>
#include <string>
using std::string;
#define MAX_PATH_LEN 256
int g_sys_flag;
namespace linux_sys {
void get_rlimit_core();
}
class FilePath final
{
public:
void set_path(const string& str);
private:
string m_path;
int m_level;
};
// author : chrono
// date : 2020-xx-xx
// purpose : get inner counter value of generic T
// notice : T must have xxx member
// notice : return value maybe -1, means xxx, you should xxx
template<typename T>
int get_value(const T& v);
int main()
{
using namespace std;
cout << "show your code style." << endl;
}