Click here to Skip to main content
12,502,836 members (62,390 online)
Click here to Skip to main content

Tagged as

Stats

0 views
Posted

Help Pointers and chars in C++;

, 13 Nov 2012 CPOL
Quote:cout<<*name;You should write insteadcout << name;By the way you shouldn't store a pointer to the original character array (it could be a temporary). You should instead copy the array content. Even better you could use a std::string:#include "stdafx.h"#include...

Revisions


  

Compare Revision Minor Date Status Editor
3 - publicly available Yes 13-Nov-12 7:37 Available CPallini
Updates in content. 20 changes had been made.
2 No 13-Nov-12 7:37 Available CPallini
Updates in content. 38 changes had been made.
1 No 13-Nov-12 7:36 Available CPallini

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

CPallini
Software Developer (Senior) AEM S.p.A.
Italy Italy




Debugging? Klingons do not debug. Our software does not coddle the weak. Bugs are good for building character in the user.
-- The Klingon programmer


Beelzebub for his friends [^].




You may also be interested in...

Pro
Pro
| Advertise | Privacy | Terms of Use | Mobile
Web01 | 2.8.160919.1 | Last Updated 13 Nov 2012
Article Copyright 2012 by CPallini
Everything else Copyright © CodeProject, 1999-2016
Layout: fixed | fluid