Posts by Caio Teixeira • 61 points
7 posts
-
1
votes1
answer808
viewsQ: Formatting/Breaking Line of Code in Android Studio
When I do automatic reformatting Ctrl+L the code gets indented, but the lines don’t break, as in Eclipse and Netbeans, so I have to drag the window constantly to see the end of a larger line, as in…
android-studioasked Caio Teixeira 61 -
0
votes1
answer261
viewsQ: How to print a list array (a pointer to a list)
Hello, I would like to know how I can print a pointer to a list, as a vector of lists. I made a pointer pointing to list and do not know how to print these values. I tried using an iterator for each…
c++asked Caio Teixeira 61 -
0
votes4
answers528
viewsA: Error Segmentation Fault (Dumped Core) Binary Tree Search
I was able to find a solution! When dynamically allocating my log struct it works normally for large records. I tested up to 1,000,000 records and the search worked normally, of course a little…
canswered Caio Teixeira 61 -
0
votes4
answers528
viewsQ: Error Segmentation Fault (Dumped Core) Binary Tree Search
I am doing a job that performs a key search (an int value) in a binary tree populated from a file txt. The archive txt has in each row the following record: a key (int), a date1 (long int) and a…
casked Caio Teixeira 61 -
0
votes1
answer509
viewsQ: How to save value of a function that returns a char pointer in a string array
I would like to know how I can store the return of the function below, which generates a random string, in a vector of strings with 100 of these words generated by the function, to then make a sort…
casked Caio Teixeira 61 -
2
votes1
answer313
viewsQ: Loop for reading text file reads the last line twice
I’m doing a test to read a simple txt file with three numbers: 1 2 3 #include <stdio.h> #include <stdlib.h> int main() { int conta; FILE* arq = fopen("dicionario.txt", "r");…
casked Caio Teixeira 61 -
1
votes0
answers89
viewsQ: Error creating sqlite database from installed apk
I used a populated . sqlite database in a project. I imported the bd into the Assets folder and implemented the code for creating and accessing the database. I ran the project and everything worked…