Answers for "how to cast cGate to int omnet++"

C++
1

how to cast int c++

int(var)
Posted by: Guest on October-28-2020
0

how to convert from string to int in c++

#include <iostream>
#include <sstream>

using namespace std;

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

    stringstream degree(s);

    int x = 0;
    degree >> x;

    cout << "Value of x: " << x;
}
Posted by: Guest on November-20-2020

Browse Popular Code Answers by Language