Questions tagged as 'c'

0
answers

PHP programming with beagle bone, how to receive a variable

I'm doing a web server using Beaglebone black, I'd like to know how to get a variable on the web server and access it locally in a C program on the beaglebone.     
asked by 12.05.2016 / 21:25
1
answer

Problem of printing a list because of repeated values

How can I do not to repeat a value in this list? Whenever I do something, I can not print. #include<stdio.h> #include<stdlib.h> #include<iostream> using namespace std; typedef struct lista{ int valor; struct lista *p...
asked by 10.04.2016 / 05:54
1
answer

Conversion C to C ++

Well, does anyone know what this code means in C ++? #include <iostream> #define MAX_C (10) using namespace std; int compar(const void *x, const void *y) { int a = *((int *) x); int b = *((int *) y); return a - b; }     
asked by 02.04.2016 / 23:58
2
answers

Calculation in program C results in zero in any calculation value

I'm trying to do a kwh calculation, facul work. I'm using float values and the kwh * 0.2 value must be calculated, but the result is always zero. And I'm not seeing any errors in the code.     
asked by 28.04.2016 / 20:27
1
answer

Problem in Language C, Program does not respond

I have a problem with my C program, and in the second note of the second student the program stops responding. Follow the code explaining the problem. /* Faça um programa que cadastre 10 alunos. Para cada aluno, devem ser cadastrados:...
asked by 04.04.2016 / 03:26
0
answers

Error in binutils when doing cross-compiler. lex: not found

I'm doing a cross-compiler for the i686-elf architecture with a Debian host 8 86_64 bits already uninstalled and installed the flex but the error continues! I'll leave the terminal output. checking for gcc... (cached) gcc checking whether the...
asked by 30.03.2016 / 21:34
0
answers

Why can I restore old ESP value

Well I have here an issue that involves assembly and C. The variable format has more than 4 bytes, but I can still push of it without casting and returning the old ESP value after pushing. How is it possible? ASM segment .d...
asked by 24.03.2016 / 16:47
1
answer

Recursion and sum

I'm doing a program in which you need a recursion according to the exercise that sums up a vector of two arrays and sums the lines after recursion and then adds the columns following my code #include <stdio.h> #include <conio.h> i...
asked by 18.03.2016 / 01:28
1
answer

Copy of Vectors

Good evening! I'm having a question about how to copy a vector. I declare a vector "matrix [a] [j]" and I need to take the arithmetic mean only of the values contained in "array [a]", so I need to make a copy only of the values "[a]" for an a...
asked by 13.04.2016 / 23:49
1
answer

Passing by reference of a structure with vector in C!

I have the following code: #include <stdio.h> #include <stdlib.h> #include <string.h> #define TAM 3 typedef struct{ char nome[50]; char musica[50]; int integrantes; int ranki...
asked by 15.03.2016 / 20:19