Search:

Type: Posts; User: helloworld922

Search: Search took 0.12 seconds.

  1. Replies
    13
    Views
    2,568

    [SOLVED] Re: remembering the for loop initializer

    what exactly do you want to do?
  2. Replies
    13
    Views
    2,568

    [SOLVED] Re: remembering the for loop initializer

    lol, oops. i forgot to update counter.

    int counter = 0;
    for(int i = 0;i<count1;i++)
    {
    while(mod)
    {
    stockName[counter] = portFolioStockName();
    stockSym[counter] = portFolioStockSym(); ...
  3. Replies
    13
    Views
    2,568

    [SOLVED] Re: remembering the for loop initializer

    ooh, you're adding stuff to an array from user input... in that case, i'd recommend the ArrayList class. It's simple and should fullfill all that you need. If you really want to use just an array,...
  4. Replies
    13
    Views
    2,568

    [SOLVED] Re: remembering the for loop initializer

    just don't initialize i again:


    for(;i<count1;i++)
    {
    ...
    }
Results 1 to 4 of 4