CString array definition

This is a discussion on CString array definition within the Windows Programming forums, part of the Platform Specific Boards category; hi all, i wanna define CString array with size 10 but i found that i cannot use this to allocate: ...

  1. #1
    Registered User
    Join Date
    Nov 2007
    Posts
    74

    CString array definition

    hi all,
    i wanna define CString array with size 10 but i found that i cannot use this to allocate:
    CString arr[10];

    how can i define CString array? thanks!!

  2. #2
    C++まいる!Cをこわせ! Elysia's Avatar
    Join Date
    Oct 2007
    Posts
    22,413
    Sure you can do that. It's no different from any other type.
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. 2d array question
    By gmanUK in forum C Programming
    Replies: 2
    Last Post: 04-21-2006, 12:20 PM
  2. question about multidimensional arrays
    By richdb in forum C Programming
    Replies: 22
    Last Post: 02-26-2006, 08:51 AM
  3. Template Array Class
    By hpy_gilmore8 in forum C++ Programming
    Replies: 15
    Last Post: 04-11-2004, 11:15 PM
  4. Help with CString class and operator+ overloading
    By skanxalot in forum C++ Programming
    Replies: 2
    Last Post: 10-07-2003, 10:23 AM
  5. extern array definition
    By achacha in forum C Programming
    Replies: 2
    Last Post: 08-05-2002, 02:10 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21