Horje
Get input for array of unknown length/size in c++ Code Example
Get input for array of unknown length/size in c++
#include<iostream>
#include<sstream>

using namespace std;

int main()
{
	string s;
    getline(cin, s);
    
    int data
    istringstream iss(s);
    while(iss>>data)
    	cout<<data<<" ";
	return 0;
}




Cpp

Related
command loop ctrl D c++ Code Example command loop ctrl D c++ Code Example
what is xor_eq c++ Code Example what is xor_eq c++ Code Example
Check whether the jth object is in the subset Code Example Check whether the jth object is in the subset Code Example
use declaration to define a variable Code Example use declaration to define a variable Code Example
c++ caps lock key Code Example c++ caps lock key Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
9