Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
34534
#include <iostream> #include <vector> struct alma { alma(int x) : x(x) {} bool operator==(const alma& rhs) const noexcept { return x == rhs.x; } int x; }; int main() { std::vector<alma> x(1, alma{0}); // the way you shoudl initilaize this std::vector<alma> y = std::vector<alma>{ alma{0} }; // the way you did std::cout << (x == y); }
run
|
edit
|
history
|
help
0
Throttle Example in C++ (80 requests every 2 seconds)
Throttle Example (Send two requests every two seconds)
Division by zero exception example
selection sort
MY FIRST OBJECT ORIENTED PROGRAM
mpi_distributed_sort
Balanced Insert Heap Example
marquee text in C++
Делим на Ноль
Segment Tree Impl