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
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
If the statement is false then it should neglect the value and should continue the loop
for (s = N;s > 0;s--){ for (s =N ; ;s--){ if (sum + S[s]> M){ break; }}
Anonymous
here s is never 0
Anonymous
also properly ident your code jesus christ
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.
Anonymous
I will try new way for it
also i suggest using malloc instead of doing int S[N]
Ajitkumar
How many of yall are students that are just trying to finish homework
I am also a student but this is not a homework.
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
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
I can't make use of standard library
You probably have some analogs in your project libraries
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?
Asdew
Currently, none, and I do not want to go beyond GNU Make.
Asdew
Can you please show your makefile?
I currently don't have one for this project.
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
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.
Anonymous
C++ experts >>> Google
I_Interface
C++ experts >>> Google
Seems like C++ experts don't use google search. 🤔🤔🤔
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
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?
Anonymous
End of allocated storage
and what about the 2nd pointer, isn't it pointing to the same location?
Artöm
and what about the 2nd pointer, isn't it pointing to the same location?
Second points to begin+size, in this case theyre same, usually they are different