投稿者
 メール
  題名
  内容 入力補助お絵描き<OBJECT>タグが利用可能です。(詳細)
    
 URL
[ ケータイで使う ] [ BBSティッカー ] [ 書込み通知 ] [ teacup.コミュニティ | 画像 ] [ お絵かき ]

投稿募集! スレッド一覧

他のスレッドを探す  スレッド作成

[PR]  dazzy カラコン 通販 FX投資するならクリック証券で サルエル 星 キシリトール 歯科専用
teacup. ] [ 無料掲示板 ] [ プレミアム掲示板 ] [ みんなの掲示板 ] [ 無料ブログ ] [ チャット ] [ お絵かき twitter ]

全87件の内、新着の記事から10件ずつ表示します。 1  2  3  4  5  6  7  8  9  |  《前のページ |  次のページ》 

Java

 投稿者:天空のカナリアメール  投稿日:2011年 8月10日(水)23時38分54秒 ntoska179017.oska.nt.ftth.ppp.infoweb.ne.jp
  javaをかじって数週間の高1です。

誰かskypeで教えてくださる親切な方はコンタクトください。

ID canary7sky
 

Ruby

 投稿者:メール  投稿日:2011年 5月28日(土)17時19分12秒 KD124213246061.ppp-bb.dion.ne.jp
  僕は中2でruby言語を少しかじり始めた程度です。
どうしたら上達などできるのでしょうか?
 

FDフォーマットのサンプルコード

 投稿者:こうすけ  投稿日:2010年 9月 2日(木)02時42分9秒 113x35x237x98.ap113.ftth.ucom.ne.jp
  FD媒体をフォーマットした際に媒体使用履歴管理台帳(Excel)の固定されたセルに
使用日(YYYY/MM/DD)・使用開始時刻(hh:mm)・使用媒体番号(こちらはFDのラベル番号ではなく、媒体の外側に貼付している管理番号です)・使用者ID(数字8桁)・使用者氏名(使用者IDに対する氏名)・使用終了時刻(hh:mm)・使用用途("エラーログ取得"等の固定された文字列)を極力、自動で入力させる方法はありますでしょうか?VBAでサンプルコードがありましたら、どうぞご教示の程、宜しくお願い致します。
 

助けてください!

 投稿者:こうすけ  投稿日:2010年 9月 2日(木)02時19分39秒 113x35x237x98.ap113.ftth.ucom.ne.jp
  日付に対するマシンa~マシンgの7台の稼働時間(マシンaの1つ上の行に"時間"(1時間毎に明記・稼働時間は棒グラフでセルで30分毎に範囲が可能、セル内には"稼動"と"網掛け"がしてあります)から、稼働時間を算出するVBAでのサンプルコードはありませんか?

イメージ例(稼働時間が13:00~翌6:30までの場合)は下記です。
△は体裁を整える為に入力しただけです。

日付  機種 |9 10 11 12 13 14・・・・6 7 8 9(時間列)
△△△マシンa|
△△△マシンb|
8/29△マシンc|
(日)△マシンd|
△△△マシンe|マシン停止 |△ 稼動△ |マシン停止
△△△マシンf|
△△△マシンg|


                                ↓


△△△△△△ 1  2  3  4  5  6  7  ・・・・   28 29 30 31(日付列)
△△△マシンa
△△△マシンb
△△△マシンc
△△△マシンd
△△△マシンe△△△△△△△△△△17.5
△△△マシンf
△△△マシンg


いろいろ駆使してやりましたが、どうも分かりません。
どうぞ宜しくお願い致します。
 

助けてください。

 投稿者:プー  投稿日:2010年 7月24日(土)16時09分31秒 r-202-142-239-160.g101.commufa.jp
  はじめまして。

実はjavaの勉強を始めてばかりです。、
どうしても 課題を提出する必要がありますが、どうしてもわかりません。
お助けください。

問題 n を入力して、高さnのZ(アルファベット)を@マークを利用して、描きなさい。という問題です。
どうか よろしくお願いいたします。
 

誰か-

 投稿者:メール  投稿日:2010年 1月19日(火)11時12分11秒 pc372.mac.s.kyushu-u.ac.jp
  課題:n個の点(x1、y1)、(x2、y2)・・・(xn,yn)
   がある直線の周りに散らばっているとする。
   最小2乗法を使って直線y=a+bxで近似する。

13.031,21.969
12.968,25.291
14.610,19.506
15.776,23.440
12.922,17.387
14.293,19.734
15.725,25.773
11.346,17.017
18.723,29.794
16.139,27.198
14.941,28.635
10.889,20.341
17.984,28.816
13.923,23.929
11.351,21.335
18.586,37.849
11.996,21.201
16.576,33.312
16.308,30.975
14.119,18.871
12.586,21.139
11.648,17.581
13.750,24.815
17.776,25.821
15.385,29.036
14.960,29.579
10.052,16.803
11.160,19.827
17.758,30.532
12.905,17.643
14.135,23.231
17.106,31.112
10.540,18.766
19.141,27.008
17.619,28.896
15.706,23.297
11.127,18.181
17.869,31.985
18.610,34.409
17.870,25.917
 

五目並べのプログラム

 投稿者:  投稿日:2009年 6月10日(水)20時04分34秒 proxy.noc.kochi-tech.ac.jp
  import java.awt.*;
import java.applet.*;
import java.awt.event.*;

public class ConnectFive extends Applet implements Runnable,MouseListener {
    Phase current=new Phase();
    Image offscreen;

    public void init() {
current.resize(this);
addMouseListener(this);
    }


    public void start() {
current=new Phase();
    }

    public void update(Graphics g) {
paint(g);
    }

    public void paint(Graphics g) {
if (offscreen==null)
    offscreen=createImage(getSize().width,getSize().height);
Graphics og=offscreen.getGraphics();
current.paint(og);
g.drawImage(offscreen,0,0,this);
    }

    public void mouseClicked(MouseEvent e) {
if (current.checkmate)
    start();
else if (current.turn)
    current=current.mouse(e.getX(),e.getY());
repaint();
new Thread(this).start();
    }
    public void mouseEntered(MouseEvent e) {}
    public void mouseExited(MouseEvent e) {}
    public void mousePressed(MouseEvent e) {}
    public void mouseReleased(MouseEvent e) {}

    public void run() {
try {
    Thread.sleep(1000);
} catch (InterruptedException e) {
}
if (!current.turn)
    current=current.put();
repaint();
    }

}

class Phase {
    static int size=19, pitch=20;
    static int direction[][]={{1,0},{1,1},{0,1},{-1,1},{-1,0},{-1,-1},{0,1},{1,-1}};
    static int valuetable[][]={{0,1,4,9,20},{2,3,5,10,21},{6,7,8,11,22},{12,13,14,15,23},{16,17,18,19,24}};
    boolean color[][]=new boolean[size][size];
    boolean exist[][]=new boolean[size][size];
    boolean turn;
    boolean brandnew=false,checkmate;
    int[] point=new int[4];

    Phase() {
for (int x=0; x<size; x++) for (int y=0; y<size; y++) {
    exist[x][y]=false;
    color[x][y]=false;}
turn=true;
brandnew=true;
    }

    Phase(Phase p) {
for (int x=0; x<size; x++) for (int y=0; y<size; y++) {
    exist[x][y]=p.exist[x][y];
    color[x][y]=p.color[x][y];}
turn=p.turn;
    }

    int chain (int x, int y) {
return chain(x,y,turn);
    }

    int chain (int x,int y,boolean t) {
int[] chains=new int[8];
for (int dir=0; dir<8; dir++) {
    for (int step=1; true; step++) {
int xx=x+step*direction[dir][0];
int yy=y+step*direction[dir][1];
if (xx<0 || xx>=size || yy<0 || yy>=size || ! exist[xx][yy] || color[xx][yy]!=t) {
    chains[dir]=step-1;
    break;}}}
int largest=0;
for (int dir=0; dir<4; dir++)
    if (chains[dir]+chains[dir+4]>largest)
largest=chains[dir]+chains[dir+4];
return largest;
    }

    void examinate (int x,int y) {
int[] chains=new int[8];
for (int dir=0; dir<8; dir++) {
    for (int step=1; true; step++) {
int xx=x+step*direction[dir][0];
int yy=y+step*direction[dir][1];
if (xx<0 || xx>=size || yy<0 || yy>=size || ! exist[xx][yy] || color[xx][yy]==turn) {
    chains[dir]=step-1;
    break;}}}
int largest=0;
for (int dir=0; dir<4; dir++)
    if (chains[dir]+chains[dir+4]>3) {
largest=chains[dir]+chains[dir+4];
point[0]=x+chains[dir]*direction[dir][0];
point[1]=y+chains[dir]*direction[dir][1];
point[2]=x+chains[dir+4]*direction[dir+4][0];
point[3]=y+chains[dir+4]*direction[dir+4][1];
    }
    }

    synchronized Phase put (int x,int y) {
if (exist[x][y] || checkmate) return this;
Phase next=new Phase(this);
next.exist[x][y]=true;
next.color[x][y]=turn;
next.turn=!turn;
if (chain(x,y)>3) {
    next.checkmate=true;
    next.examinate(x,y);}
return next;
    }

    Phase mouse (int x,int y) {
return put((x-pitch/2)/pitch,(y-pitch/2)/pitch);
    }

    Phase put () {
int optimumX=size/2,optimumY=size/2;
for (int x=0; x<size; x++) for (int y=0; y<size; y++)
    if (value(x,y)>value(optimumX,optimumY)) {
optimumX=x;
optimumY=y;}
return put(optimumX,optimumY);
    }

    int value(int x,int y) {
if (exist[x][y]) return 0;
try {
    return valuetable[chain(x,y,!turn)][chain(x,y,turn)];
} catch (ArrayIndexOutOfBoundsException e) {
    return 25;
}
    }

    void resize(Applet a) {
a.resize((size+1)*pitch,(size+1)*pitch);
    }

    void paint (Graphics g) {
if (brandnew) {
    g.setColor(Color.ORANGE);
    g.fillRect(0,0,(size+1)*pitch,(size+1)*pitch);
    brandnew=false;}
     g.setColor(Color.black);
for (int x=0; x<size; x++)
    g.drawLine(pitch+pitch*x,pitch,pitch+pitch*x,pitch*size);
for (int y=0; y<size; y++)
     g.drawLine(pitch,pitch+pitch*y,pitch*size,pitch+pitch*y);
for (int x=0; x<size; x++) for (int y=0; y<size; y++)
    if (exist[x][y] && color[x][y])
g.fillOval(pitch/2+pitch*x+2,pitch/2+pitch*y+2,pitch-2,pitch-2);
g.setColor(Color.white);
for (int x=0; x<size; x++) for (int y=0; y<size; y++)
    if (exist[x][y] && !color[x][y])
g.fillOval(pitch/2+pitch*x+2,pitch/2+pitch*y+2,pitch-2,pitch-2);
if (checkmate) {
    g.setColor(Color.red);
    g.drawLine(pitch+pitch*point[0],pitch+pitch*point[1],pitch+pitch*point[2],pitch+pitch*point[3]);}
    }
}

このプログラムのclass phaseの内容がわかる人解説お願いします。
 

不適切投稿について

 投稿者:Kaneshiro(管理者)  投稿日:2009年 5月25日(月)21時28分30秒 sannin29088.nirai.ne.jp
  投稿者:俺スーパーモバイラー
投稿日:2009年05月24日(日)15時45分41秒
リモートアドレス:p34084-ipbffx02marunouchi.tokyo.ocn.ne.jp(220.96.47.84)
俺スーパーモバイラーの投稿は、4.にふさわしくない内容の投稿をしたため、削除しました。
 

不適切投稿について

 投稿者:Kaneshiro(管理者)  投稿日:2009年 3月23日(月)21時18分16秒 sannin29088.nirai.ne.jp
  投稿者:kae
投稿日:2009年03月20日(金)23時07分24秒
リモートアドレス:FL1-118-110-88-40.aic.mesh.ad.jp(118.110.88.40)

kaeの投稿は、4.にふさわしくない内容の投稿をしたため、削除しました。
 

(無題)

 投稿者:Kaneshiro(管理者)  投稿日:2009年 3月16日(月)21時04分31秒 sannin29088.nirai.ne.jp
  投稿日:2009年03月16日(月)00時48分26秒
に投稿されたものは、
4.にふさわしくない内容の投稿をしたため、削除しました。
 

以上は、新着順1番目から10番目までの記事です。 1  2  3  4  5  6  7  8  9  |  《前のページ |  次のページ》 
/9 


[PR] ヒアルロン酸注射