■CALENDAR■
      1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30   
<<前月 2021年09月 次月>>
■LOGIN■
現在のモード: ゲストモード
USER ID:
USER PW:
■ADMIN■
ADMIN ID:
ADMIN PW:
■NEW ENTRIES■
■CATEGORIES■
■BY CATEGORY■
■ARCHIVES■
■PROFILE■
■POWERED BY■
BLOGN(ぶろぐん)
BLOGNPLUS(ぶろぐん+)
■OTHER■
 

コンソールウィンドウの位置
//コンソール画面を移動
int
MoveConsoleWindow(int x, int y ,            // Location
                  int *width, int *height)  // Get Size
{
	char cBuff[256] = "";
	HWND hWnd;
	RECT rect;

	GetConsoleTitle(cBuff,256);
	hWnd=FindWindow(NULL,cBuff);
	GetWindowRect( hWnd, &rect );

	MoveWindow( hWnd, x, y, rect.right - rect.left , rect.bottom- rect.top, true );

	*width = rect.right - rect.left;
	*height= rect.bottom- rect.top;
	return 1;
}


| http://www.ccn.yamanashi.ac.jp/~tsuyoshi-s/blogn/blognplus/index.php?e=4 |
| C/C++ | 01:15 PM | comments (0) | trackback (0) |
VB.NET HASHの配列
そもそもHASHの配列化が良いのかどうか不明だけど.
    Console.WriteLine("*****")
    Dim ht_arr() As Hashtable
    ReDim ht_arr(10)

    For i As Integer = 0 To 9
        ht_arr(i) = New Hashtable
    Next

    For i As Integer = 0 To 9
        For j As Integer = 0 To 4
            ht_arr(i).Add("H[" + i.ToString + "," + j.ToString + "]", i * 10 + j)
        Next
    Next

    For i As Integer = 0 To 9
        For j As Integer = 0 To 4
            Dim st As String
            st = "H[" + i.ToString + "," + j.ToString + "]"
            Console.WriteLine("{0}", ht_arr(i)(st))
        Next
        Console.WriteLine("++++")
    Next


    Console.WriteLine("*****")


| http://www.ccn.yamanashi.ac.jp/~tsuyoshi-s/blogn/blognplus/index.php?e=3 |
| MEMO | 01:17 PM | comments (0) | trackback (0) |
TEST
TEST

| http://www.ccn.yamanashi.ac.jp/~tsuyoshi-s/blogn/blognplus/index.php?e=1 |
| MEMO | 11:18 PM | comments (0) | trackback (0) |
PAGE TOP ↑