-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfunc.h
More file actions
36 lines (34 loc) · 739 Bytes
/
Copy pathfunc.h
File metadata and controls
36 lines (34 loc) · 739 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
//
// Created by zfq on 2021/3/4.
//
#ifndef UNTITLED_FUNC_H
#define UNTITLED_FUNC_H
#include <string>
#include <vector>
#include <vector>
#include <tuple>
#include <map>
#include <fstream>
#include <sstream>
using namespace std;
class func{
public:
std::string label;
std::vector<std::string> content;
int size;
int address;
func(){
label="";
content=std::vector<std::string>();
size=0;
address=0;
}
void clear();
bool is_empty();
};
vector<func> process_text(ifstream &infile);
vector<func> write_func(ifstream & infile);
tuple<func,string> write(func f,ifstream &infile);
string modify(string tar);
map<string,int> addalloc(vector<func>& func);
#endif //UNTITLED_FUNC_H