File indexing completed on 2026-04-09 07:49:22
0001
0002
0003 #include <string>
0004 #include <iostream>
0005
0006 struct A
0007 {
0008 static const int NUM_PV = 6 ;
0009 static const char* PV[NUM_PV] ;
0010 static std::string PVS[NUM_PV] ;
0011
0012 };
0013
0014 const char* A::PV[NUM_PV] = {
0015 "red",
0016 "green",
0017 "blue",
0018 "cyan",
0019 "magenta",
0020 "yellow"
0021 };
0022
0023
0024 std::string A::PVS[NUM_PV] = {
0025 "red",
0026 "green",
0027 "blue",
0028 "cyan",
0029 "magenta",
0030 "yellow"
0031 };
0032
0033
0034 int main(int argc, char** argv)
0035 {
0036 for(unsigned i=0 ; i < A::NUM_PV ; i++) std::cout << A::PV[i] << std::endl ;
0037 std::cout << "----" << std::endl ;
0038 for(unsigned i=0 ; i < A::NUM_PV ; i++) std::cout << A::PVS[i] << std::endl ;
0039 return 0 ;
0040 }