Cris
Ratnesh
c++ primer plus 6th edition is it good book for beginners
Ratnesh
To learn c++
Anonymous
Talula
Talula
+
guys what is fastest way to genrate checksum of file? (crc32, md5, adler and...)
I dont want to use openssl for just generate a checksum
Talula
+
Ali
Anyway the question doesn't mention hardware related, so need to implement it in software.
+
Talula
for check a big binary file
On PC or embedded system? If it is PC, the whole process would be really fast and you can use libraries to do it, you don't need to make anything on your own.
+
JY
I am handling some time series data in one of my projects, i found jaguardb is so cool. It does automatic aggregation of different time windows and i just use them.
+
Hanz
But XOR is programming operator 😕
Hanz
Anyway, it might not be beginner friendly 😄
Hanz
Someone might explain better than me though
Cris
Hanz
Anonymous
how the fuck does googletest manage to probogate its include to all parent cmake's
Amirhossein.J
We have developed an dll windows driver which generate a tunnel for creating a bridge between a real physical com port and a virtual com port so it can role as a hub. It should bypass physical com port data to another physical com port and a tcp call to a rest api and wait for first data response.
The problem is we it just runs on windows test mode because of non exsistance signed driver. As a solution we need this driver to be signed.
We will appreciate any helps.
Thanks in advance.
Talula
Hanz
😅😅
Pavel
Any ideas on how can I optimize this?
uint64_t
transform_one_linear(uint64_t n)
{
uint64_t res = 0;
for (int i = 0; i < 64; ++i) {
res ^= ((n >> (64 - i - 1)) & 1) * l_matrix[i];
}
return res;
}
l_matrix[i] can be considered random (but it's fixed)
Pavel
It's basically scalar multiplication
OnePunchMan
Pavel
Dylan
Hello to everyone
Pavel
Pavel
Hariyana Grande
char *C ="hello" ;
string gets stored as compile time constant.
what does it mean?
Talula
/report
Sandeep
Singh
Write c++ program to create otp
z
Sandeep
void PrintArray (const std:: array<int, 5>& data)
Is there a way where you don't have to pass the size along with standard array(when standard arrays are passed as parameters)
Anunay
Anunay
Tell us if you have a query
Pankaj
Any one explain -While and do while loop
Pankaj
fluffy
hello anyone who knows how to write a c++ program that sends push notifications to your phone
S
Did any one complete two sum problem using hashmap in c
S
#define size 500000
struct pair{
int value;
int loc;
};
int hash_func(int v){
int index = (v) % size;
return index< 0? index+size: index;
}
struct pair *table(int *nums,int numsSize){
struct pair *hash=(struct pair*)calloc(sizeof(struct pair),size);
for(int k=0;k<numsSize;k++){
hash[hash_func(nums[k])].value=nums[k];
hash[hash_func(nums[k])].loc=k;
}
return hash;
}
int* twoSum(int* nums, int numsSize, int target, int* returnSize){
* returnSize=2;
int i;
int res[2];
struct pair* hash=table(nums,numsSize);
for(i=0;i<numsSize;i++){
int q=target-nums[i];
if(hash[hash_func(q)].value==q){
res[0]=i;
res[1]=hash[hash_func(q)].loc;
}
}
return res;
}
Butterfly Around Wàist
Butterfly Around Wàist
Butterfly Around Wàist
Please send more ....
S
this is my code .but i got runtime error: load of null pointer of type 'int' [__Serializer__.c]
S
any one help me to solve error
Sandeep
Did you get the answer for lambdas
Anonymous
Anonymous
Sandeep
^
No..later you posted some coded..where it didn't matter if lambda was capturing or not capturing..couldn't pass as function pointer
Anonymous
Anonymous
Anonymous
that is not relevant anymore
Anonymous
i didnt scroll all the way up to the first error XD
Anonymous
pls delete :)
Anonymous
if i have https://wandbox.org/permlink/XRd7xjJiwlh3gWU3 how can i create a specilization for void return type?
Nova
Hey guys...
Just want to know how to split and save it in like pairs of vector
Input is
abcd:1234,efghf:27265,sjggsh:28266
Now first i have to split it by" , "
Than again split it with ":" and after that have to store it in pairs of strings
Like it should be
pair <string,string> p={abcd,1234}
It fucking really easy in python as google says
But I want to know how can I do it in c++
Please help......stuck in this for hours ....already googled everything i can
Pavel
Mahdi
/report
klimi
What?
ㅤ
/get cbook
ㅤ
/get best
ㅤ
/get best-book
ㅤ
/get c++_isnt_c_with_classes
ㅤ
bruh, im getting trolled by a bot trying to learn c and cpp, nice
ㅤ
/get cppbookguide
ㅤ
/get cpp
ninja
how i can remove these warning's