RSS Forums RSS
Please support our C++ advertiser: Programming Forums

Problem with Character Arrays

Join Date: Feb 2005
Posts: 464
Reputation: winbatch is on a distinguished road 
Rep Power: 4
Solved Threads: 18
winbatch's Avatar
winbatch winbatch is offline Offline
Posting Pro in Training

Re: Problem with Character Arrays

  #5  
Jul 25th, 2005
You can't print it out like that...cout looks for the null terminator.


If you want, increase the length of each member of the struct, then put a '\0' in the last character, then print it out.
Reply With Quote  
Forums | Blogs | Tutorials | Code Snippets | Whitepapers | RSS Feeds | Advertising
All times are GMT -4. The time now is 10:57 pm.
Newsletter Archive - Sitemap - Privacy Statement - Acceptable Use Policy - Contact Us
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC