All Questions

1
answer

Hide message source in browser inspector

Is there a way to hide the route shown to the right of the JS console when a message is generated? Let me explain, for example, when you generate a console.log(""); it tells you that the Virtual Machine generated it, well, that route...
asked on 03.02.2017 / 18:30
3
answers

operators &, * in c ++ and its use in classes

In the method within the object class ... what is the difference between int getEdad(){ return edad; } int& getEdad(){ return edad; } int* getEdad(){ return &edad; } Any more detailed course or explanation of pointers...
asked on 18.12.2016 / 22:50
1
answer

How can I know which radio button is selected using Jquery?

I have two radio buttons and I want to show the value on the screen. How can you get the value with JQuery? I can get all the elements like this: $("form :radio") How can I know which one is selected?     
asked on 14.09.2017 / 02:48
2
answers

Color changes with JavaScript

Hi, I'm learning JavaScript and I have a problem with the following exercise within my html I have my ID which have the name red and blue colors. and within my JS I have my next line of code. const redButton = document.get...
asked on 12.01.2017 / 01:44
1
answer

How to create select for each element in an associative array that I receive as a response to an ajax post

I am working on a website with CodeIgniter, I need to create a select for each element I receive in an array or json. I do not know which is the best option as a response to a post I do with ajax. The problem I have is that I receive an array li...
asked on 05.10.2016 / 16:18
2
answers

Problem with header () in PHP

I have this warning:    Warning: Can not modify header information - headers already sent I do not know what may be wrong with header. This is my code: <!DOCTYPE html> <!-- * * @author Zarate --> <?php in...
asked on 08.01.2018 / 03:06
1
answer

List the folders of a route (get subdirectories)

What I'm looking for is to make an array that contains only the names of folders (directories) of a given route. I tried scandir (): $scan = scandir(realpath(__dir__)); for ($i = 0; $i < count($scan); $i++) { if (is_file(dirname(__fi...
asked on 12.02.2018 / 23:44
2
answers

Convert "if (isset ())" to the conditional "? : "(Ternary operator)

I have this code: if (isset($array[$a]['estado'])) { echo "True"; } else { echo "False"; } I want to know if I can pass it to the conditional format ? :     
asked on 16.11.2016 / 10:50
1
answer

Reserve memory in array of strings in c

Good afternoon, I want to create in c an array of strings, where each string has 1024 characters, for this I have a variable N where it tells me the number of strings I have, I'm trying it in the following way: char *frases[1024] = (char *) ma...
asked on 17.12.2017 / 17:12
2
answers

Problem with decimals in Java

I'm doing small problems like practice for the course I'm following from Java. I want when I enter two results, such as: 50,000 and 20,000 the result you get is 30,000 and not 30.0 On the contrary when I write 50,000 and 42,521 the resu...
asked on 19.12.2018 / 00:10