Search:

Type: Posts; User: jothesmo

Search: Search took 0.00 seconds.

  1. Replies
    10
    Views
    3,065

    you'd have a list.php, host.php, host_remove.php,...

    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...
  2. Replies
    10
    Views
    3,065

    you could just use php on your web site. ie. to...

    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...
  3. Replies
    8
    Views
    1,161

    for saving to a file, i use this: char...

    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 <<...
  4. Thread: name variable

    by jothesmo
    Replies
    7
    Views
    1,213

    hmm... after a bit of searching, i found that...

    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...
  5. Thread: name variable

    by jothesmo
    Replies
    7
    Views
    1,213

    cin.ignore() works with strings too. but...

    cin.ignore() works with strings too. but personally i use
    cin.ignore(cin.rdbuf()->in_avail() + 1);
  6. Thread: name variable

    by jothesmo
    Replies
    7
    Views
    1,213

    use a string variable, ie: #include ...

    use a string variable, ie:

    #include <string>
    string name; //initialize
    getline(cin, name); //get input
  7. Replies
    2
    Views
    3,165

    :eek: My eyes must be very bad; I looked...

    :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!
  8. Replies
    2
    Views
    3,165

    Game Won't Compile

    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...
  9. Replies
    10
    Views
    5,485

    My compiler isn't broken, it merely does not have...

    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...
  10. Replies
    10
    Views
    5,485

    Thanks everyone for your speedy replies. It works...

    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();
  11. Replies
    10
    Views
    5,485

    Simple C++ Won't Work...

    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...
Results 1 to 11 of 11