Posts by André • 391 points
11 posts
-
2
votes3
answers46
viewsA: How to modify a repeat
To do this, you need to have a variable that will count the number of times the user misses and a variable to get the new number the user entered, so that they do not lose the initial variable. The…
-
4
votes1
answer115
viewsQ: Creating a dictionary with void functions
I am for fun to develop a TCP server in C# that performs functions depending on the message that the connected client sends you, for now, I only managed to do what I want with functions that return…
-
0
votes1
answer583
viewsA: Incomplete Function
In order to complete the function would need to know what is considered a month with profit, as I did not understand I will leave in this form: function quantidadeDeMesesComLucro(umPeriodo) { let…
javascriptanswered André 391 -
2
votes2
answers52
viewsA: Why is if not comparing to html < entity?
The actual representation of this line <span><</span> is "<" and so you should make the comparison this way: text.textContent == "<"…
-
-1
votes1
answer90
viewsQ: Pygame is not drawing an object
I’m making a game in python using pygame. The game consists of a player who shoots small bullets depending on the position of the mouse and itself. Everything runs smoothly, the player moves as I…
-
1
votes2
answers55
viewsA: How to find a comma inside a Textbox
I ended up using the marshal, here’s the resolution: char* Valor = (char*)(void*)Marshal::StringToHGlobalAnsi(textBox1->Text); ContadorDeVirgulas = strchr(Valor, ','); if(ContadorDeVirgulas >…
-
1
votes2
answers55
viewsQ: How to find a comma inside a Textbox
I have a Text Box in which can only contain a comma, so I thought to make the program detect, when the user uses the comma, if there is already one in that particular Text Box. Here’s an example of…
-
4
votes1
answer753
viewsQ: How to Classify a Triangle
I want to classify a triangle as to the sides, being that a triangle with all equal sides is designated Equilateral, with all different sides being designated Escaleno and if it has only two equal…
-
6
votes3
answers11601
viewsQ: How to calculate the Euclidean distance
I want to calculate the Euclidean distance by the following formula: So I tried, making this code: #define SLEEP_1 1000 void HeaderClass::DistanciaEuclidianaEntrePontos() { int x1, x2, y1, y2,…
-
3
votes1
answer445
viewsA: How to make a modal fire and stay at the bottom/bottom of the page?
I think your solution would be to do the following: Through Jquery you could make a code of this type: $('.btn').click(function() { $('.modal') .prop('class', 'modal fade') .addClass(…
-
-4
votes1
answer1531
viewsQ: Would it be possible to pass a string from one form to another?
Imagine a Form who asks you for a color, so would have a TextBox, and from that TextBox I wanted to press the button "OK" for example, this sends the text of that TextBox to another Form, so that it…