   Help with my Server
#include <stdio.h>#include <stdlib.h>#include <winsock2.h>#include "CAdata.h"int main(){    WSADATA wsaData;int Ergoserv = WSAStartup(MAKEWORD(2,2), &wsaData);    if(Ergoserv != 0){   printf("WSAStartupfailed %d\n", Ergoserv);   return 1;    }SOCKET s = socket(AF_INET, SOCK_STREAM, 0);sockaddr_in addr;addr.sin_family = AF_INET;addr.sin_port   = htons (static_cast<int>(server_config["port"]));addr.sin_addr.s_addr = htonl(INADDR_ANY);if(bind(s,(sockaddr*)&addr, sizeof(addr)) == INVALID_SOCKET){    printf("bind failed: %d\n", WSAGetLastError());    WSACleanup();    return 1;}if(listen(s,5) == SOCKET_ERROR){    printf("Listen failed: %d\n", WSAGetLastError());    WSACleanup();    return 1;}#define MAX_CONNECTIONS 5;int number_of_connections = 0;SOCKET client [MAX_CONNECTIONS];sockaddr client_sock[MAX_CONNECTIONS];while(number_of_connections < MAX_CONNECTIONS){    client[number_of_connections] = accept(s,client_sock[number_of_connections], &addr_size);if(client[number_of_connections] == INVALID_SOCKET){    printf("accept failed: %d\n", WSAGetLastError());    WSACleanup();    closesocket(s);    closesocket(client);    return 1;}else {    startThread(client[number_of_connections]);    number_of_connections++;}}char buffer[11];printf(buffer, "whatever...");send(s, buffer, sizeof(buffer), 0);closesocket(s);}I get these errorsC:\Documents and Settings\Dev\Desktop\Ergo\encryption_files\encryption_files\CityofAngels\CAdata.h|1|warning: extra tokens at end of #ifndef directive|C:\Documents and Settings\Dev\Desktop\Ergo\encryption_files\encryption_files\CityofAngels\CAdata.h|2|warning: ISO C requires whitespace after the macro name|C:\Documents and Settings\Dev\Desktop\Ergo\encryption_files\encryption_files\CityofAngels\main.cpp||In function `int main()':|C:\Documents and Settings\Dev\Desktop\Ergo\encryption_files\encryption_files\CityofAngels\main.cpp|25|warning: comparison between signed and unsigned integer expressions|C:\Documents and Settings\Dev\Desktop\Ergo\encryption_files\encryption_files\CityofAngels\main.cpp|40|error: expected `]' before ';' token|C:\Documents and Settings\Dev\Desktop\Ergo\encryption_files\encryption_files\CityofAngels\main.cpp|40|error: expected primary-expression before ']' token|C:\Documents and Settings\Dev\Desktop\Ergo\encryption_files\encryption_files\CityofAngels\main.cpp|40|error: expected `;' before ']' token|C:\Documents and Settings\Dev\Desktop\Ergo\encryption_files\encryption_files\CityofAngels\main.cpp|41|error: expected `]' before ';' token|C:\Documents and Settings\Dev\Desktop\Ergo\encryption_files\encryption_files\CityofAngels\main.cpp|41|error: expected primary-expression before ']' token|C:\Documents and Settings\Dev\Desktop\Ergo\encryption_files\encryption_files\CityofAngels\main.cpp|41|error: expected `;' before ']' token|C:\Documents and Settings\Dev\Desktop\Ergo\encryption_files\encryption_files\CityofAngels\main.cpp|43|error: expected `)' before ';' token|C:\Documents and Settings\Dev\Desktop\Ergo\encryption_files\encryption_files\CityofAngels\main.cpp|43|error: expected primary-expression before ')' token|C:\Documents and Settings\Dev\Desktop\Ergo\encryption_files\encryption_files\CityofAngels\main.cpp|43|error: expected `;' before ')' token|||=== Build finished: 9 errors, 3 warnings ===|If someone could help me with this I'd be very appreciated   
  You are using the preprocessor to create a constant. You would not use a semicolon when doing this. Nor should you use the preprocessor.Use "const int MAX_CONNECTIONS = 5;" instead.It also appears your include guards in CAdata.h are malformed.;  If you can't figure out this compile error, I would say that you're not yet mature enough in programming to be effective in learning network programming.