×
Namespaces

Variants
Actions
(Difference between revisions)

Archived:Helloworld em modo console

From Nokia Developer Wiki
Jump to: navigation, search
hamishwillee (Talk | contribs)
m (Hamishwillee - Bot addition of Template:ArticleMetaData)
lpvalente (Talk | contribs)
m (Lpvalente -)
Line 1: Line 1:
 +
[[Category:Lang-Portuguese]][[Category:Symbian C++]][[Category:Code Examples]]
 +
{{Archived|timestamp=20120309123400|user=[[User:Lpvalente|Lpvalente]]|Text explaining alternatives (optional)}}
 +
 
{{ArticleMetaData
 
{{ArticleMetaData
 
|sourcecode= <!-- Link to example source code e.g. [[Media:The Code Example ZIP.zip]] -->
 
|sourcecode= <!-- Link to example source code e.g. [[Media:The Code Example ZIP.zip]] -->
Line 21: Line 24:
 
|creationdate=20080424
 
|creationdate=20080424
 
|author=[[User:Cabezonxdg]]
 
|author=[[User:Cabezonxdg]]
}}Exemplo do Hello World em modo Console para Symbian OS.  
+
}}
 +
 
 +
{{Abstract|Exemplo do Hello World em modo Console para Symbian OS.}}
  
 
<code cpp>
 
<code cpp>
Line 50: Line 55:
 
}
 
}
 
</code>
 
</code>
 
[[Category:Lang-Portuguese]]
 
[[Category:Symbian C++]]
 
[[Category:Code Examples]]
 

Revision as of 15:34, 9 March 2012

Archived.pngArchived: This article is archived because it is not considered relevant for third-party developers creating commercial solutions today. If you think this article is still relevant, let us know by adding the template {{ReviewForRemovalFromArchive|user=~~~~|write your reason here}}.

Text explaining alternatives (optional)

Article Metadata

Artigo
Criado por cabezonxdg em 24 Apr 2008
Última alteração feita por lpvalente em 09 Mar 2012

Exemplo do Hello World em modo Console para Symbian OS.

#include <e32base.h>
#include <e32cons.h>
 
TInt E32Main()
{
CConsoleBase* gConsole; // Criação do console
_LIT(KTituloConsole, "Aplicação console");
_LIT(KOlaMundo, "Ola Mundo!");
gConsole = Console::NewL(KTituloConsole, TSize(KConsFullScreen,KConsFullScreen)); // Instancialização do console
gConsole->Printf(KOlaMundo);
User::After(100000000); // pausa a aplicação por 100000000 microsegundos.
 
return 1;
}

Mesmo exemplo na linguagem C para desktop.

int main()
{
const char* olaMundo = "Ola Mundo!";
printf(olaMundo);
return 1;
}
65 page views in the last 30 days.
×