æ±æ¹ç®ç¨è - ãã£ãããã! VC++8.0以éã®ç¬èªè¨èªæ¡å¼µã§for eachãããã¾ã ããã¯C#ã®foreachã¨åæ§ã®èµ°æ»ãã§ãã¾ã for eachãC++/CLI(/clrãªãã·ã§ã³)ã®ã¿ã® æ©è½ã ã¨æã£ã¦ãã人ãå¤ãã£ãããã§ãããå®ã¯/clrãªãã·ã§ã³ã使ãå¿ è¦ã¯ããã¾ãã NativeãªSTLã®ã³ã³ããã«ãé©ç¨ã§ãã¾ã ã»STLã®ã³ã³ãã #include <iostream> #include <vector> using namespace std; int main() { vector<int> v; v.push_back(3); v.push_back(1); v.push_back(4); for each (int value in v) { cout << value << endl; } return 0; } ã»èªä½ã³ã³ãã(boost::arra
{{#tags}}- {{label}}
{{/tags}}