×
Namespaces

Variants
Actions
(Difference between revisions)

Archived:Helloworld em modo console

From Nokia Developer Wiki
Jump to: navigation, search
lpvalente (Talk | contribs)
m (Lpvalente -)
lpvalente (Talk | contribs)
m (Lpvalente -)
Line 1: Line 1:
 
[[Category:Lang-Portuguese]][[Category:Symbian C++]][[Category:Code Examples]]
 
[[Category:Lang-Portuguese]][[Category:Symbian C++]][[Category:Code Examples]]
{{Archived|Lang=Portuguese|timestamp=20120309123400|user=[[User:Lpvalente|Lpvalente]]|Text explaining alternatives (optional)}}
+
{{ArchivedlLanguage=Lang-Portuguese|timestamp=20120309123400|user=[[User:Lpvalente|Lpvalente]]|Text explaining alternatives (optional)}}
  
 
{{ArticleMetaData
 
{{ArticleMetaData

Revision as of 15:35, 9 March 2012

Template:ArchivedlLanguage=Lang-Portuguese

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