×
Namespaces

Variants
Actions
Revision as of 15:34, 9 March 2012 by lpvalente (Talk | contribs)

Archived:Helloworld em modo console

From Nokia Developer Wiki
Jump to: navigation, search

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;
}
67 page views in the last 30 days.

Was this page helpful?

Your feedback about this content is important. Let us know what you think.

 

Thank you!

We appreciate your feedback.

×