Posts by Carlos Adir • 128 points
9 posts
-
0
votes3
answers1118
viewsA: Key capture
The getch() function captures the user without showing the answer on the screen. Take a look at the github link: https://github.com/CarlosAdir/C-Programs/tree/master/Tutoriais Download the entire…
-
2
votes3
answers5076
viewsA: How to pick up the arrow keys in C/C++?
I did in C to pick up directional arrows, take a look at this link from github: https://github.com/CarlosAdir/C-Programs/tree/master/Tutoriais Download the entire folder and run the 8-extras file. c…
-
0
votes1
answer135
viewsQ: Pressing keys in the terminal
Hello, in my Ubuntu 16.04, at the time of running a program in C (as well as in sublime), when I press a key, keeps repeating the same key until release. So far so good. But if I don’t release this…
-
1
votes0
answers43
viewsQ: Latex file to open a file on the computer
Hello, I have a question about opening files through PDF. Class 02 is a file that contains links to open other files. If I click on "1-ola_mundo. c" inside the pdf, it should open the code…
-
0
votes0
answers94
viewsQ: String and double data entry
I’m in a project to implement a C++ calculator that uses variables. Thus, if I define a variable x = 5, and type x 2 then returns me the value of 25. For this, I have to store the variable name and…
-
1
votes2
answers7781
viewsA: Generate random number without repetition in C
Use the function srand((unsigned) time(NULL)), as exemplified below: #include <stdio.h> #include <stdlib.h> #include <time.h> int main() { const int MAX = 10; int i;…
-
1
votes2
answers169
viewsA: Passing struct to function giving error
I see some mistakes: 1) You have not declared the pointer to Arq file: FILE *arq 2) agenda is the name of its type, not a variable. Just as it makes no sense for you to type int[i], it is the same…
canswered Carlos Adir 128 -
3
votes1
answer46
viewsQ: Latex command to create C file
Hello, I wonder if there is a way to generate a file from the PDF prepared in Latex. What I want to do: I write Latex code, compile and I write his PDF. At some point, I want to show a code that is…
latexasked Carlos Adir 128 -
3
votes1
answer1139
viewsA: Printing of predefined phrases at random in C
First of all, as you already have the notion of vector, you know that placing multiple character vectors(strings) is tiring. So I advise using an array: int main() { char minhas_palavras[10][100];…