Posts by pcccj • 927 points
13 posts
-
3
votes1
answer85
viewsQ: Record video with Avfoundation framework and save to iphone gallery
I’m creating an app for IOS 8 that uses the front camera to record user video until a certain action is called, and finally save in the gallery. But so far I could only do this with photo (takes…
-
3
votes1
answer631
viewsQ: Read a string with scanf()
My program must read big numbers(0<=X<=10 (100)), what I’m doing is he reads/interprets the typed numbers as char and store in a chained list. My show was fine, until I put one…
-
4
votes2
answers236
viewsQ: How to receive an X number ranging from 0 to 10 100 in C?
I have a question that can have as input a number X that can be from 0 until 10 100. I am receiving the input values/number as char to make it easier. But you can’t create a static string/array of…
-
3
votes3
answers561
viewsA: Nth value of a binary search tree
The ideal would be for the function to return the final value (T->Element) through a return, and not of a printf(). But I had no idea. Maybe someone can complete. int Kth(Nodo* T, int cont, int…
-
1
votes1
answer453
viewsA: What does the error mean: realloc(): invalid Pointer: 0xb78094d8?
Well... what I learned in this problem was: Never forget to initialize a pointer vector with NULL; void inicializa(Tab* tabela, int tam) { int i; for(i=0; i < tam; i++) { tabela[i].vetor =…
-
2
votes1
answer453
viewsQ: What does the error mean: realloc(): invalid Pointer: 0xb78094d8?
My program, whose code is further down, has shown the following error: I don’t understand because I have too much memory on my PC, and all the compiler sites have the same problem. *** Error in…
-
1
votes1
answer183
viewsA: Error in vector copy of structured type
The problem was the incongruity of some passages of the function reallocTabela(); for example in the passage: op_efetuada == 'N';, which instead of using the increment symbol(=), ended up using the…
-
0
votes1
answer183
viewsQ: Error in vector copy of structured type
Error copying elements from a vector of structured type to another vector of the same kind: At the end of the code below, I use a function to "print" all elements of the tabela2 (vector that will…
-
0
votes0
answers71
viewsQ: Hash Table for text word incidence
This problem was best illustrated here: Error in vector copy of structured type Summary: I am developing an index dictionary, which stores the incidence of a word of text (input) using a hash table…
-
1
votes1
answer331
viewsQ: Double with a maximum accuracy of 40 digits
I need my program to return a high number of digits in the house up to 40 digits. I saw that guy DOUBLE has a range of 1.7 X 10 -308 to 1.7X10 308, so I must think that it meets, even too, my needs.…
-
3
votes1
answer704
viewsQ: Scatter table (Hash Tables)
I have a hash table closed with open addressing and linear scanning for the following dictionary of words, from a text; The input operation works like this: 1) The program asks for the first line of…
-
2
votes3
answers133
viewsQ: Marathon Problem: Calculator (Level 2)
This problem seems very simple, however my code does not commit in any way by error with some random input. The program that manages the submission of the question gives me some tips: Check the…
-
56
votes4
answers3125
viewsQ: Precise math division
In Windows calculator: 9/3,0001 = 2,999... In my program: 9/3,0001 = 3; I would like to get that level of accuracy using C. Watch excerpts from my program: double op(double num1, double num2, char…