Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Resolve/C++ text operations

  1. Oct 9, 2007 #1


    User Avatar

    i am faced with some homework in Resolve/C++ and encountered several problems

    Code (Text):
            t1 = #t1 * #t2
    -what do the pound signs before the variables mean?
    -what does it mean when one text "*" another text?

    hope someone can help. cant really find much resolve/C++ help online. thanks!
  2. jcsd
  3. Oct 9, 2007 #2


    User Avatar
    Science Advisor
    Homework Helper

    # is reserved for the preprossor.
    Either there is a definition somewhere that says #define t1 = "blah" or somehow the code has got screwed up in the email / web page.

    Multiplying text can mean whatever you overload the operator to mean. Text * a number might reasonably mean repeat the text 'number' times but multiplying text * text is probably a silly thing to do.
  4. Jan 23, 2008 #3
    #t1 is the previous value of t1.
    If t1 is originally "cat", then t1 = #t1 + #t1 means t1 will be "catcat"
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook

Similar Discussions: Resolve/C++ text operations
  1. Embedded text (Replies: 4)

  2. Win7 text size bigger (Replies: 3)