×
Namespaces

Variants
Actions
(Difference between revisions)

Archived:Helloworld em modo console

From Nokia Developer Wiki
Jump to: navigation, search
cabezonxdg (Talk | contribs)
m
hamishwillee (Talk | contribs)
m (Hamishwillee - Automated change of category from Lang-PT to Unlikely Category. (Moving))
Line 29: Line 29:
 
</code>
 
</code>
  
[[Category: Lang-PT]]
+
[[Category:Lang-Portuguese]]
[[Category:Symbian C++ (Português)]]
+
[[Category:Symbian C++]]
[[Category:Exemplos de código Symbian C++]]
+
[[Category:Code Examples]]

Revision as of 08:41, 14 July 2011

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