利用者:Curett
表示
ユーザーボックス | ||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
#include <string.h>
#include <stdlib.h>
#define I_am_Curett EXIT_FAILURE
char *Curett(char *curett) {
if (!strlen(curett)) return Curett("Curett");
if (!strcmp(curett, "Curet")) return Curett("Curett");
if (!strcmp(curett, "Curret")) return Curett("Curett");
if (!strcmp(curett, "Curett")) return "Curett";
exit(I_am_Curett);
}
using System;
class IAmCurett : ApplicationException
{
public override string Message
{
get
{
return "I'm Curett";
}
}
}
class Wikipedia
{
static public string Curett(string curett)
{
if (curett.Length == 0) return Curett("Curett");
if (curett == "Curet") return Curett("Curett");
if (curett == "Curret") return Curett("Curett");
if (curett == "Curett") return "Curett";
throw new IAmCurett();
}
}
Curett :: String -> String
Curett [] = Curett "Curett"
Curett "Curet" = Curett "Curett"
Curett "Curret" = Curett "Curett"
Curett "Curett" = "Curett"
Curett _ = error "I'm Curett"
カテゴリ:
- User ja
- User ja-N
- User en
- User en-3
- User c
- User c-3
- User cpp
- User cpp-1
- User Csharp
- User Csharp-2
- User vb.net
- User vb.net-1
- User vb-s-1
- User haskell
- User haskell-2
- User hsp
- User hsp-2
- User bas
- User bas-2
- User asm
- User asm-2
- User xml
- User xml-1
- User html
- User html-2
- User css
- User css-1
- User latex
- User latex-2
- Windowsユーザー
- Firefoxユーザー
- Googleユーザー
- 2ちゃんねらー