Click here to Skip to main content
15,746,420 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
if (row_count > 0 && column_count > 0)
      rows = row_count;
      cols = column_count;

      p = new double*[rows];
      for (int r = 0; r < rows; r++)
        p[r] = new double[cols];

        // initially fill in zeros for all values in the matrix;
.****** for (int c = 0; c < cols; c++)(THE FUNCTION CONTAINING "FOR" NOT EXPANDED INLINE***********************
          p[r][c] = 0;

[edit]SHOUTING removed - OriginalGriff[/edit]
Updated 3-Dec-11 21:31pm
OriginalGriff 4-Dec-11 3:31am    
DON'T SHOUT. Using all capitals is considered shouting on the internet, and rude (using all lower case is considered childish). Use proper capitalisation if you want to be taken seriously.
carlmack 4-Dec-11 3:35am    
Ok Original, just a little bit out of it, just trying to get this working properly, and am not being rude , just tired have not slept 4 days almost. I will try to be more alert, dont know by how much
carlmack 4-Dec-11 3:36am    
Can you tell me whats the reason for all these warnings?
carlmack 4-Dec-11 3:40am    
I am very new to this, topic, fairly and i wand to be finish. so each day i spen here i learn quite a lot. Thank you
OriginalGriff 4-Dec-11 4:06am    
You are welecome

1 solution

Borland considers constructors created in the body of the class as implicitly inline - but it won't have anything to do with for loops in inline code, so it complains.
Move the code into a separate function, and call that from the constructor instead. The error will go away.

You could have found this out yourself with a simple google - if you search on an error message you normally find loads of other people have met it before, and posted solutions. It can save you a lot of time an d effort if you do such basic research yourself!
Share this answer

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900