Posts by joão gabriel s.f. • 271 points
11 posts
-
0
votes2
answers47
viewsA: How to stop receiving keystrokes?
You can use the command stty -echo and stty echo on a call from system(), where stty -echo disables keyboard input, and stty echo and active back, as said in this post. In your case just run the…
-
2
votes2
answers1035
viewsA: CSS style for chat with more than one line messages
Since I don’t know exactly how the rest of your code is, I can’t give a 100% functional example, but I can explain the idea to you and give you a direction of what to do. I will assume that in…
cssanswered joão gabriel s.f. 271 -
1
votes1
answer50
viewsA: Html, Css, javascript
Your question got a little fuzzy, but I think I know what your main question is, come on: <div id="divDoIcone" onclick="alternaEstadoDiv('idDaDivExpandivel')" style="display: inline-block;…
-
0
votes1
answer605
viewsA: How to find the largest element of a vector recursively?
take a look at these links: java recursiveness, question in java forum-recursiveness. I’m not going to make all the code for you because it would take away part of your learning, but I’ll explain…
javaanswered joão gabriel s.f. 271 -
1
votes1
answer193
viewsA: How to transform a decimal number to binary using String
use the function sprintf(), using the table values ASCII: #include <stdio.h> int main(int argc, char** argv) { int num, aux, i = 0; char vetor[200]; scanf("%d", &num); while(num >= 1) {…
canswered joão gabriel s.f. 271 -
7
votes2
answers177
viewsA: Why subtract -48 from a char and turn it whole?
Chars are actually integers, which are a table code ASCII, so if you subtract a number from it, you change the value of your code. for example: #include<stdio.h> int main(){ char num='3';…
-
0
votes1
answer86
viewsA: C++ Character buffer adding no characters
I am very expert in Java or Opengl. But I’ve handled a lot of CUDA programs ( Nvidia ) with codes in C, C++ and Delphi mixed. And one problem that tends to occur a lot is type compatibility. For…
-
0
votes1
answer39
viewsA: Slider occupying more than 100vh
Try putting zero value in the "slider’s margin and padding attributes": note: assuming . slide_img is the slider. .container .slide_img{ position: absolute; width: 100%; height: 100vh; margin: 0px;…
-
0
votes2
answers108
viewsA: Eclipse error installed on Deepin linux
This is not a mistake. As the red text in the console suggests, it is a "warning" that you have found a java option, which in this case seems to be using a specific font configuration.
javaanswered joão gabriel s.f. 271 -
0
votes3
answers62
viewsA: How to use a button along with a function?(Javascript/HTML)
Since I don’t know how the rest of your code looks, I’m going to assume that your only problem really is that you’re not able to change the value of to. Technically your code is "correct". So one…
-
0
votes2
answers691
viewsA: How to exchange the lowest value of a vector with the highest value?
There are several ways to solve this problem. The one that I find particularly efficient is stored the indexes (position in the vector) of the largest and smallest element of the vector, because…
javaanswered joão gabriel s.f. 271