Search:

Type: Posts; User: jimlau

Search: Search took 0.00 seconds.

  1. Thread: Return a String

    by jimlau
    Replies
    11
    Views
    2,106

    how can i clear odds each time? i tried the...

    how can i clear odds each time? i tried the following and neither worked:

    odds = NULL;

    odds.clear();
  2. Thread: Return a String

    by jimlau
    Replies
    11
    Views
    2,106

    i'm getting an error: "error LNK2001:...

    i'm getting an error:

    "error LNK2001: unresolved external symbol "public: class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __thiscall...
  3. Thread: Return a String

    by jimlau
    Replies
    11
    Views
    2,106

    what is the proper syntax in calling this...

    what is the proper syntax in calling this function and returning a string to the main program? do i need to send the string into the function as a variable?


    string=function(x);

    function(x){...
  4. Thread: Return a String

    by jimlau
    Replies
    11
    Views
    2,106

    Yeah, tried that too, but I get an error when...

    Yeah, tried that too, but I get an error when compliling.

    " 'std' : is not a class or namespace name"

    Do I need to add an include statement?
  5. Thread: Return a String

    by jimlau
    Replies
    11
    Views
    2,106

    Return a String

    how do I create a function that returns a string? I'm not sure how to declare it in the file header, as coding "string function(int x)" does not work.
Results 1 to 5 of 5