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
GetFinalPathNameByHandle Behaviour
Test
Fast sine to fill array (sin/cos pair)
Kare-Küp Tablosu
C++ move/copy constructor and assignment demo
MSVC_example_GetAllocLength
lab1
hangman
Hangman
Dynamically sized array at end of struct