![]() |
|
#1
|
|||
|
|||
C++ questionI'm in my begginning class of C++. Can someone please tell me how to delcare a string "consumer".
Thanks in advance |
|
#2
|
||||
|
||||
|
CPP / C++ / C Code:
__________________
This message is a natural product made from recycled electrons. The slight variations in spelling and grammar enhance its individual character and beauty and in no way are to be considered flaws or defects. |
|
#3
|
|||
|
|||
Arrays or pointerschar *name = "consumer";
or char name[9] = "consumer"; // Always add one with the string length to accomodate NULL character |
Recent GIDBlog
2nd Week of IA Training by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| video editing question | Kris | Computer Software Forum - Windows | 8 | 13-Apr-2005 18:22 |
| a C input question.. | tmike | C Programming Language | 2 | 19-Sep-2003 02:39 |
| a C input question | tmike | C Programming Language | 1 | 16-Sep-2003 02:31 |
| a noobish compiler question | Charunks | CPP / C++ Forum | 5 | 03-Sep-2003 02:18 |
| Mozilla TARGET question | nickbeee | Web Design Forum | 2 | 03-Aug-2002 03:57 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The