📜  c++ string to integer without stoi - C++ Code Example

📅  最后修改于: 2022-03-11 14:44:58.640000             🧑  作者: Mango

代码示例1
#include 
#include 

using namespace std;

int main() 
{
    string s = "999";

    stringstream degree(s);

    int x = 0;
    degree >> x;

    cout << "Value of x: " << x;
}