3 семестр
This commit is contained in:
288
Part1/Lab1/Massiv_simv/Lab1_3.cpp
Normal file
288
Part1/Lab1/Massiv_simv/Lab1_3.cpp
Normal file
@@ -0,0 +1,288 @@
|
||||
#include <iostream>
|
||||
#include <fstream>
|
||||
#include <string>
|
||||
#include <Windows.h>
|
||||
#include <cstdio>
|
||||
#include <time.h>
|
||||
#include <iomanip>
|
||||
using namespace std;
|
||||
|
||||
const char universum[] = "ABCDEFGHIJKMNLOPQRSTUVWXYZ";
|
||||
const char filename[] = "Test_result.txt";
|
||||
const int length = 26;
|
||||
const int durationCoeff = 1000000;
|
||||
int customTestAmount = 0;
|
||||
char stringA[length], stringB[length], stringC[length], stringD[length];
|
||||
char vectorA[length], vectorB[length], vectorC[length], vectorD[length], vectorF[length];
|
||||
|
||||
|
||||
void setupConsole()
|
||||
{
|
||||
setlocale(LC_ALL, "Russian");
|
||||
SetConsoleOutputCP(1251);
|
||||
SetConsoleCP(1251);
|
||||
cout << fixed << setprecision(7);
|
||||
}
|
||||
|
||||
void outputGreeting()
|
||||
{
|
||||
cout << "Программа рассчитывает значение множества F согласно следующим законам - " << endl;
|
||||
cout << "F = D && (A || B) && !C, что равносильно F = D*(A + B) - C." << endl;
|
||||
cout << "Универсум: " << universum << endl;
|
||||
}
|
||||
|
||||
void input()
|
||||
{
|
||||
cout << endl;
|
||||
cout << "- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -" << endl;
|
||||
cout << "Введите множество A: ";
|
||||
cin >> stringA;
|
||||
cout << "Введите множество B: ";
|
||||
cin >> stringB;
|
||||
cout << "Введите множество C: ";
|
||||
cin >> stringC;
|
||||
cout << "Введите множество D: ";
|
||||
cin >> stringD;
|
||||
|
||||
cout << endl;
|
||||
}
|
||||
|
||||
bool isCorrectSymbol(char symbol)
|
||||
{
|
||||
return ((symbol >= universum[0] && symbol <= universum[length - 1]) || symbol == '\0') ? 1 : 0;
|
||||
}
|
||||
|
||||
bool isStringCorrect(char* string)
|
||||
{
|
||||
for (int i = 0; i < length && string[i] != '\0'; i++)
|
||||
if (!isCorrectSymbol(string[i]))
|
||||
return 0;
|
||||
return 1;
|
||||
}
|
||||
|
||||
int memberToIndex(char member)
|
||||
{
|
||||
return member - universum[0];
|
||||
}
|
||||
|
||||
char indexToMember(int number)
|
||||
{
|
||||
return number + universum[0];
|
||||
}
|
||||
|
||||
void vectorFromString(char* vector, const char string[])
|
||||
{
|
||||
for (int i = 0; string[i]; i++) {
|
||||
int j = 0;
|
||||
for (j = 0; j < i; j++) {
|
||||
if (memberToIndex(string[i]) < memberToIndex(vector[j])) {
|
||||
for (int k = i + 1; k > j; k--) {
|
||||
vector[k] = vector[k - 1];
|
||||
}
|
||||
break;
|
||||
}
|
||||
if (memberToIndex(string[i]) == memberToIndex(vector[j])) {
|
||||
j = -1;
|
||||
break;
|
||||
}
|
||||
}
|
||||
if(j != -1) vector[j] = string[i];
|
||||
}
|
||||
};
|
||||
|
||||
void convertSets()
|
||||
{
|
||||
vectorFromString(vectorA, stringA);
|
||||
vectorFromString(vectorB, stringB);
|
||||
vectorFromString(vectorC, stringC);
|
||||
vectorFromString(vectorD, stringD);
|
||||
}
|
||||
|
||||
void calculateAnswer()
|
||||
{
|
||||
for (int i = 0; vectorA[i]; i++)
|
||||
vectorF[i] = vectorA[i];
|
||||
|
||||
int j = 0;
|
||||
for (int i = 0; vectorB[i]; i++) {
|
||||
while (j < strlen(vectorF) && memberToIndex(vectorB[i]) > memberToIndex(vectorF[j])) j++;
|
||||
if (memberToIndex(vectorB[i]) != memberToIndex(vectorF[j])) {
|
||||
for (int k = strlen(vectorF); k >= j; k--) vectorF[k + 1] = vectorF[k];
|
||||
vectorF[j] = vectorB[i];
|
||||
}
|
||||
}
|
||||
|
||||
j = 0;
|
||||
for (int i = 0; vectorC[i]; i++) {
|
||||
while (j < strlen(vectorF) && memberToIndex(vectorC[i]) > memberToIndex(vectorF[j])) j++;
|
||||
if (memberToIndex(vectorC[i]) == memberToIndex(vectorF[j])) {
|
||||
for (int k = j; k < strlen(vectorF); k++) vectorF[k] = vectorF[k + 1];
|
||||
}
|
||||
}
|
||||
|
||||
j = 0;
|
||||
for (int i = 0; vectorD[i]; i++) {
|
||||
while (j < strlen(vectorF) && memberToIndex(vectorD[i]) > memberToIndex(vectorF[j])) {
|
||||
for (int k = j; k < strlen(vectorF); k++) vectorF[k] = vectorF[k + 1];
|
||||
}
|
||||
if (memberToIndex(vectorD[i]) == memberToIndex(vectorF[j])) j++;
|
||||
}
|
||||
for (j; j < strlen(vectorF); j++) {
|
||||
vectorF[j] = '\0';
|
||||
}
|
||||
}
|
||||
|
||||
void outputSetToConsole(char* vector)
|
||||
{
|
||||
for (int i = 0; vector[i]; i++)
|
||||
cout << vector[i];
|
||||
}
|
||||
|
||||
void outputSetToFile(char* vector, ofstream& output)
|
||||
{
|
||||
for (int i = 0; vector[i]; i++)
|
||||
output << vector[i];
|
||||
}
|
||||
|
||||
bool isSetEmpty(char* vector)
|
||||
{
|
||||
return (vector[0] == '\0') ? true : false;
|
||||
}
|
||||
|
||||
void outputAnswer()
|
||||
{
|
||||
cout << "Ответ: F = ";
|
||||
if (isSetEmpty(vectorF))
|
||||
cout << "пустое множество";
|
||||
else
|
||||
outputSetToConsole(vectorF);
|
||||
cout << endl;
|
||||
}
|
||||
|
||||
double calulateDuration()
|
||||
{
|
||||
double firstPoint, lastPoint, duration = 0;
|
||||
for (int i = 0; i < durationCoeff; i++)
|
||||
{
|
||||
firstPoint = clock();
|
||||
calculateAnswer();
|
||||
lastPoint = clock();
|
||||
duration += lastPoint - firstPoint;
|
||||
}
|
||||
return duration / durationCoeff;
|
||||
}
|
||||
|
||||
void outputDuration()
|
||||
{
|
||||
cout << endl;
|
||||
cout << "- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -" << endl;
|
||||
cout << "Временная сложность алгоритма - O(1), постоянное время" << endl;
|
||||
cout << "На выполнение алгоритма уходит " << calulateDuration() << " секунд." << endl;
|
||||
cout << endl;
|
||||
}
|
||||
|
||||
float factorial(int number)
|
||||
{
|
||||
float factorial = 1;
|
||||
for (int i = 1; i <= number; i++)
|
||||
factorial *= i;
|
||||
return factorial;
|
||||
}
|
||||
|
||||
bool randomVector()
|
||||
{
|
||||
return rand() % 2;
|
||||
}
|
||||
|
||||
void fillVectors()
|
||||
{
|
||||
for (int i = 0; i < length; i++) {
|
||||
vectorA[i] = '\0';
|
||||
vectorB[i] = '\0';
|
||||
vectorC[i] = '\0';
|
||||
vectorD[i] = '\0';
|
||||
}
|
||||
for (int i = 0; i < length; i++) {
|
||||
if (randomVector()) vectorA[strlen(vectorA)] = indexToMember(i);
|
||||
if (randomVector()) vectorB[strlen(vectorB)] = indexToMember(i);
|
||||
if (randomVector()) vectorC[strlen(vectorC)] = indexToMember(i);
|
||||
if (randomVector()) vectorD[strlen(vectorD)] = indexToMember(i);
|
||||
}
|
||||
}
|
||||
|
||||
void clearAnswerVector()
|
||||
{
|
||||
for (int i = 0; i < strlen(vectorF); i++)
|
||||
vectorF[i] = '\0';
|
||||
}
|
||||
|
||||
void badInputLoop()
|
||||
{
|
||||
while (cin.fail() || customTestAmount < 0)
|
||||
{
|
||||
cout << "Неправильный ввод, повторите еще раз:" << endl;
|
||||
cin.clear();
|
||||
cin.ignore(32767, '\n');
|
||||
cin >> customTestAmount;
|
||||
}
|
||||
}
|
||||
|
||||
void testInfo()
|
||||
{
|
||||
cout << setprecision(0);
|
||||
cout << "- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -" << endl;
|
||||
cout << "Из 26 символов может быть составлено " << factorial(length) << " перестановок" << endl;
|
||||
cout << "Сколько программа должна проделать тестов со случайными комбинациями?" << endl;
|
||||
cin >> customTestAmount;
|
||||
badInputLoop();
|
||||
if (customTestAmount > 0)
|
||||
cout << "Отчеты будут выведены в файл " << filename << endl;
|
||||
else cout << "Тесты не будут проделаны" << endl;
|
||||
}
|
||||
|
||||
void executeTest()
|
||||
{
|
||||
ofstream output;
|
||||
output.open(filename);
|
||||
for (int i = 0; i < customTestAmount; i++)
|
||||
{
|
||||
fillVectors();
|
||||
clearAnswerVector();
|
||||
output << "Множество A: ";
|
||||
outputSetToFile(vectorA, output);
|
||||
output << endl;
|
||||
output << "Множество B: ";
|
||||
outputSetToFile(vectorB, output);
|
||||
output << endl;
|
||||
output << "Множество C: ";
|
||||
outputSetToFile(vectorC, output);
|
||||
output << endl;
|
||||
output << "Множество D: ";
|
||||
outputSetToFile(vectorD, output);
|
||||
output << endl;
|
||||
calculateAnswer();
|
||||
output << "Ответ: F = ";
|
||||
outputSetToFile(vectorF, output);
|
||||
output << endl;
|
||||
output << '*' << endl;
|
||||
}
|
||||
output.close();
|
||||
}
|
||||
|
||||
int main()
|
||||
{
|
||||
setupConsole();
|
||||
outputGreeting();
|
||||
input();
|
||||
while (!isStringCorrect(stringA) || !isStringCorrect(stringB) || !isStringCorrect(stringC) || !isStringCorrect(stringD))
|
||||
{
|
||||
cout << "Некорректный ввод" << endl;
|
||||
input();
|
||||
}
|
||||
convertSets();
|
||||
calculateAnswer();
|
||||
outputAnswer();
|
||||
outputDuration();
|
||||
testInfo();
|
||||
executeTest();
|
||||
}
|
||||
60
Part1/Lab1/Massiv_simv/Test_result.txt
Normal file
60
Part1/Lab1/Massiv_simv/Test_result.txt
Normal file
@@ -0,0 +1,60 @@
|
||||
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> A: ABDEFIJKLMOUWZ
|
||||
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> B: ADHJKNOPSTUXZ
|
||||
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> C: CDEGHIJLMNOTXYZ
|
||||
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> D: CDFKLNRWY
|
||||
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: F = FKW
|
||||
*
|
||||
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> A: BDFGHIJKLTVY
|
||||
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> B: DFIJKNOPSVWXZ
|
||||
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> C: ABDEFIJKMPQTWXYZ
|
||||
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> D: BCIJNOPRTVWY
|
||||
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: F = NOV
|
||||
*
|
||||
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> A: CDGNOPSTVWYZ
|
||||
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> B: ABCDIJKLPQTUVXY
|
||||
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> C: BCGJMPQRSWZ
|
||||
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> D: CDFGIMORSTWY
|
||||
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: F = DIOTY
|
||||
*
|
||||
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> A: BCDFHJMOPRVWYZ
|
||||
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> B: ACDEGHNPRSUVXYZ
|
||||
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> C: ABDHJKLMSUWZ
|
||||
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> D: ABCFGHILNPRVY
|
||||
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: F = CFGNPRVY
|
||||
*
|
||||
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> A: ABCEGHIKLMPRSUX
|
||||
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> B: COUXZ
|
||||
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> C: ABEFIQRSTUWX
|
||||
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> D: ABFGIKMNOPQRUWYZ
|
||||
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: F = GKMOPZ
|
||||
*
|
||||
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> A: BDEGHIKMNOPSTVY
|
||||
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> B: ABCEIJKNRSUVZ
|
||||
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> C: BCDEFGKLMNQRSTUVWXY
|
||||
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> D: JKMNOQRUWXZ
|
||||
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: F = JOZ
|
||||
*
|
||||
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> A: BFGHIKLNOPQRUVWZ
|
||||
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> B: BEHJLMPRSVWX
|
||||
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> C: ABCIJMOPQRTXY
|
||||
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> D: BCDEGILMNOQSVWY
|
||||
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: F = EGLNSVW
|
||||
*
|
||||
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> A: BDFGKLMNPTVXZ
|
||||
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> B: ADFJKLNSXYZ
|
||||
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> C: ACDEFGHJMNQSTUWX
|
||||
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> D: ABHIJKLMNQRTUVW
|
||||
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: F = BKLV
|
||||
*
|
||||
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> A: BDGHJLNPQRTVWYZ
|
||||
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> B: BGHJQTUVWZ
|
||||
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> C: CHKLMPUXZ
|
||||
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> D: BCDFGMOQRSTUWYZ
|
||||
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: F = BDGQRTWY
|
||||
*
|
||||
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> A: ABCEGHJLMQRTUVXZ
|
||||
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> B: ACFGILMNRVWX
|
||||
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> C: BFHIJMOQUWY
|
||||
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> D: BCFJLMNOPSVY
|
||||
<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>: F = CLNV
|
||||
*
|
||||
31
Part1/Lab1/Massiv_simv/lab1_3.sln
Normal file
31
Part1/Lab1/Massiv_simv/lab1_3.sln
Normal file
@@ -0,0 +1,31 @@
|
||||
|
||||
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||
# Visual Studio Version 16
|
||||
VisualStudioVersion = 16.0.30804.86
|
||||
MinimumVisualStudioVersion = 10.0.40219.1
|
||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "lab1_3", "lab1_3.vcxproj", "{945AD67E-9CAA-4BA6-B7B2-937E53F8E45B}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|x64 = Debug|x64
|
||||
Debug|x86 = Debug|x86
|
||||
Release|x64 = Release|x64
|
||||
Release|x86 = Release|x86
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||
{945AD67E-9CAA-4BA6-B7B2-937E53F8E45B}.Debug|x64.ActiveCfg = Debug|x64
|
||||
{945AD67E-9CAA-4BA6-B7B2-937E53F8E45B}.Debug|x64.Build.0 = Debug|x64
|
||||
{945AD67E-9CAA-4BA6-B7B2-937E53F8E45B}.Debug|x86.ActiveCfg = Debug|Win32
|
||||
{945AD67E-9CAA-4BA6-B7B2-937E53F8E45B}.Debug|x86.Build.0 = Debug|Win32
|
||||
{945AD67E-9CAA-4BA6-B7B2-937E53F8E45B}.Release|x64.ActiveCfg = Release|x64
|
||||
{945AD67E-9CAA-4BA6-B7B2-937E53F8E45B}.Release|x64.Build.0 = Release|x64
|
||||
{945AD67E-9CAA-4BA6-B7B2-937E53F8E45B}.Release|x86.ActiveCfg = Release|Win32
|
||||
{945AD67E-9CAA-4BA6-B7B2-937E53F8E45B}.Release|x86.Build.0 = Release|Win32
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
EndGlobalSection
|
||||
GlobalSection(ExtensibilityGlobals) = postSolution
|
||||
SolutionGuid = {4FCBA152-888E-40B7-A874-3297AD785AB2}
|
||||
EndGlobalSection
|
||||
EndGlobal
|
||||
150
Part1/Lab1/Massiv_simv/lab1_3.vcxproj
Normal file
150
Part1/Lab1/Massiv_simv/lab1_3.vcxproj
Normal file
@@ -0,0 +1,150 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<ItemGroup Label="ProjectConfigurations">
|
||||
<ProjectConfiguration Include="Debug|Win32">
|
||||
<Configuration>Debug</Configuration>
|
||||
<Platform>Win32</Platform>
|
||||
</ProjectConfiguration>
|
||||
<ProjectConfiguration Include="Release|Win32">
|
||||
<Configuration>Release</Configuration>
|
||||
<Platform>Win32</Platform>
|
||||
</ProjectConfiguration>
|
||||
<ProjectConfiguration Include="Debug|x64">
|
||||
<Configuration>Debug</Configuration>
|
||||
<Platform>x64</Platform>
|
||||
</ProjectConfiguration>
|
||||
<ProjectConfiguration Include="Release|x64">
|
||||
<Configuration>Release</Configuration>
|
||||
<Platform>x64</Platform>
|
||||
</ProjectConfiguration>
|
||||
</ItemGroup>
|
||||
<PropertyGroup Label="Globals">
|
||||
<VCProjectVersion>16.0</VCProjectVersion>
|
||||
<Keyword>Win32Proj</Keyword>
|
||||
<ProjectGuid>{945ad67e-9caa-4ba6-b7b2-937e53f8e45b}</ProjectGuid>
|
||||
<RootNamespace>lab13</RootNamespace>
|
||||
<WindowsTargetPlatformVersion>10.0</WindowsTargetPlatformVersion>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
|
||||
<ConfigurationType>Application</ConfigurationType>
|
||||
<UseDebugLibraries>true</UseDebugLibraries>
|
||||
<PlatformToolset>v142</PlatformToolset>
|
||||
<CharacterSet>Unicode</CharacterSet>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
|
||||
<ConfigurationType>Application</ConfigurationType>
|
||||
<UseDebugLibraries>false</UseDebugLibraries>
|
||||
<PlatformToolset>v142</PlatformToolset>
|
||||
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||
<CharacterSet>Unicode</CharacterSet>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
|
||||
<ConfigurationType>Application</ConfigurationType>
|
||||
<UseDebugLibraries>true</UseDebugLibraries>
|
||||
<PlatformToolset>v142</PlatformToolset>
|
||||
<CharacterSet>Unicode</CharacterSet>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
|
||||
<ConfigurationType>Application</ConfigurationType>
|
||||
<UseDebugLibraries>false</UseDebugLibraries>
|
||||
<PlatformToolset>v142</PlatformToolset>
|
||||
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||
<CharacterSet>Unicode</CharacterSet>
|
||||
</PropertyGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
|
||||
<ImportGroup Label="ExtensionSettings">
|
||||
</ImportGroup>
|
||||
<ImportGroup Label="Shared">
|
||||
</ImportGroup>
|
||||
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||
</ImportGroup>
|
||||
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||
</ImportGroup>
|
||||
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||
</ImportGroup>
|
||||
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
||||
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
|
||||
</ImportGroup>
|
||||
<PropertyGroup Label="UserMacros" />
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||
<LinkIncremental>true</LinkIncremental>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||
<LinkIncremental>false</LinkIncremental>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
||||
<LinkIncremental>true</LinkIncremental>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
||||
<LinkIncremental>false</LinkIncremental>
|
||||
</PropertyGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
|
||||
<ClCompile>
|
||||
<WarningLevel>Level3</WarningLevel>
|
||||
<SDLCheck>true</SDLCheck>
|
||||
<PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<ConformanceMode>true</ConformanceMode>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<SubSystem>Console</SubSystem>
|
||||
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
|
||||
<ClCompile>
|
||||
<WarningLevel>Level3</WarningLevel>
|
||||
<FunctionLevelLinking>true</FunctionLevelLinking>
|
||||
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||
<SDLCheck>true</SDLCheck>
|
||||
<PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<ConformanceMode>true</ConformanceMode>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<SubSystem>Console</SubSystem>
|
||||
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||
<OptimizeReferences>true</OptimizeReferences>
|
||||
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
||||
<ClCompile>
|
||||
<WarningLevel>Level3</WarningLevel>
|
||||
<SDLCheck>true</SDLCheck>
|
||||
<PreprocessorDefinitions>_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<ConformanceMode>true</ConformanceMode>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<SubSystem>Console</SubSystem>
|
||||
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
||||
<ClCompile>
|
||||
<WarningLevel>Level3</WarningLevel>
|
||||
<FunctionLevelLinking>true</FunctionLevelLinking>
|
||||
<IntrinsicFunctions>true</IntrinsicFunctions>
|
||||
<SDLCheck>true</SDLCheck>
|
||||
<PreprocessorDefinitions>NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
|
||||
<ConformanceMode>true</ConformanceMode>
|
||||
</ClCompile>
|
||||
<Link>
|
||||
<SubSystem>Console</SubSystem>
|
||||
<EnableCOMDATFolding>true</EnableCOMDATFolding>
|
||||
<OptimizeReferences>true</OptimizeReferences>
|
||||
<GenerateDebugInformation>true</GenerateDebugInformation>
|
||||
</Link>
|
||||
</ItemDefinitionGroup>
|
||||
<ItemGroup>
|
||||
<ClCompile Include="Lab1_3.cpp" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Text Include="Test_result.txt" />
|
||||
</ItemGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
||||
<ImportGroup Label="ExtensionTargets">
|
||||
</ImportGroup>
|
||||
</Project>
|
||||
27
Part1/Lab1/Massiv_simv/lab1_3.vcxproj.filters
Normal file
27
Part1/Lab1/Massiv_simv/lab1_3.vcxproj.filters
Normal file
@@ -0,0 +1,27 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<ItemGroup>
|
||||
<Filter Include="Source Files">
|
||||
<UniqueIdentifier>{4FC737F1-C7A5-4376-A066-2A32D752A2FF}</UniqueIdentifier>
|
||||
<Extensions>cpp;c;cc;cxx;c++;cppm;ixx;def;odl;idl;hpj;bat;asm;asmx</Extensions>
|
||||
</Filter>
|
||||
<Filter Include="Header Files">
|
||||
<UniqueIdentifier>{93995380-89BD-4b04-88EB-625FBE52EBFB}</UniqueIdentifier>
|
||||
<Extensions>h;hh;hpp;hxx;h++;hm;inl;inc;ipp;xsd</Extensions>
|
||||
</Filter>
|
||||
<Filter Include="Resource Files">
|
||||
<UniqueIdentifier>{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}</UniqueIdentifier>
|
||||
<Extensions>rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms</Extensions>
|
||||
</Filter>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClCompile Include="Lab1_3.cpp">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Text Include="Test_result.txt">
|
||||
<Filter>Resource Files</Filter>
|
||||
</Text>
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
4
Part1/Lab1/Massiv_simv/lab1_3.vcxproj.user
Normal file
4
Part1/Lab1/Massiv_simv/lab1_3.vcxproj.user
Normal file
@@ -0,0 +1,4 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup />
|
||||
</Project>
|
||||
Reference in New Issue
Block a user