C++ Quiz
A rather hardcore C++ quiz from PVS Studio developers: q.viva64.com
A rather hardcore C++ quiz from PVS Studio developers: q.viva64.com
Benedict Cumberbatch is literally everywhere :)
Just thinking aloud
USS Enterprise is a warp ship. TARDIS is a worp-worp ship
Traditionally, Merry Christmas!
A nice Star Trek Online easter egg for Russian speakers: Tholian Tarantula-class Dreadnought named Zlo’Pauk
The name Zlo’Pauk is an in-game joke, meaning “evil spider” in Slavic languages and Tholians are associated with arachinds.
Just not to lose this video again :)
include <string>
std::string operator*(std::string& s, unsigned int n)
{
std::string cml;
cml.reserve(s.size() * n);
for (decltype(n) i = 0; i < n; i++) {
cml += s;
}
return cml;
}
int main()
{
std::string s = "test";
std::string sss = s*3;
std::cout << sss << std::endl; // testtesttest
}