字符数组转数字数组

Posted on 2012-01-10 11:11  无忧consume  阅读(183)  评论(0编辑  收藏  举报

double cur;
sscanf(words[i].c_str(), "%lf", &cur);
nums[i / 3][i % 3] = cur;

Copyright © 2024 无忧consume
Powered by .NET 9.0 on Kubernetes