какая по функционалу CMS используется на сайте
int getMin(int numbers[], int size);
int main(){
int numbers[10] = { 0, 2, 4, 6, 1, 3, 8, 7, 9, 5 };
int res = getMin(numbers, 10);
printf("%d\n", res);
getchar();
}
int getMin(int numbers[], int size){
int key = 0;
int min = numbers[0];
for (int i = 1; i < size; i++){
if (min > numbers[i]){
min = numbers[i];
key = i;
}
}
return key;
}
LPBYTE pinfoRawData{};
if (NERR_Success == NetWkstaGetInfo(NULL, 100, &pinfoRawData))
{
WKSTA_INFO_100* pworkstationInfo = (WKSTA_INFO_100*)pinfoRawData;
int major = pworkstationInfo->wki100_ver_major;
int minor = pworkstationInfo->wki100_ver_minor;
printf("major = %d\n", major);
printf("minor = %d\n", minor);
NetApiBufferFree(pinfoRawData);
}