cmd
regedit
Key name: HKEY_CURRENT_USER\Software\Microsoft\Command Processor
Name: Autorun
Type: REG_SZ
Value: cd /d “%USERPROFILE%\Desktop” && title Phung Van Huy – Console
Now, enjoy: cmd
cmd
regedit
Key name: HKEY_CURRENT_USER\Software\Microsoft\Command Processor
Name: Autorun
Type: REG_SZ
Value: cd /d “%USERPROFILE%\Desktop” && title Phung Van Huy – Console
Now, enjoy: cmd
Về lý thuyết thì: Chỉ có số ngày trong tháng 2 là thay đổi theo năm. Còn lại đều không đổi.
– Mảng 12 phần tử ứng với số ngày của 12 tháng, mặc định tháng 2 coi như 28 ngày.
– Đang tính số ngày trong tháng mấy? Có phải tháng 2 không
+ Không => Xong, tra theo phần tử tương ứng trong mảng
+ Có: – Năm nhuận không? + Có thì trả về 29 + Không thì trả về 28
Tháng 1 – 31 ngày
Tháng 2 – ? ngày
Tháng 3 – 31 ngày
Tháng 4 – 30 ngày
Tháng 5 – 31 ngày
Tháng 6 – 30 ngày
Tháng 7 – 31 ngày
Tháng 8 – 31 ngày
Tháng 9 – 30 ngày
Tháng 10 – 31 ngày
Tháng 11 – 30 ngày
Tháng 12 – 31 ngày
Năm nhuận là năm: (Chia hết cho 400) hoặc (chia hết cho 4 nhưng ko chia hết cho 100)
Về sử dụng, sao ko tận dụng hàm có sẵn nhỉ?
Javascript:
return new Date(2010, 2, 0).getDate();
PHP:
return cal_days_in_month(CAL_GREGORIAN, 2, 2010);
VietinBank – Vietnam Bank for Industry and Trade
Server: Oracle-Application-Server-10g/10.1.3.1.0 Oracle-HTTP-Server
X-Powered-By: Servlet/2.5 JSP/2.1
org.opencms.file.CmsVfsResourceNotFoundException: Error reading resource from path “/vn/product/card/leftblock/atmonline/registration/index.html”.
Làm sao tạo ra cái bảng như thế này, nếu không dùng IDE kéo thả?

<table border="1">
<tr>
<td rowspan="2">Khu vực</td>
<td colspan="2">3 nam giàu nhất</td>
<td colspan="2">3 nữ giàu nhất</td>
</tr>
<tr>
<td>Tên</td>
<td>Tiền</td>
<td>Tên</td>
<td>Tiền</td>
<tr>
<tr>
<td rowspan="4">Nam Trung Bộ</td>
</tr>
<tr>
<td>1. </td>
<td>?</td>
<td>1. </td>
<td>?</td>
</tr>
<tr>
<td>2. </td>
<td>?</td>
<td>2. </td>
<td>?</td>
</tr>
<tr>
<td>3. </td>
<td>?</td>
<td>3. </td>
<td>?</td>
</tr>
<tr>
<td rowspan="4">Bắc Bộ</td>
</tr>
<tr>
<td>1. </td>
<td>?</td>
<td>1. </td>
<td>?</td>
</tr>
<tr>
<td>2. </td>
<td>?</td>
<td>2. </td>
<td>?</td>
</tr>
<tr>
<td>3. </td>
<td>?</td>
<td>3. </td>
<td>?</td>
</tr>
</table>
Class LaptopComputer
Private modOwner
Private Sub Class_Initialize( )
'Initalization code goes here
WScript.Echo "Hi!"
modOwner = "Phung Van Huy"
End Sub
Private Sub Class_Terminate( )
'Termination code goes here
WScript.Echo "Die!"
End Sub
Public Property Let CompOwner(strOwner)
modOwner = strOwner
End Property
Public Property Get CompOwner()
CompOwner = modOwner
End Property
Public Function GetOwner()
GetOwner = modOwner
End Function
End Class
Dim oLC
Set oLC = New LaptopComputer
WScript.Echo oLC.CompOwner
oLC.CompOwner = "Changed Value"
WScript.Echo oLC.GetOwner()
Set oLC = Nothing