Commit 3355451b authored by Maxime POULAIN's avatar Maxime POULAIN
Browse files

add output file

parent 166aa04a
#include "MainForm.h"
#include <iostream>
#include <time.h>
#include "bierwirthManager.h"
#include "bierwirth_t.h"
#include "gestion_graphe.h"
......@@ -19,8 +22,8 @@ char szFile[1024];
void MainForm::InitializeComponent(void)
{
System::Windows::Forms::DataVisualization::Charting::ChartArea^ chartArea1 = (gcnew System::Windows::Forms::DataVisualization::Charting::ChartArea());
System::Windows::Forms::DataVisualization::Charting::Series^ series1 = (gcnew System::Windows::Forms::DataVisualization::Charting::Series());
System::Windows::Forms::DataVisualization::Charting::ChartArea^ chartArea2 = (gcnew System::Windows::Forms::DataVisualization::Charting::ChartArea());
System::Windows::Forms::DataVisualization::Charting::Series^ series2 = (gcnew System::Windows::Forms::DataVisualization::Charting::Series());
this->buttonStart = (gcnew System::Windows::Forms::Button());
this->openFileDialog1 = (gcnew System::Windows::Forms::OpenFileDialog());
this->label1 = (gcnew System::Windows::Forms::Label());
......@@ -43,6 +46,7 @@ void MainForm::InitializeComponent(void)
this->ListViewIteration = (gcnew System::Windows::Forms::ColumnHeader());
this->ListViewCost = (gcnew System::Windows::Forms::ColumnHeader());
this->label7 = (gcnew System::Windows::Forms::Label());
this->buttonExport = (gcnew System::Windows::Forms::Button());
(cli::safe_cast<System::ComponentModel::ISupportInitialize^>(this->chart))->BeginInit();
this->SuspendLayout();
//
......@@ -247,19 +251,19 @@ void MainForm::InitializeComponent(void)
//
this->chart->BackColor = System::Drawing::Color::FromArgb(static_cast<System::Int32>(static_cast<System::Byte>(26)), static_cast<System::Int32>(static_cast<System::Byte>(78)),
static_cast<System::Int32>(static_cast<System::Byte>(112)));
chartArea1->BackColor = System::Drawing::Color::FromArgb(static_cast<System::Int32>(static_cast<System::Byte>(26)), static_cast<System::Int32>(static_cast<System::Byte>(78)),
chartArea2->BackColor = System::Drawing::Color::FromArgb(static_cast<System::Int32>(static_cast<System::Byte>(26)), static_cast<System::Int32>(static_cast<System::Byte>(78)),
static_cast<System::Int32>(static_cast<System::Byte>(112)));
chartArea1->BackSecondaryColor = System::Drawing::Color::White;
chartArea1->Name = L"ChartArea1";
this->chart->ChartAreas->Add(chartArea1);
chartArea2->BackSecondaryColor = System::Drawing::Color::White;
chartArea2->Name = L"ChartArea1";
this->chart->ChartAreas->Add(chartArea2);
this->chart->Location = System::Drawing::Point(373, 9);
this->chart->Name = L"chart";
this->chart->Palette = System::Windows::Forms::DataVisualization::Charting::ChartColorPalette::Light;
series1->ChartArea = L"ChartArea1";
series1->ChartType = System::Windows::Forms::DataVisualization::Charting::SeriesChartType::Line;
series1->IsVisibleInLegend = false;
series1->Name = L"Series1";
this->chart->Series->Add(series1);
series2->ChartArea = L"ChartArea1";
series2->ChartType = System::Windows::Forms::DataVisualization::Charting::SeriesChartType::Line;
series2->IsVisibleInLegend = false;
series2->Name = L"Series1";
this->chart->Series->Add(series2);
this->chart->Size = System::Drawing::Size(432, 300);
this->chart->TabIndex = 16;
//
......@@ -308,12 +312,28 @@ void MainForm::InitializeComponent(void)
this->label7->TabIndex = 18;
this->label7->Text = L"Maxime POULAIN et Sinaro LY - F2";
//
// buttonExport
//
this->buttonExport->BackColor = System::Drawing::Color::FromArgb(static_cast<System::Int32>(static_cast<System::Byte>(26)), static_cast<System::Int32>(static_cast<System::Byte>(78)),
static_cast<System::Int32>(static_cast<System::Byte>(112)));
this->buttonExport->FlatStyle = System::Windows::Forms::FlatStyle::Popup;
this->buttonExport->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 12, System::Drawing::FontStyle::Bold));
this->buttonExport->ForeColor = System::Drawing::Color::White;
this->buttonExport->Location = System::Drawing::Point(932, 315);
this->buttonExport->Name = L"buttonExport";
this->buttonExport->Size = System::Drawing::Size(75, 40);
this->buttonExport->TabIndex = 20;
this->buttonExport->Text = L"Export";
this->buttonExport->UseVisualStyleBackColor = false;
this->buttonExport->Click += gcnew System::EventHandler(this, &MainForm::buttonExport_Click);
//
// MainForm
//
this->BackColor = System::Drawing::Color::FromArgb(static_cast<System::Int32>(static_cast<System::Byte>(43)), static_cast<System::Int32>(static_cast<System::Byte>(93)),
static_cast<System::Int32>(static_cast<System::Byte>(140)));
this->BackgroundImageLayout = System::Windows::Forms::ImageLayout::None;
this->ClientSize = System::Drawing::Size(1123, 387);
this->Controls->Add(this->buttonExport);
this->Controls->Add(this->label7);
this->Controls->Add(this->listView);
this->Controls->Add(this->chart);
......@@ -487,6 +507,27 @@ System::Void MainForm::buttonStop_Click(System::Object^ sender, System::EventArg
}
System::Void MainForm::buttonExport_Click(System::Object^ sender, System::EventArgs^ e)
{
ofstream myfile;
char filename[100];
sprintf(filename, "out_%d.txt", time(NULL));
myfile.open(filename);
std::cout << "Now" << std::endl;
for (int i = 0; i < listView->Items->Count; i++)
{
for (int j = 0; j < listView->Items[i]->SubItems->Count; j++)
{
std::cout << stringToChar(listView->Items[i]->SubItems[j]->Text) << "\t";
std::cout << stringToChar(listView->Items[i]->SubItems[j]->Text) << std::endl;
}
myfile << std::endl;
}
myfile.close();
}
......@@ -77,6 +77,8 @@ private: System::Windows::Forms::ColumnHeader^ ListViewFile;
private: System::Windows::Forms::ColumnHeader^ ListViewIteration;
private: System::Windows::Forms::ColumnHeader^ ListViewCost;
private: System::Windows::Forms::Label^ label7;
private: System::Windows::Forms::Button^ buttonExport;
......@@ -115,4 +117,7 @@ private: System::Void buttonStart_Click(System::Object^ sender, System::EventArg
private: System::Void buttonStop_Click(System::Object^ sender, System::EventArgs^ e);
private: System::Void buttonExport_Click(System::Object^ sender, System::EventArgs^ e);
};
c:\users\poula\documents\travail\zz2\s3\aide décision\tp\tp2\oad-tp2\code\view\x64\debug\vc142.pdb
c:\users\poula\documents\travail\zz2\s3\aide décision\tp\tp2\oad-tp2\code\view\x64\debug\.netframework,version=v4.7.2.assemblyattributes.obj
c:\users\poula\documents\travail\zz2\s3\aide décision\tp\tp2\oad-tp2\code\view\x64\debug\utils.obj
c:\users\poula\documents\travail\zz2\s3\aide décision\tp\tp2\oad-tp2\code\view\x64\debug\solution.obj
c:\users\poula\documents\travail\zz2\s3\aide décision\tp\tp2\oad-tp2\code\view\x64\debug\mainform.obj
c:\users\poula\documents\travail\zz2\s3\aide décision\tp\tp2\oad-tp2\code\view\x64\debug\gestion_graphe.obj
c:\users\poula\documents\travail\zz2\s3\aide décision\tp\tp2\oad-tp2\code\view\x64\debug\entry.obj
c:\users\poula\documents\travail\zz2\s3\aide décision\tp\tp2\oad-tp2\code\view\x64\debug\bierwirth.obj
c:\users\poula\documents\travail\zz2\s3\aide décision\tp\tp2\oad-tp2\code\view\x64\debug\bierwirthmanager.obj
c:\users\poula\downloads\oad-tp2\code\view\x64\debug\vc142.pdb
c:\users\poula\downloads\oad-tp2\code\view\x64\debug\.netframework,version=v4.7.2.assemblyattributes.obj
c:\users\poula\downloads\oad-tp2\code\view\x64\debug\utils.obj
c:\users\poula\downloads\oad-tp2\code\view\x64\debug\solution.obj
c:\users\poula\downloads\oad-tp2\code\view\x64\debug\mainform.obj
c:\users\poula\downloads\oad-tp2\code\view\x64\debug\gestion_graphe.obj
c:\users\poula\downloads\oad-tp2\code\view\x64\debug\entry.obj
c:\users\poula\downloads\oad-tp2\code\view\x64\debug\bierwirthmanager.obj
c:\users\poula\downloads\oad-tp2\code\x64\debug\view.exe
c:\users\poula\downloads\oad-tp2\code\x64\debug\view.pdb
c:\users\poula\documents\travail\zz2\s3\aide décision\tp\tp2\oad-tp2\code\view\x64\debug\view.mainform.resources
c:\users\poula\documents\travail\zz2\s3\aide décision\tp\tp2\oad-tp2\code\view\x64\debug\view.vcxproj.assemblyreference.cache
c:\users\poula\documents\travail\zz2\s3\aide décision\tp\tp2\oad-tp2\code\view\x64\debug\view.vcxproj.generateresource.cache
c:\users\poula\documents\travail\zz2\s3\aide décision\tp\tp2\oad-tp2\code\x64\debug\view.pdb
c:\users\poula\documents\travail\zz2\s3\aide décision\tp\tp2\oad-tp2\code\view\x64\debug\view.tlog\cl.command.1.tlog
c:\users\poula\documents\travail\zz2\s3\aide décision\tp\tp2\oad-tp2\code\view\x64\debug\view.tlog\cl.read.1.tlog
c:\users\poula\documents\travail\zz2\s3\aide décision\tp\tp2\oad-tp2\code\view\x64\debug\view.tlog\cl.write.1.tlog
c:\users\poula\documents\travail\zz2\s3\aide décision\tp\tp2\oad-tp2\code\view\x64\debug\view.tlog\link.17576-cvtres.read.1.tlog
c:\users\poula\documents\travail\zz2\s3\aide décision\tp\tp2\oad-tp2\code\view\x64\debug\view.tlog\link.17576-cvtres.write.1.tlog
c:\users\poula\documents\travail\zz2\s3\aide décision\tp\tp2\oad-tp2\code\view\x64\debug\view.tlog\link.17576-rc.read.1.tlog
c:\users\poula\documents\travail\zz2\s3\aide décision\tp\tp2\oad-tp2\code\view\x64\debug\view.tlog\link.17576-rc.write.1.tlog
c:\users\poula\documents\travail\zz2\s3\aide décision\tp\tp2\oad-tp2\code\view\x64\debug\view.tlog\link.17576.read.1.tlog
c:\users\poula\documents\travail\zz2\s3\aide décision\tp\tp2\oad-tp2\code\view\x64\debug\view.tlog\link.17576.write.1.tlog
c:\users\poula\documents\travail\zz2\s3\aide décision\tp\tp2\oad-tp2\code\view\x64\debug\view.tlog\link.20000-cvtres.read.1.tlog
c:\users\poula\documents\travail\zz2\s3\aide décision\tp\tp2\oad-tp2\code\view\x64\debug\view.tlog\link.20000-cvtres.write.1.tlog
c:\users\poula\documents\travail\zz2\s3\aide décision\tp\tp2\oad-tp2\code\view\x64\debug\view.tlog\link.20000-rc.read.1.tlog
c:\users\poula\documents\travail\zz2\s3\aide décision\tp\tp2\oad-tp2\code\view\x64\debug\view.tlog\link.20000-rc.write.1.tlog
c:\users\poula\documents\travail\zz2\s3\aide décision\tp\tp2\oad-tp2\code\view\x64\debug\view.tlog\link.20000.read.1.tlog
c:\users\poula\documents\travail\zz2\s3\aide décision\tp\tp2\oad-tp2\code\view\x64\debug\view.tlog\link.20000.write.1.tlog
c:\users\poula\documents\travail\zz2\s3\aide décision\tp\tp2\oad-tp2\code\view\x64\debug\view.tlog\link.21424-cvtres.read.1.tlog
c:\users\poula\documents\travail\zz2\s3\aide décision\tp\tp2\oad-tp2\code\view\x64\debug\view.tlog\link.21424-cvtres.write.1.tlog
c:\users\poula\documents\travail\zz2\s3\aide décision\tp\tp2\oad-tp2\code\view\x64\debug\view.tlog\link.21424-rc.read.1.tlog
c:\users\poula\documents\travail\zz2\s3\aide décision\tp\tp2\oad-tp2\code\view\x64\debug\view.tlog\link.21424-rc.write.1.tlog
c:\users\poula\documents\travail\zz2\s3\aide décision\tp\tp2\oad-tp2\code\view\x64\debug\view.tlog\link.21424.read.1.tlog
c:\users\poula\documents\travail\zz2\s3\aide décision\tp\tp2\oad-tp2\code\view\x64\debug\view.tlog\link.21424.write.1.tlog
c:\users\poula\documents\travail\zz2\s3\aide décision\tp\tp2\oad-tp2\code\view\x64\debug\view.tlog\link.23404-cvtres.read.1.tlog
c:\users\poula\documents\travail\zz2\s3\aide décision\tp\tp2\oad-tp2\code\view\x64\debug\view.tlog\link.23404-cvtres.write.1.tlog
c:\users\poula\documents\travail\zz2\s3\aide décision\tp\tp2\oad-tp2\code\view\x64\debug\view.tlog\link.23404-rc.read.1.tlog
c:\users\poula\documents\travail\zz2\s3\aide décision\tp\tp2\oad-tp2\code\view\x64\debug\view.tlog\link.23404-rc.write.1.tlog
c:\users\poula\documents\travail\zz2\s3\aide décision\tp\tp2\oad-tp2\code\view\x64\debug\view.tlog\link.23404.read.1.tlog
c:\users\poula\documents\travail\zz2\s3\aide décision\tp\tp2\oad-tp2\code\view\x64\debug\view.tlog\link.23404.write.1.tlog
c:\users\poula\documents\travail\zz2\s3\aide décision\tp\tp2\oad-tp2\code\view\x64\debug\view.tlog\link.7024-cvtres.read.1.tlog
c:\users\poula\documents\travail\zz2\s3\aide décision\tp\tp2\oad-tp2\code\view\x64\debug\view.tlog\link.7024-cvtres.write.1.tlog
c:\users\poula\documents\travail\zz2\s3\aide décision\tp\tp2\oad-tp2\code\view\x64\debug\view.tlog\link.7024-rc.read.1.tlog
c:\users\poula\documents\travail\zz2\s3\aide décision\tp\tp2\oad-tp2\code\view\x64\debug\view.tlog\link.7024-rc.write.1.tlog
c:\users\poula\documents\travail\zz2\s3\aide décision\tp\tp2\oad-tp2\code\view\x64\debug\view.tlog\link.7024.read.1.tlog
c:\users\poula\documents\travail\zz2\s3\aide décision\tp\tp2\oad-tp2\code\view\x64\debug\view.tlog\link.7024.write.1.tlog
c:\users\poula\documents\travail\zz2\s3\aide décision\tp\tp2\oad-tp2\code\view\x64\debug\view.tlog\link.command.1.tlog
c:\users\poula\documents\travail\zz2\s3\aide décision\tp\tp2\oad-tp2\code\view\x64\debug\view.tlog\link.read.1.tlog
c:\users\poula\documents\travail\zz2\s3\aide décision\tp\tp2\oad-tp2\code\view\x64\debug\view.tlog\link.write.1.tlog
c:\users\poula\documents\travail\zz2\s3\aide décision\tp\tp2\oad-tp2\code\view\x64\debug\view.tlog\metagen.read.1.tlog
c:\users\poula\documents\travail\zz2\s3\aide décision\tp\tp2\oad-tp2\code\view\x64\debug\view.tlog\metagen.write.1.tlog
c:\users\poula\documents\travail\zz2\s3\aide décision\tp\tp2\oad-tp2\code\view\x64\debug\view.tlog\view.write.1u.tlog
c:\users\poula\downloads\oad-tp2\code\view\x64\debug\view.mainform.resources
c:\users\poula\downloads\oad-tp2\code\view\x64\debug\view.tlog\cl.command.1.tlog
c:\users\poula\downloads\oad-tp2\code\view\x64\debug\view.tlog\cl.read.1.tlog
c:\users\poula\downloads\oad-tp2\code\view\x64\debug\view.tlog\cl.write.1.tlog
c:\users\poula\downloads\oad-tp2\code\view\x64\debug\view.tlog\link.command.1.tlog
c:\users\poula\downloads\oad-tp2\code\view\x64\debug\view.tlog\link.read.1.tlog
c:\users\poula\downloads\oad-tp2\code\view\x64\debug\view.tlog\link.write.1.tlog
c:\users\poula\downloads\oad-tp2\code\view\x64\debug\view.tlog\metagen.read.1.tlog
c:\users\poula\downloads\oad-tp2\code\view\x64\debug\view.tlog\metagen.write.1.tlog
c:\users\poula\downloads\oad-tp2\code\view\x64\debug\view.tlog\view.write.1u.tlog
 View.vcxproj -> C:\Users\poula\Downloads\oad-tp2\Code\x64\Debug\View.exe
 bierwirthManager.cpp
C:\Users\poula\Downloads\oad-tp2\Code\View\utils.h(15,2): warning C4091: 'static ': ignored on left of 'utils' when no variable is declared
Entry.cpp
gestion_graphe.cpp
MainForm.cpp
C:\Users\poula\Downloads\oad-tp2\Code\View\utils.h(15,2): warning C4091: 'static ': ignored on left of 'utils' when no variable is declared
C:\Users\poula\Downloads\oad-tp2\Code\View\MainForm.cpp(514,20): warning C4477: 'sprintf' : format string '%d' requires an argument of type 'int', but variadic argument 1 has type 'time_t'
C:\Users\poula\Downloads\oad-tp2\Code\View\MainForm.cpp(514,20): message : consider using '%lld' in the format string
C:\Users\poula\Downloads\oad-tp2\Code\View\MainForm.cpp(514,20): message : consider using '%Id' in the format string
C:\Users\poula\Downloads\oad-tp2\Code\View\MainForm.cpp(514,20): message : consider using '%I64d' in the format string
C:\Users\poula\Downloads\oad-tp2\Code\View\MainForm.cpp(514,2): warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
solution.cpp
utils.cpp
C:\Users\poula\Downloads\oad-tp2\Code\View\utils.h(15,2): warning C4091: 'static ': ignored on left of 'utils' when no variable is declared
.NETFramework,Version=v4.7.2.AssemblyAttributes.cpp
Generating Code...
C:\Users\poula\Downloads\oad-tp2\Code\View\bierwirthManager.cpp(67): warning C4715: 'bierwirthManager::prToIndex': not all control paths return a value
bierwirthManager.obj : MSIL module encountered; incremental linking is disabled for MSIL; performing full link
View.vcxproj -> C:\Users\poula\Downloads\oad-tp2\Code\x64\Debug\View.exe
File suppressed by a .gitattributes entry or the file's encoding is unsupported.
File suppressed by a .gitattributes entry or the file's encoding is unsupported.
File suppressed by a .gitattributes entry or the file's encoding is unsupported.
File suppressed by a .gitattributes entry or the file's encoding is unsupported.
C:\Users\poula\Downloads\oad-tp2\Code\View\x64\Debug\View.vcxproj.AssemblyReference.cache
C:\Users\poula\Downloads\oad-tp2\Code\View\x64\Debug\View.MainForm.resources
C:\Users\poula\Downloads\oad-tp2\Code\View\x64\Debug\View.vcxproj.GenerateResource.cache
C:\Users\poula\Documents\Travail\ZZ2\S3\Aide Décision\TP\TP2\oad-tp2\Code\View\x64\Debug\View.vcxproj.AssemblyReference.cache
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment