Posts by lauanS • 71 points
6 posts
-
1
votes1
answer25
viewsA: How to define the component to be rendered in the React-Router-Dom Link?
To render a custom component using the React-router-dom Link, simply pass your component as a "child" of it: <Link to="url-que-quer-acessar" style={{ textDecoration: 'none' }} >…
-
1
votes1
answer49
viewsA: Check Image URL before updating State in React/Next
You can try to create an object of Image to check if it is possible to load the image. The idea is that you create the object and use the methods onload() and onerror() to check whether it was…
-
1
votes1
answer30
viewsA: After finding the answer to the question does not end the application
to terminate the program after finding a solution it is necessary to interrupt its flow somehow, finishing its execution or redirecting to the end of it. I advise using the command Return, this…
-
2
votes2
answers184
viewsA: I’m having an error in my C program
You are trying to save in variable nomecompleto the return of function conc(nome1,nome2);, but the guys don’t match. nomecompleto is a pointer (char), while the fun conc() returns a char. To fix…
-
-1
votes2
answers222
viewsA: problem comparing strings in c language
When you execute the command: scanf("%c\n%c", &comida, &bebida); You are only asking to read 2 characters. That’s why the program closes after typing the first word, because it probably…
-
1
votes3
answers5733
viewsA: How to save the output result of a Python script to a txt file?
Just like in previous responses, you can save the result by opening a file and writing the output to it. with open('nomeDoArquivo.txt', 'w') as arquivo: # <Seu código aqui> print('Sua saída',…