Questions tagged as 'c'

1
answer

SOCKETS IN C - TCP Sequence Number

I need a help with sockets in C. My teacher spent a job in which I must execute the TCP communication between client and server where I should execute some rules .. 1 - The Client sends a message to the server. The message must...
asked by 20.06.2017 / 00:38
1
answer

I can not make a vector point correctly to function that it belongs to

I have tried several times, but the compiler does not understand the references made in the header of the void CalculaValorparaPagar(float ValorPago[MAX], float Quant_Kwh[MAX],float Preco[MAX], int bandeira[MAX], int tipo[MAX]) function a...
asked by 14.05.2017 / 22:29
0
answers

script to encrypt texts

I've been trying to create a program in c to encrypt a text, but I'm still learning many commands in c. So far I have created a string "char text [200]" to save my text. Then I created two .txt files. one with the letters in order and the oth...
asked by 27.04.2017 / 15:23
3
answers

Comparing string contents in C to find palindrome

I need to check if a string A, for example, is equal to string B to determine if the entered word is a palindrome, string B is the inverse of A, I can not determine if the contents are the same. For example, I enter with the word "macaw", t...
asked by 26.03.2017 / 23:48
0
answers

'fscanf' changing pointer to struct in C

Good evening. I was writing a program to read strings from a text file, and place these in a simply linked list if its length was equal to 5. The problem is that the program started not working the way I did I expected, and after a few tes...
asked by 29.04.2017 / 03:55
1
answer

FILE function in C

What I need to do: Develop an algorithm where you calculate from the values of input of .txt file or values entered by the user, a percentage value that is out of the allowed, in case + -3 for all cases, where the program performs a media and co...
asked by 17.04.2017 / 02:42
0
answers

Perform width search

I have a job to do and I'm beating my head to understand how I will do the same. I should perform a width search based on a .txt . The teacher sent some of the code (I'm only doing main ), I could already read the file, but I'm not sure h...
asked by 05.05.2017 / 22:48
1
answer

Program Stopping Responding in C - Chained List

I'm doing a college job in C and I've pretty much finished the same. However, I've threaded a bug that I can not seem to get out of. My program, while passing the line aux1=aux1->next; simply stops working. It stops responding as it do...
asked by 06.05.2017 / 01:32
0
answers

How to read a .csv file in C?

I created this code in C where I inserted the coordinates of some points and with SVG I drew these points in the space connected by lines. all saved in an .html file to run in the browser. It's like a route scheme where I want to calculate betwe...
asked by 06.05.2017 / 03:12
0
answers

Number Function in List

Personal I have this function tem_numero_na_lista it happens that it is printing on the screen only the last value that I inserted in the list. The effect I want to print is whether or not it has numbers inside the list. See: tipo_lista...
asked by 25.04.2017 / 20:55