Separating Declaration and Assignment

I have a C++ statement.
I want to separate it into 2, like this:

If I see this:
int n = 1;
I can wrtie this too:
int n;
n = 1;

If I see this:
Bitmap^ bp = gcnew Bitmap(......)
I can write this too:
Bitmap^ bp;
bp = gcnew Bitmap(......)


Now, I see this:

 
array<array<float>^>^ptsArray =	{	gcnew array<float> {1, 0, 0, 0, 0}, gcnew array<float> {0, 1, 0, 0, 0}, gcnew array<float> {0, 0, 1, 0, 0}, gcnew array<float> {0, 0, 0, static_cast<float>(Transparency_Char), 0}, gcnew array<float> {0, 0, 0, 0, 1}};


I don't know how to deal with this.....can anyone help?
closed account (EzwRko23)
You can't. This is another inconsistency in the language. :D
However, C++0x should probably solve this.

Anyway: may I ask why do you use a garbage collector in C++?
Last edited on
The above is not C++, it's C++/CLI
Topic archived. No new replies allowed.