Posts by Daniel Elias • 27 points
6 posts
-
1
votes1
answer105
viewsA: SQL - UPDATE with value from SELECT
I managed to solve by simplifying a little and changing the logic: UPDATE A SET campo2 = True WHERE ((A.id) In (SELECT B.idA FROM B GROUP BY B.idA HAVING COUNT(*) > 1)); I needed to count the…
-
0
votes1
answer105
viewsQ: SQL - UPDATE with value from SELECT
Dear, I have two tables (A and B), in which B has a foreign key of A. Example: A(id, campo1, campo2) B(id, idA, campo3, campo4) I need to count the amount of B.idA and thereby define a true or false…
-
1
votes1
answer151
viewsQ: C++. Generic class receiving lambda and struct function
Expensive, I’m trying to do some things in C++, but I’m still starting both in language and in the functional paradigm. What I need is to insert a function lambda in a pair. The first member of pair…
-
-1
votes1
answer97
viewsQ: Correct regex in C++ returning 0
Expensive, I created a regular expression for MIPS instructions. It was a lot of work, but I got it. At least regex. works, but C++ doesn’t. Here’s the code with the expression some string examples…
-
0
votes2
answers199
viewsQ: Error in c++ stringstream write function
Expensive, I am doing a function for decimal to binary conversion, which is returned in a string. As C++ does not have StringBuffer, I’m using the stringstream. However, I always have build error…
c++asked Daniel Elias 27 -
0
votes1
answer102
viewsQ: Is that a Python 3.6 bug?
The code below is a demonstration of what I’m trying to do: I have a vector (todos) in which elements are added. The second vector (alguns) also receives new elements, and I need to know if the…