Click here to Skip to main content
15,911,890 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Passing an array as argument to a function Pin
Richard MacCutchan31-Mar-20 23:02
mveRichard MacCutchan31-Mar-20 23:02 
GeneralRe: Passing an array as argument to a function Pin
Calin Negru31-Mar-20 23:26
Calin Negru31-Mar-20 23:26 
GeneralRe: Passing an array as argument to a function Pin
Richard MacCutchan1-Apr-20 0:36
mveRichard MacCutchan1-Apr-20 0:36 
GeneralRe: Passing an array as argument to a function Pin
Calin Negru1-Apr-20 1:12
Calin Negru1-Apr-20 1:12 
GeneralRe: Passing an array as argument to a function Pin
Richard MacCutchan1-Apr-20 1:26
mveRichard MacCutchan1-Apr-20 1:26 
GeneralRe: Passing an array as argument to a function Pin
Calin Negru1-Apr-20 1:49
Calin Negru1-Apr-20 1:49 
GeneralRe: Passing an array as argument to a function Pin
Richard MacCutchan1-Apr-20 2:45
mveRichard MacCutchan1-Apr-20 2:45 
GeneralRe: Passing an array as argument to a function Pin
Calin Negru1-Apr-20 5:19
Calin Negru1-Apr-20 5:19 
GeneralRe: Passing an array as argument to a function Pin
Richard MacCutchan1-Apr-20 6:39
mveRichard MacCutchan1-Apr-20 6:39 
GeneralRe: Passing an array as argument to a function Pin
Calin Negru31-Mar-20 4:42
Calin Negru31-Mar-20 4:42 
GeneralRe: Passing an array as argument to a function Pin
Richard MacCutchan31-Mar-20 4:58
mveRichard MacCutchan31-Mar-20 4:58 
GeneralRe: Passing an array as argument to a function Pin
Calin Negru31-Mar-20 5:28
Calin Negru31-Mar-20 5:28 
AnswerRe: Passing an array as argument to a function Pin
Stefan_Lang30-Mar-20 23:18
Stefan_Lang30-Mar-20 23:18 
GeneralRe: Passing an array as argument to a function Pin
Calin Negru31-Mar-20 0:02
Calin Negru31-Mar-20 0:02 
AnswerRe: Passing an array as argument to a function Pin
Calin Negru11-Apr-20 5:13
Calin Negru11-Apr-20 5:13 
GeneralRe: Passing an array as argument to a function Pin
kalberts11-Apr-20 8:19
kalberts11-Apr-20 8:19 
QuestionError in BSTR TagVariant After project Migration from VS2010 to VS2017 Pin
Member 1326109427-Mar-20 2:19
Member 1326109427-Mar-20 2:19 
AnswerRe: Error in BSTR TagVariant After project Migration from VS2010 to VS2017 Pin
Victor Nijegorodov27-Mar-20 2:39
Victor Nijegorodov27-Mar-20 2:39 
QuestionRe: Error in BSTR TagVariant After project Migration from VS2010 to VS2017 Pin
CPallini27-Mar-20 3:38
mveCPallini27-Mar-20 3:38 
Questionfatal error LNK1104: cannot open file 'errorStruct.lib' Getting error while compiling application Pin
Member 1326109427-Mar-20 2:12
Member 1326109427-Mar-20 2:12 
SuggestionRe: fatal error LNK1104: cannot open file 'errorStruct.lib' Getting error while compiling application Pin
Richard MacCutchan27-Mar-20 3:03
mveRichard MacCutchan27-Mar-20 3:03 
Questionimplicitly deleted because a base class invokes a deleted or inaccessible function 'CDialog::CDialog(const CDialog &)' Pin
Member 1326109426-Mar-20 22:15
Member 1326109426-Mar-20 22:15 
AnswerRe: implicitly deleted because a base class invokes a deleted or inaccessible function 'CDialog::CDialog(const CDialog &)' Pin
Stephane Capo26-Mar-20 22:50
professionalStephane Capo26-Mar-20 22:50 
GeneralRe: implicitly deleted because a base class invokes a deleted or inaccessible function 'CDialog::CDialog(const CDialog &)' Pin
Member 1326109426-Mar-20 23:26
Member 1326109426-Mar-20 23:26 
QuestionHow to solve the problem with a simple algorithm? Pin
tianzhili439925-Mar-20 23:25
tianzhili439925-Mar-20 23:25 
There are a total of P levels. For any level p, there are Jp nodes. Any two nodes on the same level are not connected. And the unidirectional path weight between any two nodes Ai and Bj is D(i,j).
What is the shortest distance required from the first layer to the Pth layer?
(** Note that P is generally large and it is not recommended to traverse all possible situations **)
If this problem is abstracted as a graph, then what is actually required is the shortest path from the first layer to the last layer of a fully connected network.

What I have tried:
Use deep search, Dijkstra algorithm, Floydw algorithm, etc. to search the shortest path from all J1 nodes in the first layer to the last layer in turn, and select the minimum value from the J1 values.
What I want to know is if there is a simpler algorithm to solve this problem?

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.