View Full Version : Creating a Chat Room using the C++ Console
cameronlanni
09-22-2006, 06:15 PM
I have really no idea where to start. I know how to use the console very well, but have had no experience with C++ using the internet. I am also open to suggestions as far as what the easiest way would be for logging in. Is there a way to connect directly to another IP Address or maybe I should add a link to my webpage that opens the console applet. And I need help with what exactly and how exactly I am to write this code.
Also, what is the code for writing to a .txt file from the C++ console?
Thank you!
Cameron
mentalhorse
09-23-2006, 11:26 PM
If you don't know how to write to a text file than I wouldn't try to make a chat room.
But here you are.
Input/Output of files (http://www.cplusplus.com/doc/tutorial/files.html)
oracleguy
09-24-2006, 12:51 AM
You'd probably want to look into using sockets with C++ for your program to communicate with each other.
cameronlanni
09-24-2006, 12:54 AM
Thank you, thank you.
And I do know how to write to a .txt file, but was just having troiuble getting it to work, so I wanted a second opinion.
mentalhorse
09-24-2006, 12:56 AM
Alright. My fault.
Good luck.
oracleguy
09-24-2006, 06:15 AM
There is a fair ammount of stuff on the web about using sockets, I haven't ever done it with C++ myself otherwise I would whip up a couple bits of example code.
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.