All Questions

3
answers

Convert a float or an integer to string in c ++

I wanted to know a simple way to convert a variable float or int in data type string in C++ . Because look in several places and talk about using sprintf , from the library stdio.h but it does not work w...
asked on 21.04.2018 / 14:36
2
answers

How to know in Python if the elements in a list are different?

I want to know how I can do to verify that the elements of a list are all different (none repeated). Ex: lista=[1,-1,1,3,9,5] codigo_verificador() Exit: True # Hay un elemento repetido How can I know that there are repeated elements...
asked on 13.10.2018 / 01:02
2
answers

Make a GET request with fetch

Hello recently I am learning to use fetch I found on the internet an api which offers me a random user service now I have been trying to make a simple request where I only return a JSON that contains female users, and from a specific country lik...
asked on 06.10.2018 / 02:41
2
answers

Adjust the date using Calendar. AM-PM error

I want to create a Calendar object, but how can I take a given hour and minutes and adjust the date? Calendar c = Calendar.getInstance(); c.set(Calendar.HOUR,hora); //valores tomados de un TimePickerDialog c.set(Calendar.MINUTE,minutos); //val...
asked on 30.03.2018 / 22:57
2
answers

Can a timestamp format be done?

// $timestamp = ""; $datetimeFormat = 'YmdHis'; $date = new DateTime('now'); // $date->setTimestamp($timestamp); echo $date->format($datetimeFormat); The result of that code is: 20180411131121     
asked on 11.04.2018 / 11:12
2
answers

Validation of PHP fields

I already have my index in which I log in with username and password, the question is that when giving blank space in both fields allows entering the menu, some sentence in script or php to validate and prevent this happen? form code: <c...
asked on 19.04.2018 / 15:40
2
answers

Add integers of an array in python

This is a simple question but I have not found any post related to this topic. matriz=[[1,2,3],[4,5,6][7,8,9]] I would like to add all the grids of this matrix to each other (1 + 2 + 3 + 4 + 5 + 6 + 7 + 8 + 9) so that I returned 45 in a new...
asked on 23.05.2018 / 21:43
1
answer

for loop initial declarations are only allowed in c99 or c11 mode

How do I resolve the following error?    [Error] 'for' loop initial declarations are only allowed in C99 or C11 mode (I use the C compiler: Dev ++ ).     
asked on 27.05.2017 / 21:45
1
answer

System.Data.SqlClient.SqlException: 'Incorrect syntax near the keyword' OF '.'

Again I requesting your collaboration I have a problem which I have been analyzing without finding the error it generates the following error System.Data.SqlClient.SqlException: 'Incorrect syntax near the keyword' OF '.' Already verify in the...
asked on 01.06.2018 / 13:50
1
answer

Export html to word

Hello, I am trying to export certain HTML elements to word to generate a report and the user to download the document. After doing some research and seeing the same question in The English forum I found with this answer:    just keep follow...
asked on 25.04.2017 / 06:43