What do you want to save?
Add Code snippet
New code examples
-
Other 2021-10-10 03:10:08
virtualbox screen size too small
follow the steps: It is recommended that you set 128 MB of video memory, as when a video mode with higher resolution is used, more video memory is needed. You can also enable 2D and 3D acceleration. open cmd: cd "c:\Program Files\oracle\virtualbox&q... Add solution -
Javascript 2021-10-09 23:47:03
loop over an array
var data = [1, 2, 3, 4, 5, 6]; // traditional for loop for(let i=0; i<=data.length; i++) { console.log(data[i]) // 1 2 3 4 5 6 } // using for...of for(let i of data) { console.log(i) // 1 2 3 4 5 6 } // using for...in for(let i in data) { con... Add solution -
Javascript 2021-10-09 18:33:03
Iterate Through an Array with a For Loop
var data = [1, 2, 3, 4, 5, 6]; // traditional for loop for(let i=0; i<=data.length; i++) { console.log(data[i]) // 1 2 3 4 5 6 } // using for...of for(let i of data) { console.log(i) // 1 2 3 4 5 6 } // using for...in for(let i in data) { con... Add solution -
Javascript 2021-10-09 11:34:04
js loop through array
var data = [1, 2, 3, 4, 5, 6]; // traditional for loop for(let i=0; i<=data.length; i++) { console.log(data[i]) // 1 2 3 4 5 6 } // using for...of for(let i of data) { console.log(i) // 1 2 3 4 5 6 } // using for...in for(let i in data) { con... Add solution -
-
C++ 2021-10-08 12:17:06
c++ map iterator
//traditional way (long) for(map<string,int>::iterator it=m.begin(); it!=m.end(); ++it) if(it->second)cout<<it->first<<" "; //easy way(short) just works with c++11 or later versions for(auto &x:m) if(x.second)cout&l... Add solution -