diff options
author | Santo Cariotti <sancn@live.com> | 2017-04-27 15:26:45 +0200 |
---|---|---|
committer | Santo Cariotti <sancn@live.com> | 2017-04-27 15:26:45 +0200 |
commit | 0ac2603ae4c097e9c0e3915d96cc96387f186f19 (patch) | |
tree | 090bd09c191ae7249490374aa24351caf80305b6 /cpp/Es6.cpp | |
parent | 750b7dc56161470c91caf051add98cad4146bf30 (diff) |
Deleted files
Diffstat (limited to 'cpp/Es6.cpp')
-rw-r--r-- | cpp/Es6.cpp | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/cpp/Es6.cpp b/cpp/Es6.cpp deleted file mode 100644 index 9907eb9..0000000 --- a/cpp/Es6.cpp +++ /dev/null @@ -1,38 +0,0 @@ -#include <iostream>
-#include <algorithm>
-using namespace std;
-/* run this program using the console pauser or add your own getch, system("pause") or input loop */
-
-int main(int argc, char** argv) {
- int v=5;
- int matrice[v][v];
- for (int i=0;i<v;i++)
- {
- for (int j=0;j<v;j++)
- matrice[i][j]=9999;
- }
- for (int i=1;i<v;i++) matrice[i][i]=0;
- matrice[1][4]=5;
- matrice[1][2]=1;
- matrice[2][3]=2;
- matrice[3][1]=2;
- matrice[3][4]=1;
- matrice[4][1]=3;
- for (int h=1;h<v;h++)
- {
- for (int i=1;i<v;i++)
- {
- for (int j=1;j<v;j++)
- {
- matrice[i][j]=min(matrice[i][j],matrice[i][h]+matrice[h][j]);
- }
- }
- }
- for (int i=1;i<v;i++)
- {
- for (int j=1;j<v;j++)
- cout<<matrice[i][j]<<" ";
- cout<<endl;
- }
- return 0;
-}
|