you'd have a list.php, host.php, host_remove.php, myip.php, and a verify.php
list.php > client contacts this to get a list of servers available with names and ips, other details
host.php > server...
Type: Posts; User: jothesmo
you'd have a list.php, host.php, host_remove.php, myip.php, and a verify.php
list.php > client contacts this to get a list of servers available with names and ips, other details
host.php > server...
you could just use php on your web site. ie. to check for multiplayer games the client would look on a certain page. if you hosted it would send your ip to that page with some details about your...
for saving to a file, i use this:
char filen[32];
ofstream savef;
cout << "Please enter the filename: (no .txt): ";
cin >> filen;
strcat(filen, ".txt");
cout << endl <<...
hmm... after a bit of searching, i found that this this post seems to imply that you can use either one, i wonder which one is the best? i'm very curious because i use the method numerous times in my...
cin.ignore() works with strings too. but personally i use
cin.ignore(cin.rdbuf()->in_avail() + 1);
use a string variable, ie:
#include <string>
string name; //initialize
getline(cin, name); //get input
:eek:
My eyes must be very bad; I looked twice to see if I had put any colons and still didn't see my mistake!
Thanks!
I am currently making a C++ text-based adventure game (without classes! -- I'll learn later). I've had some compiler errors before, but I've always fixed them. This time, however, the problem is much...
My compiler isn't broken, it merely does not have the conio.h file. I'm not sure if Apple thought that it would be needed, since not many people compile C++ on a Mac (to my knowledge). I had...
Thanks everyone for your speedy replies. It works like a charm. Here's the code I have now:
#include <iostream>
#include <string>
using namespace std;
int alert();
Greetings,
I've just started learning C++ today (my friend suggested it) and I've made my first program. Unfortunately, it won't even compile... This may be due to the fact that I have a Mac, and...