What you are saying makes sense. Now my code looks like this:
Server
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <stdio.h>
#include <stdlib.h>
Type: Posts; User: goodsamaritan
What you are saying makes sense. Now my code looks like this:
Server
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <stdio.h>
#include <stdlib.h>
Rubbish in range 50 000 - 60 000, even if I memset my from struct.
I get different rubbish each time a new client connects to the server.
What can be wrong ? It seems coded book-like and it's a...
Problem:
The server receives the correct number and prints it, prints correctly the IP address but when it comes to port, it prints rubbish:
What went wrong ?
This is the client, it reads a...
A NULL pointer is used to mark the end of the "commande" array
Have you checked this ?
What you are being asked to implement is a greedy algorithm which has a starting and an ending point. You could mantain at each step two current indexes(line number, column number) and the given...
I think if you gave us your assignment statement too you would have had more chances to get an answer.