Oppure

Loading
12/02/13 11:43
Nel secondo programma ti dice chiaramente che ti sei dimenticato #include "stdafx.h"
12/02/13 15:10
pierotofy
In Configuration Properties > C/C++ > Precompiled Headers, change Use Precompiled Header (/Yu) to Not Using Precompiled Headers.3


Questo e' settato?
Il mio blog: piero.dev
13/02/13 9:46
Alberto19890
Buongiorno ragazzi, vedendo un po' meglio le cose sono riuscito ad eliminare i warnings.

Rimane solo un errore...

1>c:\documents and settings\albi\documenti\visual studio 2008\projects\dijstra 2\dijstra 2\stdafx.h(11) : fatal error C1083: Cannot open include file: 'boost/config.hpp': No such file or directory

il problema è che ho inserito #include <boost/config.hpp> anche su stdafx.h... il problema è proprio li e non riesco a capire il perchè dell'errore...
aaa
13/02/13 15:43
il problema è <boost.....> siccome l' header è nel tuo progetto devi usare "" al posto di <> quindi #include "boost....."
13/02/13 17:20
pierotofy
No, devi controllare gli include. stackoverflow.com/questions/335408/…
Il mio blog: piero.dev
26/03/13 17:57
Alberto19890
Buona sera ragazzi, come state ? è passato un po' di tempo, ma per fortuna ho imparato a creare un grafo aggiungendo nodi e archi, segnando quale sia il vertice successivo ed il relativo peso.

Adesso, visto che la consegna della tesi è tra due settimane, chi mi potrebbe dare una dritta su questa seconda parte del programma?

The algorithm repeats all the following steps until no vertices are present in the unsatisfied list:
1) Remove some vertex v from the unsatisfied list
2) Examine edges entering v. If two edges with the form (u,v) are found, apply a parallel reduction to them. Continue examining edges entering v and applying parallel reductions until either (i) only one edge leaves v or (ii) v is found to have two distinct predecessors
3) Examine edges leaving v. If two edges sith the form (v,w) are found, apply a parallel reduction to them. Continue examining edges leaving v and applying parallel reduction until either (i) only one edge leaves v or (ii) v is found to have two distinct successors
4) If only one edge (u,v) now enters v and only one edge (v,w) leaves v, carry out the following steps:
a. Apply a series reduction to delete v and replace (u,v) and (v,w) by a new edge (u,w)
b. If u is not the source and not on the unsatisfied list, add it to the unsatisfied list
c. If w is not the sink and not on the unsatisfied list, add it to the unsatisfied list
When the unsatisfied list is empty, we test whether any vertices other than the source and the sink remain. It so, the multidigraph is not reducible to a single edge. If not, we complete the reduction to a single edge by applying parallel reduction to the edges joining the source and sink.

io vorrei creare la lista con dentro i miei vertici (cosa che ho già fatto), ma le operazioni segnate non riesco a trovare proprio il modo di farlo :(

chi mi darebbe una mano per favore??
aaa