Questions tagged as 'c'

0
answers

Generate excel in C

Good morning, I'm trying to create a library to generate excel files (.xls) in C, but I have no idea how to get sheets, here's the code: #ifndef SACAEXCEL_H_ #define SACAEXCEL_H_ //cada celda ira separada por una '\t' de la siguiente y por...
asked by 25.11.2017 / 14:53
1
answer

Can you pass the value of a local variable to another function?

I have a local variable in my function main . Can data of that variable be passed to any function? For example, move from main to function x , the value of variable k     
asked by 27.11.2017 / 23:57
1
answer

error: expected expression before 'matrix'

The program should read an array from the keyboard but pull this error    error: expected expression before 'array' #include <stdio.h> #define TAM 3 typedef int matriz[TAM][TAM]; int main() { int i, j; for(i=0; i<TAM; i++...
asked by 27.11.2017 / 03:00
1
answer

Error printing a structure

The program has to read and display data from a structure, the program does not throw error but in the exit it appears the name after garbage (spaces without assigning) and the last name when it is shown How can this be solved? #include <st...
asked by 03.12.2017 / 00:31
1
answer

version GLIBCXX_3.4.21 not found

When I try to install the program (./Rack.sh), I get this error: ./Rack: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version 'GLIBCXX_3.4.21' not found (required by ./Rack) ./Rack: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version 'GLIBCXX_3.4...
asked by 26.11.2017 / 22:12
1
answer

How can I get the same result, but entering the values by keyboard?

#include <stdio.h> int main(){ int primerNumero; int segundoNumero; int tercerNumero; /*Cuando intento ingresar por ejemplo el valor del primer numero por teclado con scanf, luego me tira error si intento--> segundoNumero = 0primerNu...
asked by 20.11.2017 / 15:14
1
answer

Program in C does not add well the elements of a vector

I am doing a basic program in C, to calculate notes. It consists of an array in which some notes read by keyboard are stored. Once they are introduced, they are added one by one and stored in a variable. The problem is that it does not add th...
asked by 15.11.2017 / 17:32
1
answer

How to separate what is introduced?

#include<stdio.h> #include<stdlib.h> #include<conio.h> #include<ctype.h> #include<string.h> char cad[15],ch,numeros[15]; int i=0,num=0,letra=0,puntos=0,espacios=0,j=0; void identificar(){ printf("Ingresa una c...
asked by 22.11.2017 / 23:01
1
answer

I have to invert a vector in c

Good! I'm starting to program in pseudocodigo similar to C and they gave me an exercise that is really costing me a lot ... The slogan is: Invert an array of 30 integers entered by keyboard (I can not use sorting methods such as bubbler, for exa...
asked by 04.11.2017 / 03:13
1
answer

Create list simply linked in C with linux?

Some time ago I used linked lists in C, but using the Windows operating system and the IDE Visual Studio, I am currently using Linux (Ubuntu), and I realize that the GCC compiler does not allow me to do the things like I did in windows. I hav...
asked by 04.11.2017 / 20:55