Posts by Misaee 21 • 347 points
12 posts
-
1
votes1
answer57
viewsQ: How to boot Spotify API on Rails?
Project link on Spotify API Github How to initialize this project in Rails? normal would be "Rails server", however some files are missing from the standard Rails project and are giving error...…
-
2
votes1
answer196
viewsQ: Is it possible to open the file for writing and at the same time open for reading without before closing in C?
Not a good programming practice? void leitura(FILE *arq) { if((arq = fopen("dificuldade.txt","r")) == NULL) printf("Erro ao abrir o arquivo\n"); else { //linhas de codigo fclose(arq); } } void…
-
2
votes1
answer99
viewsQ: Runtime Error in Problem Using Recursion
I’m trying to solve the problem 1030 - Flavious Josephus Legend, from a challenge site. I send the code and says it has the Runtime error (Accesses an invalid memory or array has little space):…
-
-1
votes2
answers505
viewsQ: Change the vector size during the course of the program?
I want to change the size of the vector to solve this problem "The Legend of Flavious Josephus": https://www.urionlinejudge.com.br/judge/pt/problems/view/1030 If I have 5 people with a 2 jump it…
-
2
votes1
answer759
viewsQ: What is a recursive method?
The variable resultado within the for is recursive? #include <stdio.h> int main(void) { int N,i; double resultado=0.0; scanf("%d",&N); for (i=0; i<N; i++) { resultado= 1.0 /…
-
3
votes2
answers2791
viewsQ: How to turn a character into an integer in C?
How to turn a character into an integer? #include <stdio.h> #include <stdlib.h> #include <string.h> int main(void) { char N[11]; int i; scanf("%s",N); int cont = strlen(N);…
-
4
votes1
answer299
viewsQ: How do I use the break command within two loops in Ruby?
When the "break" command is executed in "if" there is a way to exit the internal and external loop ? not just one ? while (i < maior) do if tam1>tam2 for i2 in 0 .. tam2 do…
-
-2
votes1
answer49
viewsQ: How do I accept only letters in the Ruby entry?
Given a string, you have to take only uppercase and lowercase letters. And in the output show them. How can I achieve this result?
-
0
votes2
answers1096
viewsQ: How to count how many substrings you have in a C string?
https://www.urionlinejudge.com.br/judge/pt/problems/view/2126 This exercise I thought better read as string or not... #include <stdio.h> int main(void) { char N1,quantidadesdeN1;…
-
0
votes1
answer357
viewsQ: What does arroba (@) mean in variables in Ruby?
What does arroba (@) in front of variables in Ruby? For example @s = gets.to_i
-
0
votes1
answer549
views -
2
votes2
answers155
viewsQ: Doubt about char in C
What does that char* mean and those empty quotes""?: char *directionX = ""; char *directionY = ""; If you can help me I appreciate.