All Questions

2
answers

Load string in DataGridView

I create a DataGridView with a CheckBox column to be able to mark one or another row. As data source of the DataGridView I pass a list of strings. When I passed the list, I expected to obtain a datagridview that showed me as the first column,...
asked on 30.01.2018 / 12:19
2
answers

Overloading an external operator

I am overloading the operator + externally. It is obvious that if I put: Fraccion operator+ (const Fraccion& r1, const Fraccion& r2) { Fraccion res; res.numerador = r1.obtenerNum() + r2.obtenerNum(); res.denominador = r1.obtener...
asked on 27.03.2018 / 12:34
2
answers

Read certain elements in a string

Let's say that I have this string a='12345&&&4554444' as I do to read only the numbers of that string without having to do it with a cycle since the only way I know is going through the list. variable=str('') for i in a:...
asked on 17.03.2018 / 18:33
3
answers

Is memory freed by assigning null?

I have this code clase MiObjeto = new clase("Nombre1"); MiObjeto = null; Did I free space in Name1 memory by assigning it the null value?     
asked on 30.01.2018 / 19:01
1
answer

Get Object Array String

I have this array that I add objects to: waypts.push({location: location.lat() + "," + location.lng()}); How can I get the literal value it saves? With Object.value and valueOf do not do what I intend     
asked on 05.04.2018 / 11:55
2
answers

Show value of a struct

I'm having a problem that is probably silly but I do not understand why it does not work despite its simplicity. Having a struct composed of the components of a vector in 3D, I only wanted to show one of them after I typed it and yet i...
asked on 23.01.2018 / 13:46
2
answers

SQL statement to find a last record per customer by date

I am trying to create a statement that returns a field from a date, but under a certain condition. First of all I have a table with several fields, among which I am interested in the following image: What I need is for you to return...
asked on 05.03.2018 / 15:55
1
answer

How can I print the student with the highest grade and the student with the lowest grade of this JSON?

I need help in this exercise and I need to print the name of the student with the highest grade, and the student with the lowest grade of the next JSON: /* est == estudiantes, 5.0 == Nota Maxima, 0.0 == Nota Minima */ var est = [...
asked on 22.02.2018 / 04:14
1
answer

Use a space or "" as an element of a string in c ++

I want to have a space as an element of a string in c ++ this is my code: #include <iostream> #include <string.h> using namespace std; int main(){ int n; cin>>n; cin.ignore(); int cont=1; while(n--){ cout<<"Mess...
asked on 31.03.2018 / 06:40
2
answers

After an UPDATE, I execute a select but the data is not updated

I'm working JPA, I run the following update: public int EditarUsuario(UserSys us) { EntityManager em = getEntityManager(); em.getTransaction().begin(); try { Query q = em.createNativeQuery("UPDATE 'user_sys' "...
asked on 25.04.2016 / 23:14