Communication ~Please no flaming
I'm trying to make a client-server program that writes to C:\message.txt to the server, I *think* I have everything down before the acual communication, thats when I'm stumped :-/ can someone help me out pelase?
Code:
#include <iostream>
#include <windows.h>
#include <fstream>
#include <string>
int main()
{
char message[NULL];
int first[3];
int second[3];
int third[3];
void ip[NULL];
std::cout<<"Hello, welcome to my first (client-server) program";
std::cout<<"/n"<<"Please enter your clients ip address:";
//This is for the ip address
std::cin>>first;
std::cout<<".";
std::cin>>second;
std::cout<<".";
std::cin>>third;
std::cout>>"/n";
std::strcmp (first,.,second,.,third)=ip;
//end ip address
//this is for message
std::cout>>"Thank you please enter message:";
std::cin<<message;
std::ofstream a_file (C:\message.txt);
std::a_file<<message;
std::a_file.close();
//end message
//starting communication