Search:

Type: Posts; User: epb

Search: Search took 0.01 seconds.

  1. Replies
    12
    Views
    6,242

    Yes I am using Xcode. And that worked! Thanks :)

    Yes I am using Xcode. And that worked! Thanks :)
  2. Replies
    12
    Views
    6,242

    This is also gives me an empty output :( EDIT:...

    This is also gives me an empty output :(

    EDIT: The output is two empty lines, so I guess you can say that the output is not completely empty
  3. Replies
    12
    Views
    6,242

    I get no output. If I add cout

    I get no output. If I add
    cout << out << endl; after the assignment of 'i' to 'out' I get '0' as a single output.
  4. Replies
    12
    Views
    6,242

    Sorry if I wasn't clear about this.. I have...

    Sorry if I wasn't clear about this.. I have already tried printing out 's', and that revealed an empty string (which is why I concluded that the code returns an empty string).



    No that is not...
  5. Replies
    12
    Views
    6,242

    int to string - found method not working

    Hi,

    I tried the following code to convert an int to a string:


    int i = 5678;
    string s;
    stringstream out;
    out << i;
    s = out.str();
Results 1 to 5 of 5