2011年5月22日 星期日

apache httpd.conf virtual directory

Apache virtual directory設定:

以windows 7安裝appserv為例
appserv www 目錄在 C:\AppServ\www
想要新增一virtual directory取代本機端檔案夾目錄

找到apache的httpd.conf
以我的安裝為例, C:\AppServ\Apache2.2\conf

在空白處加上:

2011年5月16日 星期一

[C] read txt file number and separate save

ex:
輸入:
1 5 3 5
23 59 0 34
21 33 21 10
0 0 0 0

輸出 :
1 5 3 5
23 59 0 34
21 33 21 10
0 0 0 0


#include<stdio.h>

int main( void )
{
    int h1 , m1 , h2 , m2;
    while(1)
    {

[C#] Console.ReadLine txt file

ex:
輸入:
1 5 3 5
23 59 0 34
21 33 21 10
0 0 0 0

輸出 :
1 5 3 5
23 59 0 34
21 33 21 10


using System;
using System.Collections.Generic;
using System.Text;
using System.IO;
using System.Collections;

namespace ConsoleApplication1
{
    class Program
    {
        static void Main(string[] args)
        {   
            string line;
            while( (line=Console.ReadLine()) != null)

[VB] Console.ReadLine txt file

 ex:
輸入:
1 5 3 5
23 59 0 34
21 33 21 10
0 0 0 0

輸出 :
1 5 3 5
23 59 0 34
21 33 21 10


Imports System
Imports Microsoft.VisualBasic
Imports System.IO
Imports System.Collections

Module Module1
    Sub Main()       
        Dim intA, intB, intC, intD As Integer
        Dim intTotal As Integer
        intTotal = 0
        Dim line As String

        DO