Posts by José Isaac • 77 points
6 posts
-
2
votes3
answers548
viewsQ: Error using scanf("%[ n]") in sequence
#include <stdio.h> typedef struct person{ char name[100]; char address[100]; int age; } Person; int main() { Person pessoa; printf("Digite seu nome:\n"); scanf("%99[^\n]", pessoa.name);…
-
0
votes1
answer35
viewsQ: Segmentation failure using realloc function
Hello, I have a function that should receive values from an intersection and if you enter a value I should relocate more memory and return this pointer. Analyzing the problem, it seems to me to be…
-
0
votes1
answer122
viewsQ: Reference not set for "crypt" error in linkage
I am used the "crypt" function in that following code: #define _XOPEN_SOURCE #include <unistd.h> #include <stdio.h> int main(void) { char *key = "rdf"; char *salt = "50"; char *hash =…
-
0
votes2
answers552
viewsQ: Changing character values in C
I’m trying to change the value of the characters by adding the current value plus some value provided by the user: char texto[7] = "barfoo"; int tamanho = strlen(texto); for(int i = 0; i <…
-
2
votes2
answers599
viewsQ: There is a css selector that I can select an Submit input only when it is triggered/clicked
my doubt is as follows: Is there any way to select only with css a tag <input type="submit">only when it is clicked/triggered.
cssasked José Isaac 77 -
2
votes1
answer499
viewsQ: How to print a double with 4 houses after the dot in C#?
static void Main(string[] args) { double area, raio , pi; pi = 3.14159; raio = Convert.ToDouble(Console.ReadLine()); area = pi * Math.Pow(raio,2); Console.WriteLine("A={0}\n",area.ToString("N0")); }…