I'm having trouble knowing how to develop a function that the command line will count and display the number of commented lines from another program in .c, for example:
Counter ProgramExample.c -c
The -c argument will call the function to...
int sexo = 1;
float maior=0,menor=0,altura;
int tm = 0, tf = 0, sm = 0, sf =0;
printf ("O valor 0 encera o programa !!!\n");
while (sexo!=0){
printf ("1-Masculino\t2-Feminino\n");
scanf ("%d", &sexo);
if (sexo =...
I have a two-dimensional array of char dynamically allocated, how do I get its size?
I would use sizeof (client);
For example, I instantiated a struct client,
Customer ** customer; then in the code I'm allocating it as it goes (tamVetor ++...
If the user types a number other than 1 and 2, he asks to terminate the program? \ n [1] for yes and [2] for no
#include <stdio.h>
#include <stdlib.h>
int main()
{
int N1, N2, Q, R, OP;
{
do
{
printf("DIVIDINDO...
I'm asking the question Voice Dialing , I've done all the possible tests and I do not find the error could help me in other tests that my code fails
My code
#include <stdio.h>
#include <string.h>
#include <ctype.h>
int i...
How do I join 2 vectors in 1 vector? Without repeating the numbers?
Question: Make a program that reads two vectors of 10 elements. Create a vector that is the union between the 2 previous vectors, that is, that contains the numbers of the tw...
I have the proposal to print on a theater ticket,
the date, time, part name (to be typed and scanned by scanf), and the customer's seat number
// declaração da variável.
char PecaTeatral[255];
// pulando para a leitura da string
switch(n){...
My code is only printing the last case. Could anyone help me?
My Code ...
include<stdio.h>
int main(){
int teste,total,i;
float percentpop,percentgeral,percentarq,percentcad,renda,pop,geral,arq,cad;
scanf("%d",&test...
I'm doing a program that captures the complete name of a person and reproduces it in this format: surname, name without surname (EX: João Carlos Cunha -> João Cunha, Amanda Batista -> Batista, Amanda). Only the user can type as many names as he...