|
From: <Mat...@Ve...> - 2005-04-26 15:31:24
|
Yes, using the <string> header, you get a string type. std::string array[50]; array[0]="foo bar baz boo"; array[1]="qux quux quuux quuuux"; ...and so on! The cool thing with string is that they're much easier to deal with than char* . They resize themselves automatically so you don't have to worry about the pointers yourself. HTH! Matt -----Original Message----- From: dev...@li... [mailto:dev...@li...]On Behalf Of Alexsandro Meireles Sent: Monday, April 25, 2005 10:00 PM To: Dev C++ Subject: [Dev-C++] Sentences in a array Hi, dev-c++ users! Do you know if it is possible to put sentences in an array in the following way? array[0] = "sentence 1"; array[1] = "sentence 2" and so on... Any suggestion for this matter, i.e., to put sentences in a array? Tks in advance!!! -- Alexsandro Meireles ___________________________________________________________________ The information contained in this message and any attachment may be proprietary, confidential, and privileged or subject to the work product doctrine and thus protected from disclosure. If the reader of this message is not the intended recipient, or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify me immediately by replying to this message and deleting it and all copies and backups thereof. Thank you. |