Search
 
SCRIPT & CODE EXAMPLE
 

CPP

print 2d vector c++

	for(int i=0; i<v.size(); i++) 
		for(int j=0; j<v[i].size(); j++) 
  			cout<<v[i][j]<<" ";
        cout<<endl;
Comment

2d vector print

for(auto lst : vec){
  for(auto e : lst){
  	cout<<e<<" ";
  }
  cout<<endl;
}	
Comment

PREVIOUS NEXT
Code Example
Cpp :: setprecision in c++ 
Cpp :: how to print in c++ 
Cpp :: qt change window title 
Cpp :: c++ file is empty 
Cpp :: vhdl integer to std_logic_vector 
Cpp :: c++ copy file to another directory 
Cpp :: set platformio to C++17 
Cpp :: c++ count bits 
Cpp :: eosio multi index secondary index 
Cpp :: c++ custom compare in set 
Cpp :: c++ check if string contains substring 
Cpp :: should i learn c or c++ 
Cpp :: repeat character n times c++ 
Cpp :: Tech mahindra coding questions 
Cpp :: nth permutation c++ stl 
Cpp :: check file exist cpp 
Cpp :: c++ dictionary 
Cpp :: cout hex value 
Cpp :: c++ wait for user input 
Cpp :: convert whole string to uppercase c++ 
Cpp :: qt float to qstring 
Cpp :: how to convert a string to a double c++ 
Cpp :: Vector2 c++ 
Cpp :: c++ check if file exits 
Cpp :: priority queue c++ type of pairs 
Cpp :: create a dictionary cpp 
Cpp :: convert int to string c++ 
Cpp :: min vector c++ 
Cpp :: how to clear console c++ 
Cpp :: max of two elements c++ 
ADD CONTENT
Topic
Content
Source link
Name
7+7 =