Click here to Skip to main content
13,249,504 members (56,867 online)
Click here to Skip to main content

Tagged as

Stats

0 views
Posted 13 Nov 2012

Help Pointers and chars in C++;

, 13 Nov 2012
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 2:37 Available CPallini
Updates in content. 20 changes had been made.
2 No 13-Nov-12 2:37 Available CPallini
Updates in content. 38 changes had been made.
1 No 13-Nov-12 2: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
Permalink | Advertise | Privacy | Terms of Use | Mobile
Web04 | 2.8.171114.1 | Last Updated 13 Nov 2012
Article Copyright 2012 by CPallini
Everything else Copyright © CodeProject, 1999-2017
Layout: fixed | fluid