添加注释
This commit is contained in:
parent
e2fe2e07bc
commit
d79408ee5b
@ -39,6 +39,7 @@ std::ostream &operator<<(std::ostream &os, const baseDMA &rs) {
|
||||
}
|
||||
|
||||
lacksDMA::lacksDMA(const char *c, const char *l, int r) : baseDMA(l, r) {
|
||||
//strncpy用于字符串复制
|
||||
std::strncpy(color, c, 39);
|
||||
color[39] = '\0';
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user