DragonBound Forums
Conjuntos !! - Versión para impresión

+- DragonBound Forums (https://dragonbound-forums.com)
+-- Foro: General (/forumdisplay.php?fid=37)
+--- Foro: User vs User | Usuario vs Usuario (/forumdisplay.php?fid=67)
+--- Tema: Conjuntos !! (/showthread.php?tid=1947)

Páginas: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16


RE: Conjuntos !! - CyandeByte - 10-25-2016 08:37 PM

leerMatriz(matriz,fil,col);
for(i=0;i<fil;i++)
{
vec[i] = sumarFila(matriz,i,col);
}
for(j=0;j<col;j++)
{
vec[i] = sumarColumna(matriz,j,fil);
i++;
}
cout<<"RESULTADO"<<endl;
escribirMatriz(matriz,fil,col);
return 0; c++ i++;


RE: Conjuntos !! - Xpektros - 10-25-2016 08:37 PM

leerMatriz(matriz,fil,col);
for(i=0;i<fil;i++)
{
vec[i] = sumarFila(matriz,i,col);
}
for(j=0;j<col;j++)
{
vec[i] = sumarColumna(matriz,j,fil);c++,i++;
i++;
}
cout<<"RESULTADO"<<endl;
escribirMatriz(matriz,fil,col);
return 0;


RE: Conjuntos !! - CyandeByte - 10-25-2016 08:38 PM

leerMatriz(matriz,fil,col);
for(i=0;i<fil;i++)
{
vec[i] = sumarFila(matriz,i,col);
}
for(j=0;j<col;j++)
{
vec[i] = sumarColumna(matriz,j,fil);
i++;
}
cout<<"RESULTADO"<<endl;
escribirMatriz(matriz,fil,col);
return 0;uuuuuuu;


RE: Conjuntos !! - Xpektros - 10-25-2016 08:38 PM

leerMatriz(matriz,fil,col);
for(i=0;i<fil;i++)
{
vec[i] = sumarFila(matriz,i,col);
}
for(j=0;j<col;j++)
{
vec[i] = sumarColumna(matriz,j,fil);
i++;
}
cout<<"RESULTADO"<<endl;
escribirMatriz(matriz,fil,col);
return 0;ppppoo;


RE: Conjuntos !! - CyandeByte - 10-25-2016 08:40 PM

leerMatriz(matriz,fil,col);
for(i=0;i<fil;i++)
{
vec[i] = sumarFila(matriz,i,col);
}
for(j=0;j<col;j++)
{
vec[i] = sumarColumna(matriz,j,fil);
i++;
}
cout<<"RESULTADO"<<endl;
escribirMatriz(matriz,fil,col);
return 0;22222;


RE: Conjuntos !! - Xpektros - 10-25-2016 08:40 PM

leerMatriz(matriz,fil,col);
for(i=0;i<fil;i++)
{
vec[i] = sumarFila(matriz,i,col);
}
for(j=0;j<col;j++)
{
vec[i] = sumarColumna(matriz,j,fil);
i++;
}
cout<<"RESULTADO"<<endl;
escribirMatriz(matriz,fil,col);
return 0;4444;


RE: Conjuntos !! - CyandeByte - 10-25-2016 08:41 PM

you have to do is as follows: open up cmd. Now you will use the 'cd' command to go to the directory where your java source files are at. In this case, type cd desktop\TutorialDirectory\Tutorial1 to go to the folder you see on the picture. After you've done that, type prepjava and press enter, some stuff will show up. Now as you can see there is a file called Eanchecker.java which I am going to compile. In order to compile it, we are going to use the javac command to tell the machine we want to compile a file with a java extension. In our case, type this code in cmd:


RE: Conjuntos !! - Xpektros - 10-25-2016 08:41 PM

This tutorial was now just about setting up the materials you need in order to actually start writing your first program, which I will cover in the next tutorial. I hope you liked this one so far.


RE: Conjuntos !! - CyandeByte - 10-25-2016 08:45 PM

it looks fine to me and i don't see any obvious way to improve it but then again i don't know how their server is coded

the only way to know for sure is to run it and test it


RE: Conjuntos !! - Xpektros - 10-25-2016 08:45 PM

you're asking for coding advice on a server where we can hardly find a decent coder to do anything



ok!!!