130 if (pARCNouvelleListe == NULL) {
131 throw(
CException(CSOMMET_Alloc_Echouee,
"CSommet::SOMAjouterArcArrivant(unsigned int uDestination) : Erreur d'allocation/réallocation.\n"));
155 if (pARCNouvelleListe == NULL) {
156 throw(
CException(CSOMMET_Alloc_Echouee,
"CSommet::SOMRetirerArcArrivant(unsigned int uDestination) : Erreur d'allocation.\n"));
160 for (
unsigned uBoucle = 0, uCounter = 0; uBoucle <
uSOMTailleListeA; uBoucle++) {
169 delete pARCNouvelleListe[uCounter];
191 unsigned int uBoucle;
219 char sExceptionMessage[255];
220 sprintf_s(sExceptionMessage, 255,
"CSommet::SOMLireListeA(unsigned int uPos) : Impossible de lire l'arc d'arrivee %d.\n", uPos);
221 throw CException(CSOMMET_Lecture_Impossible, sExceptionMessage);
244 if (pARCNouvelleListe == NULL) {
245 throw(
CException(CSOMMET_Alloc_Echouee,
"CSommet::SOMAjouterArcSortant(unsigned int uDestination) : Erreur d'allocation/réallocation.\n"));
270 if (pARCNouvelleListe == NULL) {
271 throw(
CException(CSOMMET_Alloc_Echouee,
"CSommet::SOMRetirerArcSortant(unsigned int uDestination) : Erreur d'allocation.\n"));
275 for (
unsigned uBoucle = 0, uCounter = 0; uBoucle <
uSOMTailleListeS; uBoucle++) {
284 delete pARCNouvelleListe[uCounter];
305 unsigned int uBoucle;
330 char sExceptionMessage[255];
331 sprintf_s(sExceptionMessage, 255,
"CSommet::SOMLireListeS(unsigned int uPos) : Impossible de lire l'arc de sortie %d.\n", uPos);
332 throw CException(CSOMMET_Lecture_Impossible, sExceptionMessage);
347 unsigned int uBoucle;
348 unsigned int uValeurTeste = 0;
351 for (uBoucle = 0; uBoucle < SOMParam.
uSOMTailleListeA && uValeurTeste == 0; uBoucle++) {
362 for (uBoucle = 0; uBoucle <
uSOMTailleListeS && uValeurTeste == 1; uBoucle++) {
370 if (uValeurTeste == 2) {
406 unsigned int uBoucle;
407 std::cout <<
"L'ID du sommet est : " <<
uSOMId << std::endl;
409 std::cout <<
"La liste des arcs arrivants est :" << std::endl;
417 if (uBoucle % 3 != 0){
418 std::cout << std::endl;
421 std::cout <<
"La liste des arcs sortants est :" << std::endl;
429 if (uBoucle % 3 != 0){
430 std::cout << std::endl;
432 std::cout << std::endl;
446 if (
this != &SOMParam) {
455 throw(
CException(CSOMMET_Alloc_Echouee,
"CSommet::operator=(const CSommet & SOMParam) : Erreur d'allocation/réallocation.\n"));
458 unsigned int uBoucle;