Modify array in recipe template

Does anyone know how I would go about changing or adding to the array used in the recipe template? I was wanting to add conversion from english to metric systems. For those of us that like (US) to cook using the metric system, and for those of us that need (outside of US) to cook using the metric system the array used in the recipe template needs to be modified. I tried to look up array in help but that only delt with exsisting arrays used by formulas.

You could create the metric equivalents in each of the cells in the Array table (i.e., 1 TSP = xx mL). Also you could rename the titles to approximate metric equivalents.
Regards,

Similar Messages

  • How to modify the email remittance template

    Hello,
    We have a requirement on modifying the email remittance template. We are looking to add a new fields in the remittance detail section. How do we do this?.  Any inputs are highly appreciated.
    Thanks,
    Sushma

    What exactly are you trying to edit in the template? The Table of Contents can be edited like this: http://total-bi.com/2012/09/briefing-book-table-of-contents-page/
    Please mark if helpful/correct.

  • Recipe template for pages

    I want to add an existing recipe template to Pages 08, I've read the support community and downloaded suggestions,but when I try to open it states these are not pages and it will not open.  Do I have to create a template from scratch or is there something out there already that I can plug in and begin using?
    s

    I just download a recipe book template for pages '09 that just opened right up.
    The link:
    http://blog.magcloud.com/2010/11/11/pages-recipe-book/
    Actual template:
    Open a New File
    You can DOWNLOAD the template I use in my demo here, the Pages 2008 version here,
    or if you are feeling inspired, design your own from scratch!

  • Recipe Template

    I need a full page recipe template for Pages. I can't seem to find one anywhere. Any ideas?

    Here is a link that my father-in-law sent me. There are several programs here. There is one called MacGourmet that is for recipes. I have downloaded it but have not tried it yet. Hope this helps.
    http://www.apple.com/downloads/macosx/index.html

  • Error occurred when modifying array

    I have recently built a new machine with the stuff listed in my profile. I have trawled these formums but have not found any with the specific problem- given that i have not read every thing written perhaps some one can shed some light onto this problem.
    I have a single Seagate Barracuda 120GB SATA drive that is recognised by the Promise BIOS after you press F6 (you get a "no Array defined" error and F6 to setup array or ESC to continue boot.
    Once in the Bios you are offered (correctly) the performance option and all the seagates parameters are recognised correctly. This is true in option 1 auto and 3 define array.  So you select Ctrl Y to build your array and get
    "Error occurred when modifying array. System is going to Reboot ! press any key to reboot"
    I don't know where to begin on this. the machine has no OS on it as I hoped to install XP onto this drive and have Mandrake on the 4GB.
    Any ideas anyone.
    P.S.
    I have lots of cooling and a 400W PSU. :]

    hi
    400w psu does not say ANYTHING.
    for example an enermax 350w has MUCH more power than a q-tec 550w.
    post amps on the 3.3v 5v and 12v rails on the psu.
    should be written on a label on the psu.
    k7n2 is VERY picky about memory and i dont think your memory is approved nforce2 memory.
    there is a thread about memory at the top of this forum.
    try other memory if you have it.
    could also try http://www.memtest86.org
    its a mem test program.
    try to remove zip.
    have seen alot of people having strange problem due to a zip drive.
    bye

  • How to modify array elements from a separate class?

    I am trying to modify array elements in a class which populates these fields by reading in a text file. I have got mutator methods to modify the array elements and they work fine in the same class.
    public class Outlet {
         private Outlet[] outlet;
         private String outletName;
         private int phoneNumber;
         private int category;
         private int operatingDays;
    static final int DEFAULT = 99;
         public void setPhoneNumber(int newPhoneNumber) {
              phoneNumber = newPhoneNumber;
         public void setCategory(int newCategory) {
              category = newCategory;
         public void setOperatingDays(int newOperatingDays) {
              operatingDays = newOperatingDays;
    public static void readFile(Outlet[] outlet) throws FileNotFoundException {
              Scanner inFile = new Scanner(new FileReader("outlets.txt"));
              int rowNo = 0;
              int i = 0;
              String outletValue;
              while (inFile.hasNext() && rowNo < MAXOUTLETS) {
                   outlet[rowNo] = new Outlet();
                   outletValue = inFile.nextLine();
                   outlet[rowNo].setOutletName(outletValue.toUpperCase());
                   outlet[rowNo].setPhoneNumber(DEFAULT);
                   outlet[rowNo].setCategory(DEFAULT);
                   outlet[rowNo].setOperatingDays(DEFAULT);
              inFile.close();
         public static void displayUnassignedOutlets(Outlet[] outlet) {
              int i = 0;
              System.out.println("Showing all unassigned Outlets");
              System.out.println(STARS);
              for (i = 0; i < MAXOUTLETS; i++ ) {
                   if (outlet.getCategory() == DEFAULT) {
                   System.out.println("\nOutlet Number: " + (i + 1) + "\t" +
                             outlet[i].getOutletName());
    Now in the other class that I want to modify the array elements I use the following code but I get an error that "The expression type must be an array but a Class ' Outlet' is resolved".
    So how can I modify the array elements? What do I have to instantiate to get the following code to work?
    public class Franchise {
         private Franchise[] franchise;
         public Outlet[] outlet;
         public static void createFranchise(Franchise[] franchise) throws FileNotFoundException {
              Scanner console = new Scanner(System.in);
              int choice = -1;
    ++++++++++++++++++++++++++++++++++++
              Outlet outlet = new Outlet();
              Outlet.readFile(outlet.getOutlet());
    ++++++++++++++++++++++++++++++++++++
              boolean invalidChoice = true;
              while (invalidChoice) {
              System.out.println("\nCreating a New Franchise...");
              System.out.println(STARS);
              System.out.println("Please select an outlet from the list below");
              Outlet.displayUnassignedOutlets(outlet.getOutlet());
              choice = console.nextInt();
              if (choice < 0 || choice > 10) {
                   System.out.println("Error! Please choose a single number between 1 and 10");               
              else {
                   invalidChoice = false;
              invalidChoice = true;
              while (invalidChoice) {
                   System.out.println("Please enter the Phone Number for this Outlet");
                   choice = console.nextInt();
                   String phone = new String();
              phone = new Integer(choice).toString();
                   if (phone.length() < 8 || phone.length() > 10) {
                        System.out.println("Error! Please enter 8 to 10 digits only");
                   else {
    +++++++++++++++++++++++++++++++++++++++
                        outlet[(choice - 1)].setPhoneNumber(choice);
    +++++++++++++++++++++++++++++++++++++++
                        invalidChoice = false;

    Hi Pete!
    Thanks for your comments. I have included my full classes below with their respective driver modules. Hope this helps out a bit more using the code tags. Sorry, it was my first posting. Thanks for the heads up!
    import java.util.*;
    import java.io.*;
    public class Outlet {
         public Outlet[] outlet;
         private String outletName;
         private int phoneNumber;
         private int category;
         private int operatingDays;
    //     private Applicant chosenApplicant;
         static boolean SHOWDETAILS = false;
         static final String STARS = "****************************************";
         static final int MAXOUTLETS = 10;
         static final int DEFAULT = 99;
         public Outlet[] getOutlet() {
              return outlet;
         public String getOutletName() {
              return outletName;
         public int getPhoneNumber() {
              return phoneNumber;
         public int getCategory() {
              return category;
         public int getOperatingDays() {
              return operatingDays;
         public void setOutletName(String newOutletName) {
              outletName = newOutletName;
         public void setPhoneNumber(int newPhoneNumber) {
              phoneNumber = newPhoneNumber;
         public void setCategory(int newCategory) {
              category = newCategory;
         public void setOperatingDays(int newOperatingDays) {
              operatingDays = newOperatingDays;
         public Outlet() {
              outlet = new Outlet[10];
         public static void readFile(Outlet[] outlet) throws FileNotFoundException {
              Scanner inFile = new Scanner(new FileReader("outlets.txt"));
              int rowNo = 0;
              int i = 0;
              String outletValue;
              while (inFile.hasNext() && rowNo < MAXOUTLETS) {
                   outlet[rowNo] = new Outlet();
                   outletValue = inFile.nextLine();
                   outlet[rowNo].setOutletName(outletValue.toUpperCase());
                   //System.out.println(rowNo % 2);
              //     if (rowNo % 2 == 0) {
                   outlet[rowNo].setPhoneNumber(DEFAULT);
                   outlet[rowNo].setCategory(DEFAULT);
                   outlet[rowNo].setOperatingDays(DEFAULT);
    //               System.out.println("Outlet Name+++++++  " + rowNo + "\n" + outlet[rowNo].getOutlet());               
                   rowNo++;
         //          System.out.println(rowNo);
              if (SHOWDETAILS) {
                   if (rowNo > 6) {
                        for (i = 0; i < rowNo; i++ ) {
                             System.out.println("\nOutlet Name+++++++  " + (i + 1) + "\t" +
                                       outlet.getOutletName());
              inFile.close();
         public static void displayAllOutlets(Outlet[] outlet) {
              int i = 0;
              System.out.println("Showing All Outlets");
              System.out.println(STARS);
              for (i = 0; i < MAXOUTLETS; i++ ) {
                   System.out.println("\nOutlet Number: " + (i + 1) + "\t" +
                             outlet[i].getOutletName());
         public static void displayUnassignedOutlets(Outlet[] outlet) {
              int i = 0;
              System.out.println("Showing all unassigned Outlets");
              System.out.println(STARS);
              for (i = 0; i < MAXOUTLETS; i++ ) {
                   if (outlet[i].getCategory() == DEFAULT) {
                   System.out.println("\nOutlet Number: " + (i + 1) + "\t" +
                             outlet[i].getOutletName());
         public static void main(String[] args) throws FileNotFoundException {
              Outlet start = new Outlet();
              Outlet.readFile(start.getOutlet());
              Outlet.displayUnassignedOutlets(start.getOutlet());
    ================================
    So in the below Franchise class, when I specify:
    outlet[(choice - 1)].setPhoneNumber(choice);
    I get the error that an array is required but the class Outlet is resolved. Any feedback is greatly appreciated!
    import java.io.FileNotFoundException;
    import java.io.PrintWriter;
    import java.util.*;
    public class Franchise {
         private Franchise[] franchise;
         public Outlet[] outlet;
         static final int MAXOUTLETS = 10;
         static final int DEFAULT = 99;
         static boolean SHOWDETAILS = false;
         static final String STARS = "****************************************";
         static final double REGHOTDOG = 2.50;
         static final double LARGEHOTDOG = 4;
         static final int SALESPERIOD = 28;
         static final int OPERATINGHOURS = 8;
         public Franchise[] getFranchise() {
              return franchise;
         public Franchise() {
         public static void createFranchise(Franchise[] franchise) throws FileNotFoundException {
              Scanner console = new Scanner(System.in);
              int choice = -1;
              //franchise[i] = new Franchise();
              Outlet outlet = new Outlet();
              //outlet[i] = new Franchise();
              Outlet[] myOutlet = new Outlet[10];
              Outlet.readFile(outlet.getOutlet());
              boolean invalidChoice = true;
              while (invalidChoice) {
              System.out.println("\nCreating a New Franchise...");
              System.out.println(STARS);
              System.out.println("Please select an outlet from the list below");
              Outlet.displayUnassignedOutlets(outlet.getOutlet());
              choice = console.nextInt();
              if (choice < 0 || choice > 10) {
                   System.out.println("Error! Please choose a single number between 1 and 10");               
              else {
                   invalidChoice = false;
              //System.out.println(j);
              invalidChoice = true;
              while (invalidChoice) {
                   System.out.println("Please enter the Phone Number for this Outlet");
                   choice = console.nextInt();
                   String phone = new String();
                  phone = new Integer(choice).toString();
                   if (phone.length() < 8 || phone.length() > 10) {
                        System.out.println("Error! Please enter 8 to 10 digits only");
                   else {
                        outlet[(choice - 1)].setPhoneNumber(choice);
                        invalidChoice = false;
              invalidChoice = true;
              while (invalidChoice) {
                   System.out.println("Please enter the category number for this Outlet");
                   choice = console.nextInt();
                   if (choice < 1 || choice > 4) {
                        System.out.println("Error! Please choose a single number between 1 and 4");
                   else {
                        outlet.setCategory(choice);
                        invalidChoice = false;
              invalidChoice = true;
              while (invalidChoice) {
                   System.out.println("Please enter the Operating Days for this Outlet");
                   choice = console.nextInt();
                   if (choice < 5 || choice > 7) {
                        System.out.println("Error! Please choose a single number between 5 and 7");
                   else {
                        outlet.setOperatingDays(choice);
                        invalidChoice = false;
    //          Applicant chosenApplicant = new Applicant();
         //     Applicant.readFile(chosenApplicant.getApplicant());
              //Applicant.checkCriteria(chosenApplicant.getApplicant());
         //     System.out.println("This Franchise has been assigned to : " +
              //          chosenApplicant.displayOneEligibleApplicant());
              Outlet.displayUnassignedOutlets(outlet.getOutlet());
         public static void main(String[] args) throws FileNotFoundException {
              Franchise start = new Franchise();
              Franchise.testing(start.getFranchise());
              //Franchise.createFranchise(start.getFranchise());
              //Franchise.displaySalesForcast();
              //Franchise.displayAllFranchises(start.getOutlet());

  • How can I modify a custom, existing template in Pages '09?

    I've created a template in Pages '09 that I'm able to use under My Templates. However, there is does not seem to be a way to modify it--I've tried getting to the file directly and then open, but Pages '09 creates a new file.
    Is there a way to modify the template AFTER it has been created, or should I just open the file that is created, and then re-save as a template?

    JEstrada wrote:
    Roger, Peter,
    Thx for the response. It is somewhat unusual but if that's the way it is...
    What is unusual ?
    When we open a template, we don't get a template but a standard document.
    The only official way to keep the changes in a template is to save the modified document as a template.
    The unofficial one is to save it as a standard document then change its extension name. xxx.pages renamed xxx.template will be a neat template.
    Yvan KOENIG (from FRANCE lundi 20 avril 2009 19:09:44)

  • I am writing a cookbook and would like to find a free recipe template to downoad. Can anyone tell me where to find one?  Thanx!

    I am writing a cookbook and would like to find a free recipe template to downoad. Can anyone tell me where to find one?  Thanx!

    its going to depend on what application you are writing it in and what format your book will be.  if you have a publisher they should be able to help you with this as well. i did find this by searching 'pages recipe template' in google  http://www.iworkcommunity.com/content/recipe-full-page however i do not know the usage rights
    -mvimp

  • How do I programmat​ically modify array element sizes?

    Hi All,
    I have a quick question about modifying the size of array elements. Hopefully someone can help, because I am at a dead end!
    I am logging some intensities from a Fibre Array using a camera. For calibration of the system, I acquire an image from the camera, click points on the image to divide it into areas of interest. I overlay my image with a grid showing the regions of interst - for example a 4x6 array. I then have to select the fibres - or ROIs - I want to log from.
    I have a cluster type-def ( a number and a boolean) to specify the fibre number and to turn logging from that fibre on/off. I overlay an (transparent) array of this typedef over my image to correspond with the regions of interest. So here's my problem - I want to modify the dimensions of the array so each control matches my ROI. I can resize the elements by rightclicking on the elements on the frontpanel, but can't find a way to do it programmatically. The Array Property Node>>Array Element>>Bounds won't 'change to write'...thats the first thing I tried.
    Its really only important that the elements align with my ROIs - so programmatically adding in gaps/spacings would also work for me...but again I can't figure out how to do this! I've attached a screenshot of part of my image with array overlaid to show you all exactly what my problem is.
    Thanks in advance for you help,
    Dave
    PS I am running Labview 8.6 without the vision add on.
    Solved!
    Go to Solution.
    Attachments:
    Array_Overlay.png ‏419 KB

    Here's my cheat (and cheap?) way If you want to get fancy and center the numeric and boolean indicators, you could add spacers on the north and west sides, too.
    Attachments:
    ClusterSpacer.vi ‏13 KB

  • Modifying web photo gallery templates

    Hi all! I created a web photo gallery in Photoshop. I want to modify the template so that I can make the gallery look more in line with the rest of the site I'm designing. I see in the Help Center that I need to modify the "tokens" in the html, but I'm at a loss as to how to do this. Is there a site online somewhere that can explain this to me better? Thank you so much!
    Julie

    Hi Dave! Thanks! I did do a search, but apparently I didn't put in the right search words, as my search didn't turn up anything useful. I'll check out what you sent me.
    Julie

  • Modifying Array position with IViewCursor

    I have array print with command
    Alert.show(''+ObjectUtil.toString(arrColl));
    (mx.collections::ArrayCollection)#0
    filterFunction = (null)
    length = 4
    list = (mx.collections::ArrayList)#1
    length = 4
    source = (Array)#2
    [0] (Object)#3
    2008-03 = "1473"
    2008-03p = "40,19"
    desc = "Usuários únicos"
    [1] (Object)#4
    2008-03 = "1476"
    2008-03p = "-16,80"
    desc = "Novos usuários"
    [2] (Object)#5
    2008-03 = "53114"
    2008-03p = "39,25"
    desc = "Sessões"
    [3] (Object)#6
    2008-03 = "45"
    2008-03p = "-97,78"
    desc = "Tarifação"
    uid = "8B1A7D6D-62D1-C9BF-85DD-C538F40ED10D"
    sort = (null)
    source = (Array)#2
    I would like to modify the position of the Array, moving the
    last key for the beginning.
    thus:
    [0] (Object)#3
    desc = "Usuários únicos"
    2008-03 = "1473"
    2008-03p = "40,19"
    [1] (Object)#4
    desc = "Novos usuários"
    2008-03 = "1476"
    2008-03p = "-16,80"
    [2] (Object)#5
    desc = "Sessões"
    2008-03 = "53114"
    2008-03p = "39,25"
    [3] (Object)#6
    desc = "Tarifação"
    2008-03 = "45"
    2008-03p = "-97,78"
    my code source, but is not functioning. some tip of the
    error?
    /code]
    //Recebi o resultado e guarda em um array devido
    ordenação
    var arrColl:ArrayCollection = new ArrayCollection(event.data
    as Array);
    Alert.show(''+ObjectUtil.toString(arrColl));
    if (! runBefore) {
    runBefore=true;
    for (var i:int=0; i < arrColl.length; i++)
    // Get an IViewCursor object for accessing the collection
    data.
    var myCursor:IViewCursor=arrColl
    .createCursor();
    // Get the original collection length.
    var oldLength:int=arrColl.length;
    myCursor.seek(CursorBookmark.LAST);
    // The cursor is initially at the first item; delete it.
    var removedItem:Object=Object(myCursor.remove());
    // The cursor is at the (new) first item;
    // move it to the firs item.
    myCursor.seek(CursorBookmark.FIRST, 0);
    // Add removedItem as the first item.
    myCursor.insert(removedItem);
    var sort:Sort = new Sort();
    arrColl.sort=sort;
    // Refresh the collection view to apply the sort.
    arrColl.refresh();
    //Guarda na variavel o array
    dgReport.dataProvider = arrColl;
    [/code]

    No tip??

  • Modify BPF Smartform Email Template

    Hello
    We are trying to copy/modify an email template used with BPFs via SMARTFORMS.
    The Smartform Body that we are trying to modify is based on UJB_SF_EMAIL_TMPL_11 .  This is the email send to notify Owner "To Perform".
    In this email, the owner is based on the Driver Dimension.  When the Owner receives this email, the only the Context "Description" is used.  We would like for the email to have "ID" and "Description" in the email body.
    The parameter used in the email is Context: I_RGN_CTX_STR
    I_RGN_CTX_STR is capable of reading "ID".  We tested what would happen when we deleted a context description, and the email then uses ID.
    Has anyone had success in modifying the SMARTFORM to "ID" and "Description"?
    We are using BPC NW 10, SP12.
    Thanks!

    Hello
    We are trying to copy/modify an email template used with BPFs via SMARTFORMS.
    The Smartform Body that we are trying to modify is based on UJB_SF_EMAIL_TMPL_11 .  This is the email send to notify Owner "To Perform".
    In this email, the owner is based on the Driver Dimension.  When the Owner receives this email, the only the Context "Description" is used.  We would like for the email to have "ID" and "Description" in the email body.
    The parameter used in the email is Context: I_RGN_CTX_STR
    I_RGN_CTX_STR is capable of reading "ID".  We tested what would happen when we deleted a context description, and the email then uses ID.
    Has anyone had success in modifying the SMARTFORM to "ID" and "Description"?
    We are using BPC NW 10, SP12.
    Thanks!

  • Anyone have accurate instructions on modifying the default user template in Lion 10.7.4 ?

    Never had an issue in the past...not until Lion.
    After I create my local user, and modify program behavior, dock and desktop wallpaper I copy the contents of the home folder (including hidden folders) to the English.lproj folder.
    My new users are not only not getting the settings, their home folder is empty.  No documents, music, or anything.

    Google modifying user template site:apple.com and peruse the hits.
    Also, see http://http://www.apple.com/osx/server/resources/documentation.html for detailed into.

  • Modifying the Standard Report template

    Hi
    I have a report with 10 columns and 2 of them are wb_id, pa_id. Depending on the search critiria either wb_id or pa_id will be null. I want to highlight the row with some color when I select any row and I am modifying the standard template and
    column template condition is 'Use Based on PL/SQL Expression' and it is
    NVL(#COL02#,0) = NVL(:GLOBAL_WB_ID,0). But when I run the report it is giving the error that encountered # wherea as expecting.......
    Thans a lot.

    Hi,
    I have a report page uses the following block of pl/sql as its source.
    This calls a function by passing page items and this functions returns sql query.
    DECLARE
    V_SQL VARCHAR2(4000);
    BEGIN
    V_SQL := WF_PCK02.search_wb_pa(
    :P1000_WB_ID,:P1000_PA_ID,:P1000_RIVER_NO,:P1000_GENRE,:P1000_LOCATION,:P1000_WATER_DEPENDENT,:P1000_BASELINE,
    :P1000_NBT_PRESSURE_TYPE_ID,:P1000_PURPOSE,:P1000_NBT_SIC_DESC,:P1000_ACTIVITY_DESC,:P1000_NBT_MORPH_ACTIVITY,
    :P1000_SW_ASSET,:P1000_ORDER_BY,:P1000_R1);
    RETURN V_SQL;
    END;
    Now if user is searching for water bodies the results look like this.
    10317 - Allt Ceitlein SURFACE WATER River Y 2a 2b N N
    10318 - Allt a Chaorainn SURFACE WATER River Y 2b 2b N N
    10319 - River Coupall SURFACE WATER River Y 2b 2b Y N
    10320 - Allt a Bhiorain SURFACE WATER River Y 2b 2b Y N
    if the user is searching for PAS the results look like this.
    - UKS7992310 Lochs Long and Goil SHELLFISH WATER - Y 1a 9z N N
    - UKS79923100 Ulva SHELLFISH WATER - Y 1a 9z N N
    - UKS79923101 Ura Firth SHELLFISH WATER - Y 1a 9z N N
    - UKS79923102 Voe of Clousta SHELLFISH WATER - Y 1a 9z N N
    - UKS79923103 Wadbister Voe SHELLFISH WATER - Y 1a 9z N N
    - UKS79923104 Inner West Loch Tarbert SHELLFISH WATER - Y 1a 9z N N
    I had written a java script to select the current row, and page refreshes when I click
    any where on the row and displays the display item saying that
    currently selected id is 10317
    or
    Currently selected id is UKS79923100
    and also assigns the 10317 to GLOBAL_WB_ID or UKS79923100 to GLOBAL_PA_ID
    Now my user want to change the color of the currently selected row.
    For this I am trying to change the report template like this
    Column Template 1
    <td class="t15data"#ALIGNMENT# style="background:#d1e2f3">#COLUMN_VALUE#</td>
    Column Template 1 Condition
    NVL(#2#,0) = NVL(:GLOBAL_WB_ID,0);
    BUT
    it is giving the following error.
    Encountered the symbol "<" when expecting one of the following: ( ) - + case mod new not null others table avg count current ........................
    ERR-1025 Error processing PLSQL expression. :GLOBAL_WB_ID = NVL(10317,0);
    Then I changed the condition to substitute the #2# in single quotes like this.
    NVL('#2#',0) = NVL(:GLOBAL_WB_ID,0);
    BUT it is giving this error
    Encountered the symbol "10317" when expecting one of the following: ( ) - + case mod new not null others table avg count current ........................
    ERR-1025 Error processing PLSQL expression. :GLOBAL_WB_ID = NVL('10317',0);
    I am unable to understand where the error is coming from.
    Please help me.
    10317 is the first row of the result set.
    Thanks a million in advance.

  • Array as static template member: Error

    Hi,
    I have the following piece of code:
    template<class T, int NN>
    class Foo {
      static T* m_array[NN];
    template <class T, int NN>
    T* Foo<T,NN>::m_array[NN];Forte C++ complains about the last line:
    Error: An integer constant expression is required within the array subscript operator.
    Does anybody know what is wrong? The g++ 3.3 does not complain...
    Thanks!

    The code is OK. You have found a compiler bug.
    I have filed bug report 6324195 for you. If you have a Sun Service contract, you can arrange for them to tell you when a fix is available for you to try. Otherwise, you can check the Sun Studio patch patch every month or so to see whether the bug fix is available in a patch.
    http://developers.sun.com/prodtech/cc/downloads/patches/index.html

Maybe you are looking for