×
Namespaces

Variants
Actions
(Difference between revisions)

Archived:Helloworld em modo console

From Nokia Developer Wiki
Jump to: navigation, search
cabezonxdg (Talk | contribs)
m
cabezonxdg (Talk | contribs)
m
Line 31: Line 31:
 
[[Category: Lang-PT]]
 
[[Category: Lang-PT]]
 
[[Category:Symbian C++ (Português)]]
 
[[Category:Symbian C++ (Português)]]
 +
[[Category:Exemplos de código Symbian C++]]

Revision as of 19:40, 24 April 2008

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;
}
66 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.

×