Initial commit with project files
This commit is contained in:
commit
c7b5312b79
Binary file not shown.
Binary file not shown.
BIN
.vs/transactions2/v17/.suo
Normal file
BIN
.vs/transactions2/v17/.suo
Normal file
Binary file not shown.
BIN
.vs/transactions2/v17/Browse.VC.db
Normal file
BIN
.vs/transactions2/v17/Browse.VC.db
Normal file
Binary file not shown.
37
.vs/transactions2/v17/DocumentLayout.backup.json
Normal file
37
.vs/transactions2/v17/DocumentLayout.backup.json
Normal file
@ -0,0 +1,37 @@
|
||||
{
|
||||
"Version": 1,
|
||||
"WorkspaceRootPath": "D:\\Study\\programming\\transactions\\transactions2\\",
|
||||
"Documents": [
|
||||
{
|
||||
"AbsoluteMoniker": "D:0:0:{2975471B-6588-4B89-82BB-FF9F167FE4FC}|transactions2\\transactions2.vcxproj|D:\\Study\\programming\\transactions\\transactions2\\transactions2\\transactions2.cpp||{D0E1A5C6-B359-4E41-9B60-3365922C2A22}",
|
||||
"RelativeMoniker": "D:0:0:{2975471B-6588-4B89-82BB-FF9F167FE4FC}|transactions2\\transactions2.vcxproj|solutionrelative:transactions2\\transactions2.cpp||{D0E1A5C6-B359-4E41-9B60-3365922C2A22}"
|
||||
}
|
||||
],
|
||||
"DocumentGroupContainers": [
|
||||
{
|
||||
"Orientation": 0,
|
||||
"VerticalTabListWidth": 256,
|
||||
"DocumentGroups": [
|
||||
{
|
||||
"DockedWidth": 200,
|
||||
"SelectedChildIndex": 0,
|
||||
"Children": [
|
||||
{
|
||||
"$type": "Document",
|
||||
"DocumentIndex": 0,
|
||||
"Title": "transactions2.cpp",
|
||||
"DocumentMoniker": "D:\\Study\\programming\\transactions\\transactions2\\transactions2\\transactions2.cpp",
|
||||
"RelativeDocumentMoniker": "transactions2\\transactions2.cpp",
|
||||
"ToolTip": "D:\\Study\\programming\\transactions\\transactions2\\transactions2\\transactions2.cpp",
|
||||
"RelativeToolTip": "transactions2\\transactions2.cpp",
|
||||
"ViewState": "AgIAABgBAAAAAAAAAAAAACYAAAAFAAAAAAAAAA==",
|
||||
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000677|",
|
||||
"WhenOpened": "2025-05-15T21:29:55.832Z",
|
||||
"EditorCaption": ""
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
37
.vs/transactions2/v17/DocumentLayout.json
Normal file
37
.vs/transactions2/v17/DocumentLayout.json
Normal file
@ -0,0 +1,37 @@
|
||||
{
|
||||
"Version": 1,
|
||||
"WorkspaceRootPath": "D:\\Study\\programming\\transactions\\transactions2\\",
|
||||
"Documents": [
|
||||
{
|
||||
"AbsoluteMoniker": "D:0:0:{2975471B-6588-4B89-82BB-FF9F167FE4FC}|transactions2\\transactions2.vcxproj|D:\\Study\\programming\\transactions\\transactions2\\transactions2\\transactions2.cpp||{D0E1A5C6-B359-4E41-9B60-3365922C2A22}",
|
||||
"RelativeMoniker": "D:0:0:{2975471B-6588-4B89-82BB-FF9F167FE4FC}|transactions2\\transactions2.vcxproj|solutionrelative:transactions2\\transactions2.cpp||{D0E1A5C6-B359-4E41-9B60-3365922C2A22}"
|
||||
}
|
||||
],
|
||||
"DocumentGroupContainers": [
|
||||
{
|
||||
"Orientation": 0,
|
||||
"VerticalTabListWidth": 256,
|
||||
"DocumentGroups": [
|
||||
{
|
||||
"DockedWidth": 200,
|
||||
"SelectedChildIndex": 0,
|
||||
"Children": [
|
||||
{
|
||||
"$type": "Document",
|
||||
"DocumentIndex": 0,
|
||||
"Title": "transactions2.cpp",
|
||||
"DocumentMoniker": "D:\\Study\\programming\\transactions\\transactions2\\transactions2\\transactions2.cpp",
|
||||
"RelativeDocumentMoniker": "transactions2\\transactions2.cpp",
|
||||
"ToolTip": "D:\\Study\\programming\\transactions\\transactions2\\transactions2\\transactions2.cpp",
|
||||
"RelativeToolTip": "transactions2\\transactions2.cpp",
|
||||
"ViewState": "AgIAAAAAAAAAAAAAAAAAAA4AAAAQAAAAAAAAAA==",
|
||||
"Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000677|",
|
||||
"WhenOpened": "2025-05-15T21:29:55.832Z",
|
||||
"EditorCaption": ""
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
BIN
.vs/transactions2/v17/Solution.VC.db
Normal file
BIN
.vs/transactions2/v17/Solution.VC.db
Normal file
Binary file not shown.
Binary file not shown.
28
transactions2.sln
Normal file
28
transactions2.sln
Normal file
@ -0,0 +1,28 @@
|
||||
|
||||
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||
# Visual Studio Version 17
|
||||
VisualStudioVersion = 17.12.35527.113 d17.12
|
||||
MinimumVisualStudioVersion = 10.0.40219.1
|
||||
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "transactions2", "transactions2\transactions2.vcxproj", "{2975471B-6588-4B89-82BB-FF9F167FE4FC}"
|
||||
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
|
||||
{2975471B-6588-4B89-82BB-FF9F167FE4FC}.Debug|x64.ActiveCfg = Debug|x64
|
||||
{2975471B-6588-4B89-82BB-FF9F167FE4FC}.Debug|x64.Build.0 = Debug|x64
|
||||
{2975471B-6588-4B89-82BB-FF9F167FE4FC}.Debug|x86.ActiveCfg = Debug|Win32
|
||||
{2975471B-6588-4B89-82BB-FF9F167FE4FC}.Debug|x86.Build.0 = Debug|Win32
|
||||
{2975471B-6588-4B89-82BB-FF9F167FE4FC}.Release|x64.ActiveCfg = Release|x64
|
||||
{2975471B-6588-4B89-82BB-FF9F167FE4FC}.Release|x64.Build.0 = Release|x64
|
||||
{2975471B-6588-4B89-82BB-FF9F167FE4FC}.Release|x86.ActiveCfg = Release|Win32
|
||||
{2975471B-6588-4B89-82BB-FF9F167FE4FC}.Release|x86.Build.0 = Release|Win32
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
EndGlobalSection
|
||||
EndGlobal
|
44
transactions2/a
Normal file
44
transactions2/a
Normal file
@ -0,0 +1,44 @@
|
||||
[
|
||||
{
|
||||
"hash": "000abc...",
|
||||
"index": 1,
|
||||
"miner": "Bob",
|
||||
"nonce": 1234,
|
||||
"reward": 100.0,
|
||||
"secret_info": "",
|
||||
"timestamp": 1649168215,
|
||||
"transactions": [
|
||||
{
|
||||
"from": "Alice",
|
||||
"to": "Bob",
|
||||
"value": 50.0
|
||||
},
|
||||
{
|
||||
"from": "SYSTEM",
|
||||
"to": "Alice",
|
||||
"value": 10.0
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"hash": "000def...",
|
||||
"index": 2,
|
||||
"miner": "Alice",
|
||||
"nonce": 5432,
|
||||
"reward": 50.0,
|
||||
"secret_info": "secret",
|
||||
"timestamp": 1649168216,
|
||||
"transactions": [
|
||||
{
|
||||
"from": "Bob",
|
||||
"to": "Din",
|
||||
"value": 30.0
|
||||
},
|
||||
{
|
||||
"from": "SYSTEM",
|
||||
"to": "Bob",
|
||||
"value": 5.0
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
28
transactions2/block1.json
Normal file
28
transactions2/block1.json
Normal file
@ -0,0 +1,28 @@
|
||||
[
|
||||
{
|
||||
"index": 1,
|
||||
"hash": "000abc...",
|
||||
"timestamp": 1649168215,
|
||||
"miner": "Bob",
|
||||
"reward": 100.0,
|
||||
"secret_info": "",
|
||||
"nonce": 1234,
|
||||
"transactions": [
|
||||
{"from": "Alice", "to": "Bob", "value": 50.0},
|
||||
{"from": "SYSTEM", "to": "Alice", "value": 10.0}
|
||||
]
|
||||
},
|
||||
{
|
||||
"index": 2,
|
||||
"hash": "000def...",
|
||||
"timestamp": 1649168216,
|
||||
"miner": "Alice",
|
||||
"reward": 50.0,
|
||||
"secret_info": "secret",
|
||||
"nonce": 5432,
|
||||
"transactions": [
|
||||
{"from": "Bob", "to": "Din", "value": 30.0},
|
||||
{"from": "SYSTEM", "to": "Bob", "value": 5.0}
|
||||
]
|
||||
}
|
||||
]
|
44
transactions2/d
Normal file
44
transactions2/d
Normal file
@ -0,0 +1,44 @@
|
||||
[
|
||||
{
|
||||
"hash": "000abc...",
|
||||
"index": 1,
|
||||
"miner": "Bob",
|
||||
"nonce": 1234,
|
||||
"reward": 100.0,
|
||||
"secret_info": "",
|
||||
"timestamp": 1649168215,
|
||||
"transactions": [
|
||||
{
|
||||
"from": "Alice",
|
||||
"to": "Bob",
|
||||
"value": 50.0
|
||||
},
|
||||
{
|
||||
"from": "SYSTEM",
|
||||
"to": "Alice",
|
||||
"value": 10.0
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"hash": "000def...",
|
||||
"index": 2,
|
||||
"miner": "Alice",
|
||||
"nonce": 5432,
|
||||
"reward": 50.0,
|
||||
"secret_info": "secret",
|
||||
"timestamp": 1649168216,
|
||||
"transactions": [
|
||||
{
|
||||
"from": "Bob",
|
||||
"to": "Din",
|
||||
"value": 30.0
|
||||
},
|
||||
{
|
||||
"from": "SYSTEM",
|
||||
"to": "Bob",
|
||||
"value": 5.0
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
25510
transactions2/json.hpp
Normal file
25510
transactions2/json.hpp
Normal file
File diff suppressed because it is too large
Load Diff
332
transactions2/transactions2.cpp
Normal file
332
transactions2/transactions2.cpp
Normal file
@ -0,0 +1,332 @@
|
||||
#include <iostream>
|
||||
#include <vector>
|
||||
#include <string>
|
||||
#include <algorithm>
|
||||
#include <map>
|
||||
#include <iomanip>
|
||||
#include <fstream>
|
||||
#include <cctype>
|
||||
#include "json.hpp"
|
||||
|
||||
using namespace std;
|
||||
using json = nlohmann::json;
|
||||
|
||||
struct Transaction {
|
||||
string from;
|
||||
string to;
|
||||
double value;
|
||||
};
|
||||
|
||||
struct Block {
|
||||
int index;
|
||||
string hash;
|
||||
int64_t timestamp;
|
||||
string miner;
|
||||
double reward;
|
||||
vector<Transaction> transactions;
|
||||
string secret_info;
|
||||
int nonce;
|
||||
};
|
||||
|
||||
vector<Block> blocks;
|
||||
|
||||
|
||||
bool loadBlocksFromFile(const string& filename) {
|
||||
ifstream input_file(filename);
|
||||
if (!input_file.is_open()) {
|
||||
cerr << "Error: Cannot open file " << filename << endl; //Ошибка: не удалось открыть файл
|
||||
return false;
|
||||
}
|
||||
|
||||
try {
|
||||
json j;
|
||||
input_file >> j;
|
||||
blocks.clear();
|
||||
|
||||
for (const auto& item : j) {
|
||||
Block block;
|
||||
block.index = item["index"];
|
||||
block.hash = item["hash"];
|
||||
block.timestamp = item["timestamp"];
|
||||
block.miner = item["miner"];
|
||||
block.reward = item["reward"];
|
||||
block.secret_info = item.value("secret_info", "");
|
||||
block.nonce = item["nonce"];
|
||||
|
||||
for (const auto& tx_item : item["transactions"]) {
|
||||
Transaction tx;
|
||||
tx.from = tx_item["from"];
|
||||
tx.to = tx_item["to"];
|
||||
tx.value = tx_item["value"];
|
||||
block.transactions.push_back(tx);
|
||||
}
|
||||
|
||||
blocks.push_back(block);
|
||||
}
|
||||
|
||||
//Успешно загружено //блоков из файла
|
||||
cout << "Successfully loaded " << blocks.size() << " blocks from " << filename << endl;
|
||||
return true;
|
||||
}
|
||||
catch (const exception& e) {
|
||||
cerr << "JSON parsing error: " << e.what() << endl; //Ошибка при чтении JSON:
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
bool saveBlocksToFile(const string& filename) {
|
||||
json j;
|
||||
|
||||
for (const auto& block : blocks) {
|
||||
json block_json;
|
||||
block_json["index"] = block.index;
|
||||
block_json["hash"] = block.hash;
|
||||
block_json["timestamp"] = block.timestamp;
|
||||
block_json["miner"] = block.miner;
|
||||
block_json["reward"] = block.reward;
|
||||
block_json["secret_info"] = block.secret_info;
|
||||
block_json["nonce"] = block.nonce;
|
||||
|
||||
for (const auto& tx : block.transactions) {
|
||||
json tx_json;
|
||||
tx_json["from"] = tx.from;
|
||||
tx_json["to"] = tx.to;
|
||||
tx_json["value"] = tx.value;
|
||||
block_json["transactions"].push_back(tx_json);
|
||||
}
|
||||
|
||||
j.push_back(block_json);
|
||||
}
|
||||
|
||||
ofstream output_file(filename);
|
||||
if (!output_file.is_open()) {
|
||||
cerr << "Error: Cannot create file " << filename << endl; //Ошибка: не удалось создать файл
|
||||
return false;
|
||||
}
|
||||
|
||||
output_file << setw(4) << j << endl;
|
||||
cout << "Successfully saved " << blocks.size() << " blocks to " << filename << endl; //Успешно сохранено //блоков в файл
|
||||
return true;
|
||||
}
|
||||
|
||||
void printBlock(const Block& block) {
|
||||
cout << "index: " << block.index << "\n"
|
||||
<< "hash: " << block.hash << "\n"
|
||||
<< "timestamp: " << block.timestamp << "\n"
|
||||
<< "miner: " << block.miner << "\n"
|
||||
<< "reward: " << fixed << setprecision(2) << block.reward << "\n"
|
||||
<< "secret_info: " << block.secret_info << "\n"
|
||||
<< "nonce: " << block.nonce << "\n"
|
||||
<< "Transactions (" << block.transactions.size() << "):\n";
|
||||
|
||||
for (const auto& tx : block.transactions) {
|
||||
cout << " " << tx.from << " -> " << tx.to << ": " << tx.value << "\n";
|
||||
}
|
||||
cout << "----------------------------\n";
|
||||
}
|
||||
|
||||
void printAllBlocks() {
|
||||
if (blocks.empty()) {
|
||||
cout << "There is no data about the blocks.Download them first." << endl; //Нет данных о блоках. Загрузите их сначала.
|
||||
return;
|
||||
}
|
||||
|
||||
for (const auto& block : blocks) {
|
||||
printBlock(block);
|
||||
}
|
||||
}
|
||||
|
||||
void filterByMiner() {
|
||||
if (blocks.empty()) {
|
||||
cout << "There is no data about the blocks. Download them first." << endl; //Нет данных о блоках. Загрузите их сначала.
|
||||
return;
|
||||
}
|
||||
|
||||
string minerName;
|
||||
cout << "Enter the miner's name: "; //Введите имя майнера:
|
||||
cin >> minerName;
|
||||
|
||||
bool found = false;
|
||||
for (const auto& block : blocks) {
|
||||
if (block.miner == minerName) {
|
||||
printBlock(block);
|
||||
found = true;
|
||||
}
|
||||
}
|
||||
|
||||
if (!found) {
|
||||
cout << "Blocks with a miner " << minerName << " not found." << endl; //Блоки с майнером ... не найдены
|
||||
}
|
||||
}
|
||||
|
||||
void printTransactionsCount() {
|
||||
if (blocks.empty()) {
|
||||
cout << "There is no data about the blocks. Download them first." << endl; //Нет данных о блоках. Загрузите их сначала.
|
||||
return;
|
||||
}
|
||||
|
||||
cout << "Number of transactions in blocks: " << endl; //Количество транзакций в блоках:
|
||||
for (const auto& block : blocks) {
|
||||
cout << "block " << block.index << ": "
|
||||
<< block.transactions.size() << " transactions" << endl;
|
||||
}
|
||||
}
|
||||
|
||||
void calculateBalances() {
|
||||
if (blocks.empty()) {
|
||||
cout << "There is no data about the blocks. Download them first." << endl; //Нет данных о блоках. Загрузите их сначала.
|
||||
return;
|
||||
}
|
||||
|
||||
map<string, double> balances;
|
||||
|
||||
for (const auto& block : blocks) {
|
||||
for (const auto& tx : block.transactions) {
|
||||
if (tx.from != "SYSTEM") {
|
||||
balances[tx.from] -= tx.value;
|
||||
}
|
||||
balances[tx.to] += tx.value;
|
||||
}
|
||||
}
|
||||
|
||||
cout << "User balances:" << endl; //Балансы пользователей:
|
||||
for (const auto& entry : balances) {
|
||||
cout << entry.first << ": " << fixed << setprecision(2) << entry.second << endl;
|
||||
}
|
||||
}
|
||||
|
||||
void sortBlocksByIndex() {
|
||||
if (blocks.empty()) {
|
||||
cout << "There is no data about the blocks. Download them first." << endl;
|
||||
return;
|
||||
}
|
||||
|
||||
for (size_t i = 0; i < blocks.size(); ++i) {
|
||||
for (size_t j = 0; j < blocks.size() - i - 1; ++j) {
|
||||
if (blocks[j].index > blocks[j + 1].index) {
|
||||
swap(blocks[j], blocks[j + 1]);
|
||||
}
|
||||
}
|
||||
}
|
||||
cout << "The blocks are sorted by index." << endl; //Блоки отсортированы по индексу.
|
||||
}
|
||||
|
||||
void printEvenIndexBlocks() {
|
||||
if (blocks.empty()) {
|
||||
cout << "There is no data about the blocks. Download them first." << endl;
|
||||
return;
|
||||
}
|
||||
|
||||
cout << "Blocks with an even index:" << endl; //Блоки с четным индексом:
|
||||
for (const auto& block : blocks) {
|
||||
if (block.index % 2 == 0) {
|
||||
printBlock(block);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void printVowelMinerBlocks() {
|
||||
if (blocks.empty()) {
|
||||
cout << "There is no data about the blocks. Download them first." << endl;
|
||||
return;
|
||||
}
|
||||
|
||||
const string vowels = "AEIOUaeiou";
|
||||
cout << "Blocks where the miner starts with a vowel:" << endl; //Блоки, где майнер начинается с гласной:
|
||||
|
||||
for (const auto& block : blocks) {
|
||||
if (!block.miner.empty() && vowels.find(block.miner[0]) != string::npos) {
|
||||
printBlock(block);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void printFourDigitNonceBlocks() {
|
||||
if (blocks.empty()) {
|
||||
cout << "There is no data about the blocks. Download them first." << endl;
|
||||
return;
|
||||
}
|
||||
|
||||
cout << "Blocks with a 4-digit nonce (1000-9999):" << endl; //Блоки с 4-значным nonce (1000-9999):
|
||||
for (const auto& block : blocks) {
|
||||
if (block.nonce >= 1000 && block.nonce <= 9999) {
|
||||
printBlock(block);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void showMenu() {
|
||||
cout << "\n=== Menu ===" << endl //Загрузить блоки из файла
|
||||
<< "1. Load blocks from file" << endl //Загрузить блоки из файла
|
||||
<< "2. Save blocks to file" << endl //Сохранить блоки в файл
|
||||
<< "3. Print all blocks" << endl //Вывести все блоки
|
||||
<< "4. Filter by miner" << endl //Фильтр по майнеру
|
||||
<< "5. Transaction count" << endl //Количество транзакций
|
||||
<< "6. User balances" << endl //Балансы пользователей
|
||||
<< "7. Sort by index" << endl //Сортировать по индексу
|
||||
<< "8. Blocks with even index" << endl //Блоки с четным индексом
|
||||
<< "9. Blocks where miner starts with a vowel" << endl //Блоки, где майнер начинается с гласной
|
||||
<< "10. Blocks with 4-digit nonce" << endl //Блоки с 4-значным nonce
|
||||
<< "0. Exit" << endl //Выход
|
||||
<< "Enter choice: "; //Введите номер
|
||||
}
|
||||
|
||||
int main() {
|
||||
int choice;
|
||||
do {
|
||||
showMenu();
|
||||
cin >> choice;
|
||||
|
||||
switch (choice) {
|
||||
case 1: {
|
||||
string filename;
|
||||
cout << "Enter the file name to download: "; //Введите имя файла для загрузки:
|
||||
cin >> filename;
|
||||
if (!loadBlocksFromFile(filename)) {
|
||||
cout << "File upload error!" << endl; //Ошибка загрузки файла!
|
||||
}
|
||||
break;
|
||||
}
|
||||
case 2: {
|
||||
string filename;
|
||||
cout << "Enter the file name to save: "; //Введите имя файла для сохранения:
|
||||
cin >> filename;
|
||||
if (!saveBlocksToFile(filename)) {
|
||||
cout << "File upload error!" << endl;
|
||||
}
|
||||
break;
|
||||
}
|
||||
case 3:
|
||||
printAllBlocks();
|
||||
break;
|
||||
case 4:
|
||||
filterByMiner();
|
||||
break;
|
||||
case 5:
|
||||
printTransactionsCount();
|
||||
break;
|
||||
case 6:
|
||||
calculateBalances();
|
||||
break;
|
||||
case 7:
|
||||
sortBlocksByIndex();
|
||||
break;
|
||||
case 8:
|
||||
printEvenIndexBlocks();
|
||||
break;
|
||||
case 9:
|
||||
printVowelMinerBlocks();
|
||||
break;
|
||||
case 10:
|
||||
printFourDigitNonceBlocks();
|
||||
break;
|
||||
case 0:
|
||||
cout << "Exit the program..." << endl;
|
||||
break;
|
||||
default:
|
||||
cout << "Wrong choice! Try again." << endl; //Неверный выбор! Попробуйте снова.
|
||||
}
|
||||
} while (choice != 0);
|
||||
|
||||
return 0;
|
||||
}
|
135
transactions2/transactions2.vcxproj
Normal file
135
transactions2/transactions2.vcxproj
Normal file
@ -0,0 +1,135 @@
|
||||
<?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>17.0</VCProjectVersion>
|
||||
<Keyword>Win32Proj</Keyword>
|
||||
<ProjectGuid>{2975471b-6588-4b89-82bb-ff9f167fe4fc}</ProjectGuid>
|
||||
<RootNamespace>transactions2</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>v143</PlatformToolset>
|
||||
<CharacterSet>Unicode</CharacterSet>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
|
||||
<ConfigurationType>Application</ConfigurationType>
|
||||
<UseDebugLibraries>false</UseDebugLibraries>
|
||||
<PlatformToolset>v143</PlatformToolset>
|
||||
<WholeProgramOptimization>true</WholeProgramOptimization>
|
||||
<CharacterSet>Unicode</CharacterSet>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
|
||||
<ConfigurationType>Application</ConfigurationType>
|
||||
<UseDebugLibraries>true</UseDebugLibraries>
|
||||
<PlatformToolset>v143</PlatformToolset>
|
||||
<CharacterSet>Unicode</CharacterSet>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
|
||||
<ConfigurationType>Application</ConfigurationType>
|
||||
<UseDebugLibraries>false</UseDebugLibraries>
|
||||
<PlatformToolset>v143</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" />
|
||||
<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="transactions2.cpp" />
|
||||
</ItemGroup>
|
||||
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
|
||||
<ImportGroup Label="ExtensionTargets">
|
||||
</ImportGroup>
|
||||
</Project>
|
22
transactions2/transactions2.vcxproj.filters
Normal file
22
transactions2/transactions2.vcxproj.filters
Normal file
@ -0,0 +1,22 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<ItemGroup>
|
||||
<Filter Include="Исходные файлы">
|
||||
<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="Файлы заголовков">
|
||||
<UniqueIdentifier>{93995380-89BD-4b04-88EB-625FBE52EBFB}</UniqueIdentifier>
|
||||
<Extensions>h;hh;hpp;hxx;h++;hm;inl;inc;ipp;xsd</Extensions>
|
||||
</Filter>
|
||||
<Filter Include="Файлы ресурсов">
|
||||
<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="transactions2.cpp">
|
||||
<Filter>Исходные файлы</Filter>
|
||||
</ClCompile>
|
||||
</ItemGroup>
|
||||
</Project>
|
4
transactions2/transactions2.vcxproj.user
Normal file
4
transactions2/transactions2.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>
|
11
transactions2/x64/Debug/transactions2.exe.recipe
Normal file
11
transactions2/x64/Debug/transactions2.exe.recipe
Normal file
@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project>
|
||||
<ProjectOutputs>
|
||||
<ProjectOutput>
|
||||
<FullPath>D:\Study\programming\transactions\transactions2\x64\Debug\transactions2.exe</FullPath>
|
||||
</ProjectOutput>
|
||||
</ProjectOutputs>
|
||||
<ContentFiles />
|
||||
<SatelliteDlls />
|
||||
<NonRecipeFileRefs />
|
||||
</Project>
|
BIN
transactions2/x64/Debug/transactions2.ilk
Normal file
BIN
transactions2/x64/Debug/transactions2.ilk
Normal file
Binary file not shown.
2
transactions2/x64/Debug/transactions2.log
Normal file
2
transactions2/x64/Debug/transactions2.log
Normal file
@ -0,0 +1,2 @@
|
||||
transactions2.cpp
|
||||
LINK : fatal error LNK1168: не удается открыть D:\Study\programming\transactions\transactions2\x64\Debug\transactions2.exe для записи
|
BIN
transactions2/x64/Debug/transactions2.obj
Normal file
BIN
transactions2/x64/Debug/transactions2.obj
Normal file
Binary file not shown.
BIN
transactions2/x64/Debug/transactions2.tlog/CL.command.1.tlog
Normal file
BIN
transactions2/x64/Debug/transactions2.tlog/CL.command.1.tlog
Normal file
Binary file not shown.
BIN
transactions2/x64/Debug/transactions2.tlog/CL.read.1.tlog
Normal file
BIN
transactions2/x64/Debug/transactions2.tlog/CL.read.1.tlog
Normal file
Binary file not shown.
BIN
transactions2/x64/Debug/transactions2.tlog/CL.write.1.tlog
Normal file
BIN
transactions2/x64/Debug/transactions2.tlog/CL.write.1.tlog
Normal file
Binary file not shown.
1
transactions2/x64/Debug/transactions2.tlog/Cl.items.tlog
Normal file
1
transactions2/x64/Debug/transactions2.tlog/Cl.items.tlog
Normal file
@ -0,0 +1 @@
|
||||
D:\Study\programming\transactions\transactions2\transactions2\transactions2.cpp;D:\Study\programming\transactions\transactions2\transactions2\x64\Debug\transactions2.obj
|
@ -0,0 +1 @@
|
||||
|
@ -0,0 +1 @@
|
||||
|
@ -0,0 +1,2 @@
|
||||
^D:\STUDY\PROGRAMMING\TRANSACTIONS\TRANSACTIONS2\TRANSACTIONS2\X64\DEBUG\TRANSACTIONS2.OBJ
|
||||
D:\Study\programming\transactions\transactions2\transactions2\x64\Debug\transactions2.ilk
|
@ -0,0 +1 @@
|
||||
|
@ -0,0 +1,2 @@
|
||||
PlatformToolSet=v143:VCToolArchitecture=Native64Bit:VCToolsVersion=14.42.34433:TargetPlatformVersion=10.0.26100.0:
|
||||
Debug|x64|D:\Study\programming\transactions\transactions2\|
|
BIN
transactions2/x64/Debug/vc143.idb
Normal file
BIN
transactions2/x64/Debug/vc143.idb
Normal file
Binary file not shown.
BIN
transactions2/x64/Debug/vc143.pdb
Normal file
BIN
transactions2/x64/Debug/vc143.pdb
Normal file
Binary file not shown.
BIN
x64/Debug/transactions2.exe
Normal file
BIN
x64/Debug/transactions2.exe
Normal file
Binary file not shown.
BIN
x64/Debug/transactions2.pdb
Normal file
BIN
x64/Debug/transactions2.pdb
Normal file
Binary file not shown.
Loading…
Reference in New Issue
Block a user