4340: Integrate LRDE code writting rules in the HelloMilena code.

* green/HelloMilena/Makefile.am : Remove Makefile. * green/HelloMilena/HelloMilena.cc : Remove source. * green/HelloMilena : Remove directory. * green/hello_milena : New directory. * green/hello_milena/Makefile.am : New Makefile. * green/hello_milena/hello_milena.cc : New source. --- trunk/milena/sandbox/ChangeLog | 28 +++++++++++++++----- .../{HelloMilena => hello_milena}/Makefile.am | 0 .../hello_milena.cc} | 21 ++++++++------- 3 files changed, 32 insertions(+), 17 deletions(-) rename trunk/milena/sandbox/green/{HelloMilena => hello_milena}/Makefile.am (100%) rename trunk/milena/sandbox/green/{HelloMilena/HelloMilena.cc => hello_milena/hello_milena.cc} (79%) diff --git a/trunk/milena/sandbox/ChangeLog b/trunk/milena/sandbox/ChangeLog index baf6b54..329e303 100644 --- a/trunk/milena/sandbox/ChangeLog +++ b/trunk/milena/sandbox/ChangeLog @@ -1,14 +1,28 @@ 2009-08-04 Yann Jacquelet <jacquelet@lrde.epita.fr> - Integrate LRDE code writting rules in my learning programs. + Integrate LRDE code writting rules in the HelloMilena code. - * green/Otsu/Makefile.am : Remove Makefile. - * green/Otsu/Otsu.cc : Remove source. - * green/Otsu : Remove directory. + * green/HelloMilena/Makefile.am : Remove Makefile. + * green/HelloMilena/HelloMilena.cc : Remove source. + * green/HelloMilena : Remove directory. + + * green/hello_milena : New directory. + * green/hello_milena/Makefile.am : New Makefile. + * green/hello_milena/hello_milena.cc : New source. - * green/otsu : New directory. - * green/otsu/Makefile.am : New Makefile. - * green/otsu/otsu.cc : New source (substituate float by double). +2009-08-04 Yann Jacquelet <jacquelet@lrde.epita.fr> + + Integrate LRDE code writting rules in the HelloWorld code. + + * green/HelloWorld/Makefile.am : Remove Makefile. + * green/HelloWorld/HelloWorld.cc : Remove source. + * green/HelloWorld/Print.cc : Remove source. + * green/HelloWorld : Remove directory. + + * green/hello_world : New directory. + * green/hello_world/Makefile.am : New Makefile. + * green/hello_world/hello_world.cc : New source. + * green/hello_world/print.cc : New source. 2009-08-04 Yann Jacquelet <jacquelet@lrde.epita.fr> diff --git a/trunk/milena/sandbox/green/HelloMilena/Makefile.am b/trunk/milena/sandbox/green/hello_milena/Makefile.am similarity index 100% rename from trunk/milena/sandbox/green/HelloMilena/Makefile.am rename to trunk/milena/sandbox/green/hello_milena/Makefile.am diff --git a/trunk/milena/sandbox/green/HelloMilena/HelloMilena.cc b/trunk/milena/sandbox/green/hello_milena/hello_milena.cc similarity index 79% rename from trunk/milena/sandbox/green/HelloMilena/HelloMilena.cc rename to trunk/milena/sandbox/green/hello_milena/hello_milena.cc index 0a8eb61..b319929 100644 --- a/trunk/milena/sandbox/green/HelloMilena/HelloMilena.cc +++ b/trunk/milena/sandbox/green/hello_milena/hello_milena.cc @@ -14,17 +14,17 @@ int main() // Définition de HelloWorld sous forme binaire bool vals [13][21] = {{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, - {0, 1, 0, 1, 0, 1, 1, 1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0}, + {0, 1, 0, 1, 0, 1, 1, 1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0}, {0, 1, 0, 1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0}, - {0, 1, 1, 1, 0, 1, 1, 1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0}, + {0, 1, 1, 1, 0, 1, 1, 1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0}, {0, 1, 0, 1, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0}, - {0, 1, 0, 1, 0, 1, 1, 1, 0, 1, 1, 1, 0, 1, 1, 1, 0, 0, 1, 0, 0}, - {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, - {0, 1, 0, 1, 0, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 0, 0, 1, 1, 0, 0}, - {0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 0, 0, 1, 0, 1, 0}, - {0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 1, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0}, - {0, 1, 1, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 0, 0, 1, 0, 1, 0}, - {0, 1, 0, 1, 0, 0, 1, 0, 0, 1, 0, 1, 0, 1, 1, 1, 0, 1, 1, 0, 0}, + {0, 1, 0, 1, 0, 1, 1, 1, 0, 1, 1, 1, 0, 1, 1, 1, 0, 0, 1, 0, 0}, + {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, + {0, 1, 0, 1, 0, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 0, 0, 1, 1, 0, 0}, + {0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 0, 0, 1, 0, 1, 0}, + {0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 1, 0, 0, 1, 0, 0, 0, 1, 0, 1, 0}, + {0, 1, 1, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 0, 0, 1, 0, 1, 0}, + {0, 1, 0, 1, 0, 0, 1, 0, 0, 1, 0, 1, 0, 1, 1, 1, 0, 1, 1, 0, 0}, {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}}; // Initialiser l'image avec sa définition @@ -33,7 +33,8 @@ int main() // Imprimer l'image en mode texte sur la console debug::println(img); - // Sauver l'image en pbm, l'afficher hors programme avec "display HelloWorld.pbm" + // Sauver l'image en pbm, + //l'afficher hors programme avec "display HelloWorld.pbm" io::pbm::save(img, "./HelloWorld.pbm"); return 0; -- 1.5.6.5
participants (1)
-
Yann Jacquelet