امروزدخترم رابردم دندانپزشکی .یکی ازهمکاران قدیمی به اسم خانم شریفی رادیدم خوشحال شدم ،راستش برای من فرقی نمی کنه که خاطره خوب ازهمکارام داشته باشم یانه وقتی بعدازمدتهااونهارامی بینم خوشحال میشم،بعدرف...
ادامه مطلبامروزدخترم رابردم دندانپزشکی .یکی ازهمکاران قدیمی به اسم خانم شریفی رادیدم خوشحال شدم ،راستش برای من فرقی نمی کنه که خاطره خوب ازهمکارام داشته باشم یانه وقتی بعدازمدتهااونهارامی بینم خوشحال میشم،بعدرف...
ادامه مطلبVote count: 0 I need to check if two given sequences are equal, but if I find a mismatched element I need to check in a 3rd sequence (same size of the other two) if that can be ignored. I know that I can write a simple algorithm to solve that, but I would like to know if there is any C++-like style to solving this, using a std algorithm. Example: A = [1, 2, 3, 4, 5, 6] B = [1, 2, 3, A, 5, 6] M = [true, true, true, false, true, true] N = [true, true, true, true, true, true] bool equal1 = the_equal(begin_A, end_A, begin_B, begin_M); // Should retu true, even if '4' is different from 'A' since in the same position of the found mismatch, in the M sequence, we have a false that indicates that pos...
ادامه مطلبVote count: -1 Let's say I have a string, could be '2016-01-01' or with a time '2016-01-01 10:23:56', how can I identify if I'm receiving a date or a datetime ? asked 8 mins agocarlosm Let's block ads!...
ادامه مطلبVote count: -2 I have a int for example: 151515 1 1111111 4848484 111 888 I need to test/check if the number contains only 1s, valid examples:111111111111111111 Invalid examples:88888888888888555547477889Any suggestion?Probably any regex? or there is a fast solution without regex and keep the value as an int without parsing it to String. asked 1 min agoMiguel Reyes 1 Answer Vote count: 0 Convert int to string first. Then try this regex: "^[1]*$" answered 13 secs agoThisaru Guruge This entry passed through the Full-Text RSS service - if this is your content and you're reading it on someone else's site, please read the FAQ at fivefilters.org/content-only/faq.php#publishers....
ادامه مطلب