menu

Recent questions tagged cpp

1 vote
2 answers
What is this function? What is this C++ function? What is the name of the algorithm? void SortArr(int arr, int n) { for (int startIndex = 0; startIndex < n - 1; ++startIndex) { ...
by NQUARE
asked Sep 18, 2021
1 vote
1 answer
How to make a get request in c++? void addinfo(const char server, const char nick, const std::string date){ char iUrlChar4096; wchar_t iUrl = new wchar_t4096; IStream pStream = NULL; sprintf_s(iU ...
by sandersik
asked Sep 18, 2021
1 vote
1 answer
What is the error in my algorithm for sorting the array? There is an array, dynamic, set randomly using the function rand in the range 0;2, I need to sort it so that it began with 1, then went zeros, and at the end of the tw ...
by mpvcluuuuub
asked Sep 18, 2021
1 vote
1 answer
1 vote
1 answer
image
How do I get a response from the server and write it to a variable? Good afternoon. I'm not good at C++, When I send a GET request to the server, the text appears there. It needs to be written to a variable string, but it is not clear t ...
by iamdivine
asked Sep 18, 2021
1 vote
1 answer
С++. Write a function that returns the number of elements of one array in another. How to write using binary search? Good afternoon! You need to write a binary search function that should return the number of elements of one array in another. The first array must be sorted. For examp ...
by ailee_kim97
asked Sep 18, 2021
1 vote
1 answer
How do I play audio from memory in MacOS? There is a task, you need to make a C++ equalizer with a graphical interface. I will use Qt to create the GUI. I have a buffer (array) with signals from a wave file, I n ...
by RadionR
asked Sep 16, 2021
1 vote
1 answer
But in IE 11 But in IE 11 #include <gtkmm.h>#include <iostream>#include "./win.cpp"int main (int argc, char argv){ auto app = Gtk::Application::create(argc, argv, "or ...
by jenya92
asked Sep 16, 2021
2 votes
2 answers
But in IE 11 But in IE 11 But in IE 11 But in IE 11 Java - Netty, Vertx; But in IE 11 ...
1 vote
2 answers
Why does the constructor need to initialize outside the constructor body? there is part of the code class stack {public: explicit stack (int size = 1000) : max_len (size) { // тело конструктора } private: int max_len;}; The ques ...
by Shemapp
asked Sep 15, 2021
1 vote
1 answer
How do I brute-force a char array through for? I need to compare every letter in the array #include <iostream>using namespace std;int countAccurance(char s1, char s2, char string1, char string2) { int size1 = s ...
by Radia
asked Apr 4, 2021
1 vote
1 answer
Is there any way to get around the 0 output? The task is to write a program exactly through a function, but when you return a value along with a number, it outputs 0 because of return. Is there any way to fix this? ...
by myspacebarisbroken
asked Apr 4, 2021
1 vote
2 answers
How to determine the number of repeating elements in an array? I need to find the number of repeated elements in an array. The only thing that comes to my mind is a search by condition... ...
by Radia
asked Apr 4, 2021
1 vote
1 answer
Why does it print 0? #include <iostream>#include "header.h"using namespace std;int main(){ setlocale(LC_ALL, "russian"); int digit = 0; cout << NumNewline(digit); return 0;}int N ...
by myspacebarisbroken
asked Apr 4, 2021
1 vote
1 answer
How do you make an array if you don't know its size with C++? The task is to calculate all values of the function μs from n to n2, and then assemble it all into an array and find out which of the elements is maximal. So, here is th ...
by ruprup
asked Apr 3, 2021
1 vote
1 answer
How to fix the string coding algorithm? It seems to be a simple problem, but I can't think of a solution for a long time. Prerequisite: Each character is encoded by its designation and number of repetitions. ...
by olkhovich
asked Apr 3, 2021
1 vote
2 answers
HOW do I install OenBLAS (lapack cblas blas) ubuntu 20.04 so that everything is linked? I'm trying to install run the test program in QT and I get the message that it does not see lapack.so3. libcblas.so.3 /usr/bin/ld: CMakeFiles/dlibCu.dir/main.cpp.o: unde ...
by mihuzz
asked Apr 3, 2021
1 vote
2 answers
image
How to solve a dynamic programming problem? Please help me solve the problem. I have the code, but I don't understand what the error is. WA10 Task: Code:#include <algorithm>#include <iostream>#include ...
by Nizamovoff
asked Apr 3, 2021
1 vote
1 answer
How do I check a message BEFORE the server in Outlook? Given: corporate mail network, messaging via Autlux. Occasionally, users manage to send each other personal data, which excites the Security Service unnecessarily. At pr ...
by sunsexsurf
asked Apr 3, 2021