Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
copy_30-Seconds-of-C++
//g++ 5.4.0 #include<iostream> #include<vector> #include<algorithm> int main() { std::vector<int> origin {1, 2, 3}; std::vector<int> destination; std::copy(origin.begin(), origin.end(), std::back_inserter(destination)); // destination is now {1, 2, 3} for (auto value : destination) { std::cout << value << " "; } }
run
|
edit
|
history
|
help
0
123
Area of a triangle using templete
kroliki
E. Bus Number
顺序表的实现——动态分配
Get all anagrams from given words
teste
Bank System
Hello World
FunTemp