python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k questions)
How can I check if multiple words appear in a sentence?
I seem unable to find the solution as to why this doesn't work
here's the line of code:
if ("yeah" or "yes") in message.content:
await message.channel.send("yep")
else:...
Shane Miller
Votes: 0
Answers: 1
std::any bad cast whenever a function inside a header is implemented in a cpp file returns it
This is my main.cpp
#include <iostream>
#include <unordered_map>
#include <string>
#include "myclass.h"
int main(int argc, const char * argv[]) {
any a = myclass::ret...
Patrik Nusszer
Votes: 0
Answers: 0
How to sort a vector<any>?
Is it possible to sort vector<any> by using std::sort or somehow else?
I was trying to do smth like this
vector<any> va{ 55ll, 'a', -1};
sort(va.begin(), va.end(), [](const any...
ТарасПрогер
Votes: 0
Answers: 1
Difference between any/interface{} as constraint vs. type of argument?
As generics have been released in Go 1.18 pretty recently, I've started learning them. I generally get the concept, because I have some Java experience from the past. But I don't get some implementati...
Dmytro Titov
Votes: 0
Answers: 3