Questions tagged as 'c'

1
answer

Delete a value from a node

I'm trying to delete a data from my list but it turns out that the next value of the number I want to delete is deleted. For example, I have on my list: 7 0 5 18 2 I want to delete the 0 , and that when viewing is: 7 5 18 2 W...
asked by 08.08.2017 / 23:41
1
answer

"x.exe has stopped workinng" when reading a string using scanf_s in visual studio 2015?

I am having problems with the following code: #include <stdio.h> #include <string.h> #include <conio.h> int main() { char c[10]; printf("nombre\n"); scanf("%s",&c); printf("%s",c); } The problem is that when enteri...
asked by 01.08.2017 / 01:49
1
answer

Why do I get this error "assignment too expression with array type" is a doubly linked list

struct Fecha{ int dia; int mes; int anio; }; struct nodoeventos{ struct nodoeventos *Antptr; char ID[5]; char Nombre[20]; char Desc[40]; struct Fecha fecha; struct nodoeventos *Sigptr; }; typedef struct nodoeventos NodoE; /**...
asked by 15.07.2017 / 22:02
4
answers

Find grid number

Help, I need to solve this program, I've been thinking for days and I can not find any solution: I need to find the cell: I would enter the number of rows and columns and another variable that will be "p" which will be the number to fin...
asked by 06.07.2017 / 22:04
3
answers

I need to make a C program that shows 100 random numbers between 500 and 800 that are different, and I do not know how to make them different

#include <stdio.h> #include <time.h> #include <stdlib.h> int main() { int N,a; srand(time(NULL)); for(a=1;a<=100;a++) { N=rand() % 500 +300; printf("%d.- %d \n",a,N); } }     
asked by 24.05.2017 / 01:14
1
answer

Delete repeated item entered by user

I'm recently watching C programming and we started with the fixes, there is an exercise where I have an N-size array with repeated numbers (entered by the user), what I'm asked to do is that the user enter a number and verify in the fix if it is...
asked by 26.05.2017 / 21:32
1
answer

Different types of data in a C array

I am currently doing an array in the following way: char count[3][1] = { ["test"] = {0}, ["prueba"] = {1}, ["stack"] = {2} }; The problem is that when compiling it does not recognize me well, because there are different type...
asked by 13.05.2017 / 22:35
1
answer

Problem with strcat

I have a problem with a program that generates a password, when I debug it comes out that the strcat sentence is skipped and I have no idea why it does that. void gClaves(tRegLista *reg,int i,int op) { int y; char auxclave[5]; char nu...
asked by 12.04.2017 / 15:47
2
answers

what other functions can I add to this code of the Pythagorean theorem?

I need to know what else you can add about the Pythagorean theorem to the code I'm not very good about that and the Pythagorean theorem applies but I only did the basics of someone who tells me that another function I can add to it Pd: tell m...
asked by 13.03.2017 / 02:57
1
answer

How can I join these two codes on an Arduino board?

Maybe the question sounds a bit too much, but I have no idea how to join them. As I said in another question related to the arduino, I was trying to make a login session to validate the user, redirect me to a page simulator of an FTP (something...
asked by 06.04.2017 / 03:33