Posts by Muka149 • 124 points
8 posts
-
0
votes4
answers385
viewsA: Obtaining the Rest of a Floating Point
#include <stdio.h> /*Programa que separa as partes real e inteira de um valor real.*/ int main() { float num = 4.13; float parteDec = 0; int parteInt = 0; parteInt = num; parteDec = num -…
-
0
votes1
answer417
viewsA: Use of c++ ASCII characters
1st declare the library: #include <locale.h> 2º place at the beginning of the main function: setlocale(LC_ALL,""); // Este comando pega o idioma da maquina que está rodando.…
-
0
votes2
answers3378
viewsA: How to print UTF-8 characters on the c++ console?
1st declare the library: #include <locale.h> 2º place at the beginning of the main function: setlocale(LC_ALL,""); // Este comando pega a codificação da maquina que está rodando. #include…
-
0
votes4
answers158
viewsA: printf function is not running after scanf method
As has been said before, for the program to run error-free, you need to put the "&" in the scanf. Ex: scanf("%d", & nameVariable); Another observation refers to the output of the variable.…
-
0
votes2
answers74
viewsA: Function ends before asking for scanf value
printf("Pretende autorizar o registo deste utilizador? (y/n):"); scanf("%s", &opcao); recent friend had a problem similar to yours, resolved by changing in scanf("%c") to scanf("%s"). It don’t…
-
-1
votes2
answers121
viewsQ: I need a menu whose sub-menu appears above the menu
Sorry for the lack of information: in the example of the code below, when you hover over the menu, the sub-menu Stop below the menu, do not know how to appear above the menu, who knows and want to…
-
0
votes1
answer65
viewsQ: Why doesn’t this program work in Chrome?
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> </head> <body> <fieldset><legend>Escolha</legend> <select> <optgroup…
-
2
votes2
answers1063
viewsA: My site does not update CSS
Good night. I have this problem constantly when I use Chrome. The solution is very simple: Advanced Settings Clear browsing data (Leave marked only) Images and cached files Click to clear data.…