Search:

Type: Posts; User: thegr8n8

Search: Search took 0.01 seconds.

  1. Replies
    44
    Views
    3,653

    lol, the function is only 1 line though :D

    lol, the function is only 1 line though
    :D
  2. Replies
    44
    Views
    3,653

    why did you change it to a const?

    why did you change it to a const?
  3. Replies
    44
    Views
    3,653

    okay lets put this char* thing on hold. Lets move...

    okay lets put this char* thing on hold. Lets move towards a diffrent function I have been working on.


    int stringToInt(string paraString)
    {
    return atoi (paraString.c_str());
    }


    Is this...
  4. Replies
    44
    Views
    3,653

    okay here is a header of one of the functions to...

    okay here is a header of one of the functions to that networking engine:


    double writestring(char*str, double buffid)
    {
    CBuffer*buff = (CBuffer*)buffers.item((int)buffid);
    if(buff ==...
  5. Replies
    44
    Views
    3,653

    this : size_t tempsize = size_t(str.size());...

    this :


    size_t tempsize = size_t(str.size());
    char *temp = new char[tempsize + 1UL];
    str.copy (temp, tempsize);
    temp[tempsize] = '\0';
    foo (&temp[0], tempsize);
    delete[] temp;
  6. Replies
    44
    Views
    3,653

    I am now confused

    I am now confused
  7. Replies
    44
    Views
    3,653

    I am using this networking engine.

    I am using this networking engine.
  8. Replies
    44
    Views
    3,653

    but alot of functions I use only accept char*....

    but alot of functions I use only accept char*.
    How would you declare a char* normally?
  9. Replies
    44
    Views
    3,653

    because I declared alot of my char*s like this:...

    because I declared alot of my char*s like this:
    char* variable = "stuff";

    this way brings up warnings.
  10. Replies
    44
    Views
    3,653

    ah I see now, so how would one go from string to...

    ah I see now, so how would one go from string to regular char* then?
  11. Replies
    44
    Views
    3,653

    lol well sorry this was an error message for a...

    lol well sorry this was an error message for a diffrent thing I was doing:
    string playerName = "Nathan";
    char* = playerName.c_str();


    that is where the error message appears at
  12. Replies
    44
    Views
    3,653

    bad conversion from const char* to char*.....

    bad conversion from const char* to char*.....
  13. doesn't winsock solve alot of these problems?

    doesn't winsock solve alot of these problems?
  14. Replies
    44
    Views
    3,653

    splendid also how did you get a signature?

    splendid also how did you get a signature?
  15. Replies
    44
    Views
    3,653

    Okay I am about to go try that, but what exactly...

    Okay I am about to go try that, but what exactly is stringstream, it looks like cout all over, but copied into a string.
  16. Replies
    44
    Views
    3,653

    Appending to the end of a char*

    Okay here is the psuedocode of what I want to do

    void openFile(int inputNumber)
    {

    char* = "//folder//" + inputNumber + ".txt"

    }

    unfortunately that is not how you append to the end of...
  17. Replies
    2
    Views
    1,608

    Best method for console timing system?

    In C++ whats the best way tofor me to create an object and have it wait 1 minute before echoing a message? Please note it will be in a while loop(duh or else program will close/end).
  18. Replies
    5
    Views
    888

    okay here is a function that doesn't even have...

    okay here is a function that doesn't even have string as a return type, but uses string and has it in the header, but it gets errors on every variable declared as a string!



    int...
  19. Replies
    5
    Views
    888

    Problem with Functions/Classes

    I am using strings in a program I am writing, however whenever I try to make a string the return type of the function, I get tons of errors saying that its not a real type.

    How would I make a...
Results 1 to 19 of 20