All Questions

3
answers

What is the difference between delete vs delete [] vs free (...)

I am learning C ++ and I find that there are different ways to free dynamic memory ( delete , delete[] , free(...) ) and I do not know what cases to use them, can someone get me out of this confusion? Thanks beforehand     
asked on 25.09.2018 / 00:40
3
answers

I can not "push" from Git

I want to send my code to my remote repository but I have a problem when doing push from my Git console. Once I have added all my income, my password https : git remote add origin https://github.com/... then it is necessary to d...
asked on 14.12.2017 / 05:45
4
answers

URL treatment to avoid errors

I would like to know if there is any function or method to evaluate when the user enters in the URL unwanted text or erroneous data that may "malfunction" the web. That is: if you delete any extension of the URL or insert unwanted characters,...
asked on 14.12.2017 / 10:51
3
answers

Subtract dates in js [duplicate]

Hi, I would like to know how I can subtract two date objects. I have a variable date of birth and I want to subtract the current day in order to get the years of difference ... var f = new Date(); var xf = (f.getDate() + "...
asked on 09.04.2018 / 21:28
3
answers

Simple problems with PHP arrays

to the point, I declared an empty array, in which I intend to save random integer values using a function and this is what I did, but when doing the count ($ array), I get 0 elements. Example: $numerosJ1 = array(); numerosJugadores($numeros...
asked on 23.09.2018 / 09:03
2
answers

Fill effect on image with Css Canvas or Svg

I need to know if there is any way to generate a "wave" filling effect ON A PNG IMAGE. It does not matter if it's with CSS, SVG, Canvas or some external javascript library. With a small example, they help me a lot. It would be something like...
asked on 30.10.2018 / 14:03
2
answers

Cube dice roll

I need a program that does the following: Toss two dice (between 1 and 6). If the value is the same, launch them again. Print the total number of boxes the player is advancing Next I have the code; however, I can not find a func...
asked on 17.04.2018 / 19:24
3
answers

Create TR table with automatic id Javascript

Hello, I have the following code: My idea is that when calling this function insert a row in a table and to operate on it put an id to the TR, which I generate with the variable counter, the problem is that I have assigned the id ... but it doe...
asked on 19.04.2018 / 11:27
3
answers

ignore syntax errors in javascript

Currently I have a code that works for all browsers except internet explorer. I would like to find a way to ignore this code when I'm on the internet explorer, that is, I will not be shown any errors. what I want is to enclose my code in a kind...
asked on 02.05.2018 / 17:50
2
answers

Split in Java, how to detect that there is no separator

I am separating a word in Java whose separator is a -, my problem comes in that sometimes it does not have - to separate and therefore it gives me an error, as I could previously detect that the separator does not exist. An example to be underst...
asked on 29.04.2018 / 00:46