Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

input many numbers to int c++

vector< int >arr;
    string input;
    getline(cin, input);
    istringstream is(input);
    int num;
    while(is>>num) arr.push_back(num);
Source by discuss.codechef.com #
 
PREVIOUS NEXT
Tagged: #input #numbers #int
ADD COMMENT
Topic
Name
5+9 =