like


....
CString name[5];
for(int i=0;i<5;i++)
name="Jack";
....


is this the right way?

Recommended Answers

All 2 Replies

It does the trick

Here is another way

CString array[5] = { "Jack","Jim","Jerry","Judy","Ralph"};
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.