Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

记一次Segment fault | M_Kepler #5

Open
M-Kepler opened this issue Apr 14, 2019 · 0 comments
Open

记一次Segment fault | M_Kepler #5

M-Kepler opened this issue Apr 14, 2019 · 0 comments

Comments

@M-Kepler
Copy link
Owner

https://m-kepler.github.io/2019/04/14/%E8%AE%B0%E4%B8%80%E6%AC%A1Segment%20fault/

重现 功能描述把 test.log 文件每一行按照 / 进行切片,将一行中的所有分片存放到 string 数组中 样例 test.log 中有很多行如下字符串 1home,m_kepler,project 目的是按照 , 切割,把子串存放到 string 数组中 1234string strTmp[3];strTmp[0] = "home"strTmp[1] = &q

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant