Skip to content

Instantly share code, notes, and snippets.

View Mistat's full-sized avatar

Misato Mistat

  • Tailor
  • Tokyo
View GitHub Profile
package sample;
import java.util.ArrayList;
/**
* ■[java] java 修得度問題 (1)
* ひねくれてみた
* @see http://d.hatena.ne.jp/Aileron/
*/
class A<A>
{
package sample;
import java.util.HashMap;
import java.util.Map;
/**
* ■[java] java 修得度問題 (2)
* @see http://d.hatena.ne.jp/Aileron/
*/
class A
{
package sample;
/**
* ■[java] java 修得度問題 (2)
* @see http://d.hatena.ne.jp/Aileron/
*/
class A
{
static interface AA
{
String value();
#
# Install Nginx for Cent OS 32bit
# ex) FC2 VPS
#
#
# If show under error the message when execute ./configure
#
# > You can either disable the module by using --without-http_rewrite_module
# > option, or install the PCRE library into the system, or build the PCRE library
# To change this template, choose Tools | Templates
# and open the template in the editor.
import gtk, gobject, cairo
# Create a GTK+ widget on which we will draw using Cairo
class Screen(gtk.DrawingArea):
# Draw in response to an expose-event
__gsignals__ = { "expose-event": "override" }
<!--
Struts2 jsp tag
text use message resource example
http://www.docjar.com/docs/api/org/apache/struts2/components/Text.html
#
resource_name={0}月{1}日
/**
* One Class EchoBackServer
* using non-bloking nio
*/
package mistat;
import java.io.IOException;
import java.net.InetSocketAddress;
import java.nio.ByteBuffer;
#include <stdio.h>
// 素人感を+
void main()
{
int tokuten; // 得点を格納する変数宣言
printf("英語のテストの得点を入力してください\n得数="); // 入力促進の表示
scanf("%d", &tokuten); // キーボードから数字を読み込む
// 以下で判定プログラム
if (tokuten > 100) {
printf("100点以上が入力されました。\n", tokuten);
#include <stdio.h>
/**
* 変数はiからはじめて欲しいものだ。。
*/
void main()
{
int a,b,c,d,e,f,g;
printf("2つの整数を入力してください。\n");
scanf("%d,%d",&a,&b);
c = a + b;
/**
* 課題2
*
* 5つの配列を格納する配列Dataに任意の5つの数字を格納(初期値設定)して、
* 合計と平均を求めるプログラムを作成
*/
#include<stdio.h>
void main()
{