Translations:Development/Tutorials/Common Programming Mistakes/36/pt-br: Difference between revisions

From KDE TechBase
(Created page with "</syntaxhighlight>")
 
No edit summary
 
Line 1: Line 1:
<syntaxhighlight lang="cpp-qt">
// Correct!
static const char SomeString[] = "Example";
// Wrong!
static const char* SomeString = "Example";
// Wrong!
#define SomeString "Example"
</syntaxhighlight>
</syntaxhighlight>

Latest revision as of 21:24, 3 December 2019

Information about message (contribute)
This message has no documentation. If you know where or how this message is used, you can help other translators by adding documentation to this message.
Message definition (Development/Tutorials/Common Programming Mistakes)
<syntaxhighlight lang="cpp-qt">
// Correct!
static const char SomeString[] = "Example";
// Wrong!
static const char* SomeString = "Example";
// Wrong!
#define SomeString "Example"
</syntaxhighlight>
// Correct!
static const char SomeString[] = "Example";
// Wrong!
static const char* SomeString = "Example";
// Wrong!
#define SomeString "Example"