Questions tagged as 'arreglos'

3
answers

C ++ random number generator

The problem is the following I have my code in which it generates 10 random numbers in an array, then shows them and then orders them, what I want is that when I re-execute the "fill" function that is the that generates the numbers an arrangemen...
asked by 25.09.2017 / 20:31
1
answer

Search for item appearances in fix

The program must ask for the notes of the number of students entered by the user, which can be only between 0 and 10. It must be said how many 0, 5 and 10 have appeared. The entered notes that are not 0, 5 or 10 must also be said. The program...
asked by 01.10.2017 / 12:56
1
answer

check the existence of several files in javascript

The following SCRIPT checks the existence of files whose names are in an Array, if there is no file it shows a warning The output is made through a table. var table = document.getElementById('dataTable'); var pagina = ['pepito.html', 'I...
asked by 28.07.2017 / 21:19
1
answer

In operations on an array, it shows an incorrect result after the first row of the array

Why when calling the functions that multiply and divide each of the elements of the rows of an array, it only shows me the first multiplication of the first row of the array, and the other results show them as equal to zero? #include <stdio...
asked by 21.12.2016 / 03:33
1
answer

Characters with tilde in a char type arrangement

I have this code: include <stdio.h> define TAM 64 int main(int argc, const char **argv) { char cadena[TAM] = {0}; while (fgets(cadena, sizeof(cadena), stdin) != NULL) printf("%s\n", cadena); } When I run it in the...
asked by 19.10.2017 / 17:42
2
answers

Error fixing objects in java

I have a question about this error (I'm starting with java):    Exception in thread "main" java.lang.RuntimeException: Uncompilable   source code - Erroneous tree type: principal.Patent at   principal.Principal.main (Principal.java.20)   C: \...
asked by 28.09.2017 / 01:44
2
answers

Stacks with fixes in c ++

I need to make a code that meets these conditions: I already made the program using linked lists: #include<iostream> using namespace std; struct nodo{ int dato; nodo *sig=NULL; }; void apilar(nodo *&inicio,int x);...
asked by 24.07.2017 / 19:27
3
answers

How to invest multidimensional arrays in java?

I need to invert the values of an array, where if for example I get    1 5 2 4 1 5 9 4 6 See me like this,    9 4 6 4 1 5 1 5 2 This is my method, it prints certain values in 0, I need to see what it can be are 2 vectors,...
asked by 25.10.2017 / 04:39
1
answer

I have a doubt that in the airplane class create an arrangement that has maximum capacity passengers being different classes [closed]

Avion public class Avion{ private int matricula; private String modelo; private String marca; public Avion(){ } public Avion(int matricula, String modelo, String marca ){ this.matricula=matricula; this.modelo=modelo; this.marc...
asked by 09.10.2017 / 03:15
1
answer

Delete repeated item entered by user

I'm recently watching C programming and we started with the fixes, there is an exercise where I have an N-size array with repeated numbers (entered by the user), what I'm asked to do is that the user enter a number and verify in the fix if it is...
asked by 26.05.2017 / 21:32