Click here to Skip to main content
15,899,314 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
AnswerRe: How to solve the problem with a simple algorithm? Pin
Greg Utas26-Mar-20 0:33
professionalGreg Utas26-Mar-20 0:33 
AnswerRe: How to solve the problem with a simple algorithm? Pin
CPallini26-Mar-20 21:12
mveCPallini26-Mar-20 21:12 
GeneralRe: How to solve the problem with a simple algorithm? Pin
Stefan_Lang26-Mar-20 22:52
Stefan_Lang26-Mar-20 22:52 
PraiseRe: How to solve the problem with a simple algorithm? Pin
CPallini26-Mar-20 23:16
mveCPallini26-Mar-20 23:16 
AnswerRe: How to solve the problem with a simple algorithm? Pin
Stefan_Lang26-Mar-20 22:47
Stefan_Lang26-Mar-20 22:47 
Questionplz ans this program Pin
Member 1477930521-Mar-20 16:53
Member 1477930521-Mar-20 16:53 
AnswerRe: plz ans this program Pin
Richard MacCutchan21-Mar-20 21:51
mveRichard MacCutchan21-Mar-20 21:51 
AnswerRe: plz ans this program Pin
Victor Nijegorodov22-Mar-20 0:42
Victor Nijegorodov22-Mar-20 0:42 
QuestionRe: plz ans this program Pin
David Crow23-Mar-20 2:39
David Crow23-Mar-20 2:39 
QuestionBaffling Error! Pin
Richard Andrew x6421-Mar-20 11:11
professionalRichard Andrew x6421-Mar-20 11:11 
AnswerRe: Baffling Error! Pin
leon de boer21-Mar-20 19:11
leon de boer21-Mar-20 19:11 
AnswerRe: Baffling Error! Pin
Randor 22-Mar-20 3:20
professional Randor 22-Mar-20 3:20 
GeneralRe: Baffling Error! Pin
Richard Andrew x6422-Mar-20 4:40
professionalRichard Andrew x6422-Mar-20 4:40 
QuestionHow to make flowchart for matrix on C language? Pin
Member 1477750619-Mar-20 8:39
Member 1477750619-Mar-20 8:39 
Hi everyone, I have such a task: "Given an integer square matrix. Determine the minimum among the sums of diagonal elements parallel to the main diagonal of the matrix." I have a code but I have problems compiling a flowchart for it, can you help me with compiling a flowchart or give tips? thanks in advance

thats my code:

#include <stdio.h>
 #include <stdlib.h>
 #include <time.h>
 #define N_MIN -3
 #define N_MAX 5
 int main(int argc, char *argv[]){
 int s,i,j,k,l,s1,t2,t1; 
 int a[5][5];
 srand(time(NULL));
 for(i=0;i<5;i++){
 for(j=0;j<5;j++){
 a[i][j]=rand()%(N_MAX-N_MIN+1)+N_MIN;
 }
 }
    for(i=0;i<5;i++){
    for(j=0;j<5;j++){
    printf("%3d ",a[i][j]);
 }
    printf("\n");
 }
    k=0;
    s=0;
    l=0;
    for (i=0; i<5; i++){
    for (j=0; j<5; j++){
    if (a[i][j]>=0){
    if(a[i][j]%2==0)
    l+=a[i][j];
    k++;
 }
 }
    if (k==5){
    l=l;
 }
    else {
 l=0;
 }
    s=s+l;
    k=0; 
 }
    s1=a[0][5-1];
    for(i=1; i<5; i++){
    t1=t2=0;
    for(j=0; j<5-i; j++){
    t1+=a[i+j][j];
    t2+=a[j][i+j];
 }
    if(t1<s1) s1=t1;
    if(t2<s1) s1=t2;
 }
    printf("vivod %d %d\n", s,s1);
    return 0;
 }

AnswerRe: How to make flowchart for matrix on C language? Pin
jeron119-Mar-20 11:10
jeron119-Mar-20 11:10 
AnswerRe: How to make flowchart for matrix on C language? Pin
leon de boer19-Mar-20 15:09
leon de boer19-Mar-20 15:09 

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.