Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
iota_30-Seconds-of-C++
//Microsoft (R) C/C++ Optimizing Compiler Version 19.00.23506 for x64 #include <algorithm> #include <iostream> #include <numeric> int main() { int arr[10]; //Initialising the starting value as 500 int num = 500; //Applying the function iota to each element std::iota(arr, arr + 10, num); // Printing the final output for(int i = 0; i<10; i++) std::cout<<arr[i]<<" "; return 0; }
run
|
edit
|
history
|
help
0
Full System Specifications version 2
hangman
Matrix_1
VS struct name enumerate
Number of paths in matrix
bad_cast
Zero
infix to postfix v 3.0 with improved eval()
1
C string literal