Anonymous » 06 мар 2024, 09:55
Последнее сообщение Anonymous «
Anonymous »
I few years back I tested QVector and std::vector side by side, and was living with the impression the two are in the same ballpark of performance, in fact in some cases QVector was edging out.
Until yesterday, when I ran a quick compliance test...
Anonymous » 06 мар 2024, 09:27
Последнее сообщение Anonymous «
Anonymous »
I am trying to run a c++ program on a dev container(docker container). I have attached VS code to that container. The docker container is running SUSE SLES15 SP2. (image: registry.suse.com/suse/sle15:15.2) This is the program:
Anonymous » 06 мар 2024, 09:11
Последнее сообщение Anonymous «
Anonymous »
I am trying to build a simple C++ program with xlnt with GNU compiler and Visual Studio Code IDE. I have had some challenges with getting the build environment to include the xlnt libraries, and the problem may be related to that. The program is...
Anonymous » 06 мар 2024, 09:09
Последнее сообщение Anonymous «
Anonymous »
I am wondering if anyone could help me understand why I am getting an int here and not a double? My guess is it probably due to the fact the decimal part is just .00 but how can I make sure it writes it anyway. Thanks!
Anonymous » 06 мар 2024, 09:09
Последнее сообщение Anonymous «
Anonymous »
For the SSL communication with the certificate for the below C/C++ code link how to support the CA certificate (public key certificate which is exported from the site info)
WS_SSL_TRANSPORT_SECURITY_BINDING sslBinding = {}; // zero out the...
Anonymous » 06 мар 2024, 08:36
Последнее сообщение Anonymous «
Anonymous »
After finding the reason for why the following code works the way it does in C#, I tried the near identical code in C++ and got a different result, even though their stated orders of operations and their direction of evaluation for the matching...
Anonymous » 06 мар 2024, 08:05
Последнее сообщение Anonymous «
Anonymous »
I was doing an exercise in my textbook that asked us to output a vector's elements at even indices separated by asterisks. Then on a newline, do the same thing with the odd indices. So, if the vector contained 10 20 30 40 50 60, the output should...
Anonymous » 06 мар 2024, 08:02
Последнее сообщение Anonymous «
Anonymous »
Consider the following function
void removeOdd(list& li) { for(list::iterator it=li.begin(); it!=li.end(); it++) { if((*it)%2) it = li.erase(it); } } From my understanding of lists, where the return value is an iterator pointing to the element...
Anonymous » 06 мар 2024, 07:30
Последнее сообщение Anonymous «
Anonymous »
I am developing a program without the C runtime library (CRT) with C++ as a fun little challenge. As part of this challenge I ended up writing my own atexit() function which is called whenever main returns.
Anonymous » 06 мар 2024, 07:16
Последнее сообщение Anonymous «
Anonymous »
I have seen a lot of similar posts, but tried every trick in the book and am still struggling. Everything was working fine, but after installing/removing wireshark with some components/disselectors it all got messed up. I don't remember exactly...
Anonymous » 06 мар 2024, 07:04
Последнее сообщение Anonymous «
Anonymous »
I have this code, but I need help to use OpenMP #pragmas to increase its speed. I want to parallelize the for loops over variables i and j. The values of n and m can be much larger, too. For example, n = 1000, m = 500.
Anonymous » 06 мар 2024, 06:34
Последнее сообщение Anonymous «
Anonymous »
(Note: This question is about not having to specify the number of elements and still allow nested types to be directly initialized.)
This question discusses the uses left for a C array like int arr ;. On his answer, @James Kanze shows one of the...
Anonymous » 06 мар 2024, 06:00
Последнее сообщение Anonymous «
Anonymous »
I have written a code to encrypt according to AES 256 algorithm and it works to give me an output file but I realised that it hangs after running the EncryptDecryptString function and does not perform anything else after that. Why is this so? How...
Вы можете начинать темы Вы можете отвечать на сообщения Вы не можете редактировать свои сообщения Вы не можете удалять свои сообщения Вы можете добавлять вложения