panteravb.com
C++Quick sort implementation
I'm trying to implement a quick sort algorithm, but something goes wrong. It seems that I write directly from the book (Korme ... ion returns a pointer to the reference element. Then the recursive QuickSort function is called, which should sort the array.
Generating a POST request with php curl in JSON format
Trying to get a token for the digiseller api
https://my.digiseller.com/inside/api_general.asp#token
I'm trying to form a req ...
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$server_output = curl_exec($ch);
echo $server_output;
curl_close ($ch);
Converting strings to numbers in bash-e
countlines=0
cat file.txt | while read line
do
countlines=$countlines+1
echo $line
done
count=0
number1=0
number2= ... used in the for loop (the value of the number of iterations), how do I make number2 in the for loop be perceived as a number?
php, soap, SOAP-ERROR: Parsing WSDL
I have this code
try{
$SoapClientOCR = new SoapClient (
"http://www.ocrwebservice.com/services/OCRWebService.asmx?WSD ... ork
In php ini, I have included
extension=php_openssl.dll
extension=php_curl.dll
extension=php_xmlrpc.dll
All the same error
What is heap fragmentation?
Please share your experience on the topic.
What's it? How to identify it? How to deal with it? Maybe there is something important that you need to pay attention to?
Visual Studio 2012 Encoding
I'm building a project that contains an error. Instead of the error description, it appears:
1>MSVCRTD.lib(crtexe.obj) : e ... ЁрчЁх°хээ√ї тэх°эшї ¤ыхьхэЄют: 1
What can it be, how can I configure it (so that the encoding is normal English or Russian)?
The Josephus problem using a cyclic list
Linked lists in C++ -
there is an example here, but it is a little unclear.
struct node
{
int item;
node *next;
node(int x, node *t)
{
item = x;
next = t;
}
};
Warning C26451 | Arithmetic overflow
DWORD DecimalBaseAddr = GetModuleBase (gameName, pID);
cout << "The Base Address is: " << DecimalBaseAddr << ... I looked at GetLastError () - outputs error 12b, that is, ReadProcessMemory() is not fully executed, what could be the error?
Reading Cyrillic from a C file#
You need to read the file in which there are Cyrillic characters, when output to the screen, all clerical characters are disp ... mFile}");
}
}
Is there a way to correctly return the Cyrillic alphabet after reading it in the console?
Copying powershell files
You need to copy the database backups from the Windows machine. The machine is not in the domain, and you need to copy it to ... nly on the New-PSDrive cmdlet. Perform the operation again without specifying credentials
I have never written on powershell
Error installing opencv
You need to install opencv on jupyter
On my interpreter via pip, I calmly did it.
But there are problems with jupyter.
conda ... hours searching for information and I start cursing the one the fact that I accidentally came across this article
here it is
How to pass a C++class (structure) template to a function template
There is a structure template
template<typename T>
struct spec
{
T* values;
int size = 0;
};
You need to make ... ze] = val;
st->size = st->size + 1;
}
But the error is отсутствует список аргументов для параметр шаблона template
How do I check the payment status of Yandex. Checkout?
Site on modx revo. The site has a payment form, when the form is submitted, it is redirected to the php file of the checkou ... api to regate the user programmatically, since I save the data entered by them in the fields in the payment form in cookies.
Error LNK2005: already defined in.obj
Please tell me how to overcome the problem?
error LNK2005: already defined in .obj
I can't say that I haven't tried both # ... compiled into object files normally, but the linking does not take place.
Help please.
I don't know what to think of even ...
Error updating the Android SDK 29
In Google Play, when downloading the apk file, it writes:
Change the Api target level 28 to 29
I go to Unity -> in playe ... Unity\Hub\Editor\2020.1.2f1\Editor\Data\PlaybackEngines\AndroidPlayer\SDK\tools\bin>
Who faced such a problem-please help
Calculate the sum of the matrix elements
You need to calculate the sum of the elements of each row of the matrix v (4,5) or the number
of positive elements of the col ... lt; endl;
}
cout << endl;
for (int i = 0; i < N; i++)
delete [] A[i];
delete [] A;
}
The editing of the C binary file is looped
You must replace every third number in the binary file with the same number with the opposite sign. The numbers are represent ... double), 1, input_file);
}
}
fclose (input_file);
free (filename);
system ("pause");
return 0;
}
Debugging JS in react applications that use REST
Dear sirs,
there is a question related to debugging js when using react.
The story was arranged as follows:
First, I develo ... xt of the error in the form of an image:
If you can see something in it, what I missed - please write.
Thank you in advance!
The letter I when read in C
The problem is, I read a line from the file with this code
setlocale(LC_CTYPE,"");
char path[]="1.txt";
FILE* fp = fopen(path ... = '\0';
} else { printf("Входной файл отсутствует\n"); exit(1); }
But it reads to the first letter " I " what's the matter?
How to skip/jump to the end of a line when reading a C++file
There is a file with the text. The program reads everything by character. If it finds, for example, a letter from the English ... ищет англ символы.
if (eror) { // если функция нашла то...
ПЕРЕЙТИ НА СЛЕДУЮЩУЮ СТРОКУ
}
}
}