...
Daniele
this
you can execute winapi programs without the need of new libraries
Daniele
or i'm not understanding something
...
if youre running on windows, yes
Daniele
Daniele
you usually build win32 applications to be run on windows
Anonymous
You can call NTDLL functions directly although it is not recommended by microcock
Anonymous
You also have undocumented stuff there
Anonymous
👀
sherzod
Hi guys, are there any predefined cute styles for Qt imagine styling?
Ajitkumar
#askforquestion
Ajitkumar
If the statement is false then it should neglect the value and should continue the loop
Ajitkumar
I am sending the coding
Ajitkumar
https://anotepad.com/notes/jkcgrrqd
Ajitkumar
Input should be 17 4 2 5 6 8
Output is 16
Ajitkumar
Please help me
Anonymous
Guys I need help
Anonymous
Please
Anonymous
I need code for Arithmetic mean A to 200
Anonymous
Help please
Anonymous
Anonymous
here s is never 0
Anonymous
also properly ident your code jesus christ
Mat
Ajitkumar
Anonymous
I have a code for the sum of squares
Surge.rs
How many of yall are students that are just trying to finish homework
Asdew
I'm not, I'm just a student (not a CS student) that enjoys programming.
Ajitkumar
Ajitkumar
Ajitkumar
I will try
Andrei
So, i am supposed to do a SparseMatrix which is not allocated at all
Let's say I have a matrix that got no dimension at all, but can hypothetically got a NxM dimension. So it has to be a matrix without being one(?) Does this make sense? So I allocate an index only if required by someone by adding a value in that position. Every index (i,j) is filled by a struct
If I want to create such thing, using templates, do you have any clue as how should I implement it? I can't use a matrix a have to use a different approach, like struct pointers (C++)
Joesph
Joesph
Then why even create it on first place
Joesph
Joesph
This is f*cked up
NXiss7
Guys, do you know speed diff between OpenSSL and Crypto++?
Considering AES256, GCM
Pavel
So, i am supposed to do a SparseMatrix which is not allocated at all
Let's say I have a matrix that got no dimension at all, but can hypothetically got a NxM dimension. So it has to be a matrix without being one(?) Does this make sense? So I allocate an index only if required by someone by adding a value in that position. Every index (i,j) is filled by a struct
If I want to create such thing, using templates, do you have any clue as how should I implement it? I can't use a matrix a have to use a different approach, like struct pointers (C++)
As a simple approach you can use a unordered_map, and use a vector as a key.
So when you need to add two dimensional point, you call it with {x, y}, three dimensional with {x,y,z} and so on.
And then depending on how it should (or shouldn't) work when you mix everything in it you can make a struct with specific hashing function for a key, add asserts and so on
Andrei
Andrei
I don't know, can I contact some there if need any help?
Asdew
I have the source code of a C library that I'd like to use in my C program. What's the proper way of doing that?
jot.rs
Asdew
Currently, none, and I do not want to go beyond GNU Make.
jot.rs
Francisco
¿?
NXiss7
¿?
Do ypu know abput performance diff between OpenSSL and Crypto++ for AES 256 GCM?
Marián
why could malloc throw segfault?
Marián
or declaring a variable?
Marián
could it be because of some empty stream / pointer that leaks memory and then any memory operation creates random segfaults?
Marián
Pa_Initialize();
auto params = new PaStreamParameters;
params->device = Pa_GetDefaultOutputDevice();
params->channelCount = 2;
params->sampleFormat = paInt32;
params->suggestedLatency = Pa_GetDeviceInfo(params->device)->defaultLowOutputLatency;
params->hostApiSpecificStreamInfo = nullptr;
SNDFILE *snd_file = nullptr;
SF_INFO *sf_info = (SF_INFO*)malloc(sizeof(sf_info));
// SF_INFO *sf_info;
// ::memset(sf_info, 0, sizeof(sf_info));
snd_file = sf_open("../res/test.wav", SFM_READ, sf_info);
PaStream *stream;
Pa_OpenStream(&stream, nullptr, params, sf_info->samplerate, paFramesPerBufferUnspecified, paClipOff, stream_callback, nullptr);
Pa_StartStream(stream);
int sub_format = sf_info->format & SF_FORMAT_SUBMASK;
printf("%d", sf_info->format);
Marián
if I add anything after this for example double a = 0.0; it throws segfault
Marián
oh it's caused because of portaudio i guess? /shrug
jot.rs
yue
sizeof(sf_info) are different from sizeof(SF_INFO)
yue
sf_info is a pointer,well SF_INFO is a type
Anonymous
Any C++ tutorials to understand system on Chip Softwares or Embedded Systems ?
Anonymous
Books will also suffice.
I_Interface
Anonymous
C++ experts >>> Google
András
Anonymous
Cpp experts know things by experience. Much more valuable than search engines showing me books that don't fit the criteria. I want to know about resources to understand MKL BLAS and other firmware softwares that use cpp and some cpp topics not covered in normal cpp books otherwise
klimi
Goku
Yes
klimi
Okay
Goku
I understand all the points
klimi
Artöm
Lol
klimi
Lol
¯\_ (ツ) _/¯
Anonymous
https://www.youtube.com/watch?v=St0MNEU5b0o
Anonymous
I was watching this and had some doubts.
Anonymous
On 4:14, the where is the last(3rd) pointer pointing to?
Anonymous
At 6:27, why does the guy says that if there would be somebody holding reference then we would have a problem, What is the problem that he is talking about?
Anonymous
Isn't v2 already a reference to the returned vector?
Artöm