Declaring a template static array

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • kkkkkillerkkkkk
    New Member
    • Mar 2007
    • 2

    #1

    Declaring a template static array

    How Can I Declare A -template Static Array In A Template Class-

    (declaring And Initializing )
    Note :the Array Is So Huge .

    And If There Is Somebody Who Can Help To Make The Huge Array In The Cursor List Please Help And Give Me The Syntax.
  • sicarie
    Recognized Expert Specialist
    • Nov 2006
    • 4677

    #2
    Originally posted by kkkkkillerkkkkk
    How Can I Declare A -template Static Array In A Template Class-

    (declaring And Initializing )
    Note :the Array Is So Huge .

    And If There Is Somebody Who Can Help To Make The Huge Array In The Cursor List Please Help And Give Me The Syntax.
    What are you trying to do? DO you know how big it is going to be? If you're trying to initialize it, and you know it's going to be some sort of regular mathematic expression (ie, incremental, multiplicationa l, etc...), you can use a for loop... Without knowing what you're doing it's hard to give much more help.

    Comment

    • kkkkkillerkkkkk
      New Member
      • Mar 2007
      • 2

      #3
      Originally posted by sicarie
      What are you trying to do? DO you know how big it is going to be? If you're trying to initialize it, and you know it's going to be some sort of regular mathematic expression (ie, incremental, multiplicationa l, etc...), you can use a for loop... Without knowing what you're doing it's hard to give much more help.
      Ok I am Know Studying A Course in My University (Data Structure & Algorithm Analysis in C++ -OOP-)

      And I Hava A Project Which Use Cursor Linked List ...

      OK I Will Tell You A Part Of This Project....
      One Function Of This Project Is That To Show ,Converge and Calculate The Infix and Postfix For An Equation .Using A Stack inherited Private Inheritance From a Template Cursor Linked List Class
      So I Must Have The Cursor Space Of This Class To Be Static(Because All Lists Of The Same Type Must Take The Node From The Same Cursor Space...) & The Cursor Space as You Know Is A Huge Array(And This Array Is From Type Template Node) ...So I Want The Syntax Of Defining And Initializing This Static Huge Array Of Type Template Node .....

      I Think This is Enough To Know What Is The Problem So If You Can Help Me Do It And Thank You .

      Note : The Cursor Linked List And Its Huge Array Solve A big Problem For Huge Data And Don't Lose Space For Such Problems and Some Algorithims.

      Comment

      • sicarie
        Recognized Expert Specialist
        • Nov 2006
        • 4677

        #4
        Well, here are our Posting Guidelines, specifically our Assignment Guidelines. With those in mind, what is your specific question that you're having trouble with?

        Comment

        Working...