Announcement

Collapse

Looking for a User App or Add-On built by the NinjaTrader community?

Visit NinjaTrader EcoSystem and our free User App Share!

Have a question for the NinjaScript developer community? Open a new thread in our NinjaScript File Sharing Discussion Forum!
See more
See less

Partner 728x90

Collapse

C++ Reference

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    C++ Reference

    I am looking for a C++ online basic reference manual (not tutorials). Some examples of what I need:
    • methods and functions for string manipulation, particularly comparisons.
    • syntax for various C++ programming constructs, e.g., ForEach, Select/Case?, For( ... )
    • Data type conversion methods and rules.

    I have looked at MSDN but can't find anything this basic. Perhaps I need to join MSDN in order to find what is there.

    Any suggestions appreciated. If MSDN is the answer, then a link to get this type of information would be great.

    #2
    You should be looking for C#, not C++.

    Use the string.Equals method. Equals is benchmarked against the equality operator.

    Use the Compare and CompareOrdinal methods on strings. See the results of CompareTo.



    C# - Switch Statement - A switch statement allows a variable to be tested for equality against a list of values. Each value is called a case, and the variable being switched on is checked for each switch case.



    Originally posted by RVRoman View Post
    I am looking for a C++ online basic reference manual (not tutorials). Some examples of what I need:
    • methods and functions for string manipulation, particularly comparisons.
    • syntax for various C++ programming constructs, e.g., ForEach, Select/Case?, For( ... )
    • Data type conversion methods and rules.

    I have looked at MSDN but can't find anything this basic. Perhaps I need to join MSDN in order to find what is there.

    Any suggestions appreciated. If MSDN is the answer, then a link to get this type of information would be great.

    Comment


      #3
      C# Stuff

      Thanks sledge. That's just what I needed and I'm glad you ignored my "no tutorials" comment.

      ... but while you're writing snippets
      I need to test a 1-character string, sGlyph, to see if it is a digit. Another way to say it: is sGlyph a member of "0123456789".
      Thanks again.

      Comment


        #4
        oops. i hate msdn

        Indicates whether a Unicode character is categorized as a decimal digit.


        Char.IsDigit Method (String, Int32)


        Originally posted by RVRoman View Post
        Thanks sledge. That's just what I needed and I'm glad you ignored my "no tutorials" comment.

        ... but while you're writing snippets
        I need to test a 1-character string, sGlyph, to see if it is a digit. Another way to say it: is sGlyph a member of "0123456789".
        Thanks again.

        Comment


          #5
          MSDN Deliverance

          Thanks for the link ... and for delivering me from MSDN!!

          Comment

          Latest Posts

          Collapse

          Topics Statistics Last Post
          Started by tkaboris, Today, 05:13 PM
          0 responses
          2 views
          0 likes
          Last Post tkaboris  
          Started by GussJ, 03-04-2020, 03:11 PM
          16 responses
          3,281 views
          0 likes
          Last Post Leafcutter  
          Started by WHICKED, Today, 12:45 PM
          2 responses
          19 views
          0 likes
          Last Post WHICKED
          by WHICKED
           
          Started by Tim-c, Today, 02:10 PM
          1 response
          10 views
          0 likes
          Last Post NinjaTrader_ChelseaB  
          Started by Taddypole, Today, 02:47 PM
          0 responses
          5 views
          0 likes
          Last Post Taddypole  
          Working...
          X