All Questions

3
answers

Print the Javascript indexOf

I'm trying to do a kind of filter of an array in JavaScript by means of an html checkbox, when it is checked look for the indexes that start with "Motorola", the subject is like that, find them but show them as -1 or 0, I'm stuck, I do not know...
asked on 20.02.2017 / 22:45
2
answers

noo I can declare the global variable

if I want to declare these global variables int D1=2; int D2 = D1-2; int main(int argc,char* argv[]) { } because the compiler sent me here int D2 = D1-2; ? says initializer const is not constant     
asked on 12.02.2017 / 03:33
2
answers

Recursive to iterative with bottom-up

This is my code of a recursive function written in an non-final form, I would like to pass it to iterative with a while, but I really can not do it, advice to do it with bottom-up? The abc method is a square root (x), and the number of iterati...
asked on 25.10.2016 / 16:40
1
answer

How to achieve the YouTube page load effect?

I am creating a web system, and I would like to get my pages loaded as youtube, or codigofacilito, the footer and the menu or other sections remain the same, they do not recharge, only the main part and the url changes, I would like to achieve t...
asked on 28.12.2016 / 04:02
3
answers

Search for a sequence from a list in another list

I'm trying to find a sequence from a list in another list. But I do not understand why my exit is "no". all: is not a solution because it returns true even if the elements are not in order set: is not a solution because I need the repe...
asked on 14.09.2017 / 14:04
3
answers

sort a list in python

I want to make a program where I ask the user names and he keeps them and orders them alphabetically. This is what I have now: names = input("What are the names? ") print(names) sorted_names = sorted(names) print(sorted_names) but whe...
asked on 17.10.2017 / 17:06
2
answers

Types listed c ++

The program tries that when entering a number from 0 to 6, it shows us the corresponding day of the week. However, it does not work due to the misuse of the listed types ( enum tElemento ). #include<iostream> #include<cstdlib>...
asked on 31.10.2017 / 13:35
3
answers

Change the Transperency of a Prefab in Unity

I have three cubes (one in front of another) in a Unity scene and I would like it when a condition is given, the first cube would come out semi-transparent so that the one from the back could be seen. I tried the following: cubo1.GetCompone...
asked on 17.10.2016 / 11:02
3
answers

How to create a List of setters and getters in python?

This is how it looks in java, I have to pass it to python and I have no idea how to do it. public List<Archivo> getArchivos() { return archivos; } public void setArchivos(List<Archivo> archivos) { this.a...
asked on 08.09.2017 / 14:00
4
answers

when wanting to create a receipt object "non-static variable this can not be referenced from a static context"

I have a program that should simulate a card game. The Deck class is responsible for creating the deck and shuffling it (Naipe object). When trying to create the object (only one will be created) I get the error of the title. This is my main...
asked on 22.03.2018 / 21:27