Olá Mundo C,C++,C#
2 participantes
Página 1 de 1
Olá Mundo C,C++,C#
Bom eu não sou programador em C,C++ e C# mais tenho vontade de aprender no futuro ^^:
Olá Mundo C:
Olá Mundo em C++
Esse tutorial foi do site :Wiki
Olá Mundo C:
- Código:
#include <stdio.h>
int main(void)
{
printf("Olá Mundo!");
return 0;
}
Olá Mundo em C++
- Código:
#include <iostream>
int main()
{
std::cout << "Olá Mundo!";
return 0;
}
ou, equivalente:
#include <iostream>
using namespace std;
int main()
{
cout << "Olá Mundo!";
return 0;
}
- Código:
using System;
namespace HelloWordApplication
{
class HelloWorldApp
{
public static void Main()
{
Console.WriteLine("Olá Mundo!");
}
}
}
Esse tutorial foi do site :Wiki
Re: Olá Mundo C,C++,C#
C# CONSOLE APLICATION:
:infernal:
- Código:
string nome;
Console.WriteLine("Digite o nome");
nome = Console.ReadLine();
if (nome == "Raziel_br")
{
Console.WriteLine("DOTA PRO DETECTED");
}
else If (nome == "Zero")
{
Console.WriteLine("DOTA NUB DETECTED");
}
else
{
Console.WriteLine("PLAYER NORMAL DECTED");
}
Console.ReadKey();
:infernal:
Raziel_br- Número de Posts : 3346
Data de inscrição : 22/10/2008
Reputação : 53 Pontos : 32099
Re: Olá Mundo C,C++,C#
Apesar de não conheser C-Sharp '-' mais etendi o codigo que você crio ^^ vai apareser uma caixa pra você digita mensagem ^^,se digitar qual quer nome é "PLAYER NORMAL DECTED"
Se digitar Raziel_br "DOTA PRO DETECTED" e se digitar Zero "DOTA NUB DETECTED" ¬¬
vSF kkkkkkkkk
Se digitar Raziel_br "DOTA PRO DETECTED" e se digitar Zero "DOTA NUB DETECTED" ¬¬
vSF kkkkkkkkk
Re: Olá Mundo C,C++,C#
uahuahuahauha
Raziel_br- Número de Posts : 3346
Data de inscrição : 22/10/2008
Reputação : 53 Pontos : 32099
Página 1 de 1
Permissões neste sub-fórum
Não podes responder a tópicos
|
|