Posts by Aislan Silva Costa • 83 points
15 posts
-
0
votes0
answers66
viewsQ: In C -> Multiple Struct Passages as Parameter
Good to all! I am studying about double chained lists, arose the need to pass one struct into another struct, into another. I already managed to make one, however, instead of using a book struct, I…
-
-2
votes1
answer107
viewsQ: Get size of a two-dimensional matrix
I have a dynamically allocated two-dimensional char matrix, as I do to get its size? would use sizeof(client); for example, I instated a client struct, Client **client; then in the code I’ll…
-
0
votes0
answers114
viewsQ: Processes in linux(Fork())
I am creating a client/server type server using sockets tcp, a client connects to the server, when it closes the client application, the server closes the connection command close (related), but the…
casked Aislan Silva Costa 83 -
0
votes1
answer51
viewsQ: Compile and Run GUI on Android
I use c4droid to compile C code using gcc, in my studies I want to enter the graphical interface, but as I am without computer I thought to use the android itself. Well, I installed the GNU Root…
-
0
votes1
answer54
viewsQ: Difficulty accessing elements in a C vector
In the following code I try to obtain the largest element of a vector. However, when trying to access the elements of the vector I can access only the index 0 and consequently cannot access the…
casked Aislan Silva Costa 83 -
0
votes0
answers147
viewsQ: In C, how to compare a string obtained from Strtok to another string
Well, folks, in my progress in C language study, I’m working with file manipulation, nothing too complicated, but I’ve come up with a problem I can’t solve, For lack of more definition in searches…
-
0
votes2
answers1061
viewsQ: Remove element from a Vector in "C"
I must fill two vectors, A and B, with 10 elements each, then do the Interseccao and the Union, in the union, I must remove the repeated elements. At the time, the intersection was made, within the…
-
2
votes0
answers638
viewsQ: (Java) Reading the Serial Port with the Jssc library
I have a java app that reads on the serial port with 7 data from a rotational sensor coming from the Arduino, via jssc. The code works, but the data is not formatted. I read 4 in 4 bytes, but…
-
0
votes0
answers167
viewsQ: Read Entire with Bufferedreader on Android
In an Android application, I have a java socket client that sends integers (using writeInt) to a socket server on Android that I’m trying to read these integers. I receive correct strings but I…
-
0
votes2
answers2921
viewsQ: Convert String to Integer on Android
Guys, I had already opened a question related to this subject but in java(Here), I could not solve and now in an android apk I have the same problem. I have a service with a thread running a server…
-
1
votes1
answer164
viewsQ: Unexpected return when converting String to Integer in Java
I have a java code in which you receive engine speed data. In java with I get a String I need to convert to integer to make a comparison to know if the engine started or not. When I get the string I…
-
2
votes0
answers53
viewsQ: Screen updates only once when using multiple socket connections
I’m creating an android application where I trade data with a java socket server on the pc. And in the same application I will open some threads that run servers for a direct connection with…
-
0
votes0
answers266
viewsQ: How to listen to a Socket connection on Android
I have a socket tcp java server on the pc and a socket tcp client on android, I receive data from the server. However how do I create a server that is always listening to a port on android, ie…
-
0
votes1
answer762
viewsQ: Update Textview Android Using Handler
I started Programming now on Android, and I need to update a Textview after receiving a string from a Socket connection. I get the string correctly but the apk closes giving an exception: 10-01…
-
2
votes0
answers354
viewsQ: Dynamic Text Label on Tkinter
I researched a lot here in stack and google, I spent all night looking for a simple solution but I did not find, I saw some ways to solve but none worked for me until now. Situation: I am creating a…