Professional Documents
Culture Documents
КОР ЛР1 АС201 Поцілуйко
КОР ЛР1 АС201 Поцілуйко
Лабораторна робота №1
із дисципліни «Компонентно-орієнтована розробка»
Виконав:
ст. ІV курсу гр. АС-201
Поцілуйко В. А.
Перевірила:
ас. Арнаутова О. М.
Посилання на захист:
https://drive.google.com/file/d/1IJPX
zlrquzSYEuGQRgbKPGxPOZ35LE9
Y/view?usp=sharing
Одеса 2023
2
ВСТУП
1 КОД
#ifdef _MANAGED
#pragma managed(push, off)
#endif
//Обчислення відстані
double distance = EARTH_RADIUS * c;
return distance;
}
//Генеруємо пароль
for (int i = 0; i < length; ++i) {
int random_index = rand() % charset_length;
password[i] = charset[random_index];
}
EndPage(hdc);
EndDoc(hdc);
}
#ifdef _MANAGED
#pragma managed(pop)
#endif
#include "stdafx.h"
#include "Windows.h"
#include <iostream>
typedef struct {
double latitude;
double longitude;
} Location;
HINSTANCE hMyDll;
int main()
{
//Завантажуємо бібліотеку
hMyDll = LoadLibrary(_T("C:\\Users\\charl\\Documents\\Visual Studio
2015\\Projects\\FirstDll\\Debug\\FirstDll.dll"));
//Знаходимо відстань
Location a, b;
a.latitude = 51;
a.longitude = 31;
b.latitude = 47;
b.longitude = 30.73;
return 0;
}
9
2 ТЕСТУВАННЯ
ВИСНОВОК