Dima
i am girl btw
Anonymous
Impossible
BinaryByter
Anonymous
All fake 😁😁😁
Dima
you are just abstracted away from 'Object'
Dima
HashMap<Genders> = hardcoded to 2
Ariana
lol rule 235435 of internet: there are fake girls
rule 398385928 of unsigned long int ernet: no one reads rules
Dima
your rule is so big that it needs unsigned long
Dima
Ariana
/report
Ariana
so cool
Ariana
rule -1 of unsigned long int ernet: i probably need help
Ariana
time to upgrade to long long int
klimi
Rose wtf
klimi
Of
klimi
Oh
klimi
Ok
Anonymous
what does I.N.D.I.A stand for?
It doesn't have any full form...the name India obtained from the river Indus
Mihail
I haven't typed I.N.D.I.A its INDIA
If you type it in caps only it's an abbreviation
Mihail
So don't
Satan
So don't
Yup, India is a proper noun (the name of a country) so only the first alphabet should be capitalized!
Anonymous
how can I get number of digits present in variable
Anonymous
in c
Boet
how can I get number of digits present in variable
Assuming you mean a string (or something similar), the most straightforward way is to iterate through and check for every character whether it is a digit
Anonymous
here
Mihail
here
You can make a while that divides it by 10 and count that, not sure if that's the best way tho
Boet
here
I think what you want is the order of magnitude for that number
Boet
Have a google to figure out how to get that, I'm pretty sure there's an easy way
Box of
You can make a while that divides it by 10 and count that, not sure if that's the best way tho
Since he's multiplying two numbers it's probably easiest, if he was checking one number he could save it in string, check string's length and then, while messing with atoi, check if it's palindrome
Anonymous
No output
Rafi Faseeh
Anyone can help the first if is not work what should i do?
Rafi Faseeh
BinaryByter
no, @Box_of_the_Fox
Box of
Ye
BinaryByter
the code is flawed on such a basic level, you' have to change a lot more
Box of
Just noticed wtf is going on there
BinaryByter
xDD
Box of
Just that's some serious YGS material there
BinaryByter
YGS?
Box of
Your grammar sucks
BinaryByter
Your grammar sucks
this isn't even about grammar anymore
BinaryByter
its like
BinaryByter
"your book's main character dies on page two and then proceeds to win at quidditch"
Box of
I like the fact that for the first time he did that right and for the second time he failed completely
BinaryByter
oh yea
klimi
thanks
Thespartann
(:
klimi
youre so nice
Thespartann
First time someone tells me that lol
BinaryByter
we need one more member in this group
BinaryByter
or 9999 members less
klimi
you are my friend
klimi
aren't ya?
klimi
fuck i have tommorow test
klimi
goddammit
BinaryByter
lol grades don't matter
Thespartann
Thespartann
Thespartann
Maths
klimi
english
Carlos
Anyone can help the first if is not work what should i do?
you can try to set a flag when the comparison between the array and the string is equal to zero on at least one time
BinaryByter
like how?
bool flag = false
Carlos
you can use a bool auxiliary variable that each time strcmp is equal to zero sets to true
BinaryByter
Anyone can help the first if is not work what should i do?
#include <array> #include <iostream> #include <string> int main () { std::string name; std::array <string, 5> database{"Maxi", "Klimi", "Carlos", "lennyface", "TheSpartan }; std::cout << "please enter a name to check against our database"; std::cout >> name; for (auto i: database) { if (name == i) { std::cout << "the name was found!"; goto end; } } std::cout << "the name wasn't found"; end: }
BinaryByter
here
BinaryByter
i did it for you