no= {0,3,4,6,1,2,5,7};
in
Programming Questions
•
2 years ago
no= {0,3,4,6,1,2,5,7};
How come such an assignment can not be done (except in an initial declaration)?
It is very inconvenient to have to spell it one by one, specially for many longer arrays.
This is a very natural statement, and could easily be allowed.
- int[] no;
- void setup() {
size(120,120);
noLoop();
no=new int[8];
no= {
0,3,4,6,1,2,5,7
};
} - void draw() {
}
1