พอดีผมมีโค้ตอยู่อะคับว่า
#include <stdio.h>
#include <time.h>
void main( )
{
char dateStr [9];
_strdate( dateStr);
printf( "The current date is %s \n", dateStr);
}
อยากรู้ว่า
#include <time.h> กับ _strdate( dateStr); คืออะไรคับ ใช้ยังไง
อยากรู้คำอธิบายความหมาย ฟังก์ชั้น C++ คับ
Moderators: mindphp, ผู้ดูแลกระดาน
-
- PHP Newbie
- Posts: 1
- Joined: 27/02/2012 10:00 pm
-
- PHP Newbie
- Posts: 4
- Joined: 30/05/2012 2:30 pm
Re: อยากรู้คำอธิบายความหมาย ฟังก์ชั้น C++ คับ
ผมก้ไม่ค่อยรู้เหมือนกันครับแต่เอาใจช่วยได้แต่หาข้อมูลมาให้ละกันนะ headerfile time.h แสดงว่าจะต้องมีการใช้งานฟังก์ชั่นอะไรสักอย่างที่เกี่ยวกันที่ พวกวันเวลา อะไรอย่างงี้อะครับ
ลิงค์ .h
http://www.cplusplus.com/reference/clibrary/ctime/time/
อีกอันนึง น่าจะเอาไว้เก็บค่าวันนที่วันเวลาอะครับ ลองศึกษาดูนะครับ
http://www.rfoinc.com/docs/qnx/watcom/c ... rdate.html
ลิงค์ .h
http://www.cplusplus.com/reference/clibrary/ctime/time/
อีกอันนึง น่าจะเอาไว้เก็บค่าวันนที่วันเวลาอะครับ ลองศึกษาดูนะครับ
http://www.rfoinc.com/docs/qnx/watcom/c ... rdate.html
-
- PHP Super Member
- Posts: 480
- Joined: 25/01/2010 11:57 pm
- Contact:
Re: อยากรู้คำอธิบายความหมาย ฟังก์ชั้น C++ คับ
_strdate( dateStr)
คือฟังก์ชั่นคืนค่าวันที่กลับมา ในรูปแบบของ String จึงต้องใช้ตัวแปร Array มารับค่า
ฟังก์ชั่นนี้ถูกนิยามไว้ใน library time.h จำเป็นต้อง include มาด้วยไม่งั้นจะไม่สามารถใช้งาน strdate ได้
คือฟังก์ชั่นคืนค่าวันที่กลับมา ในรูปแบบของ String จึงต้องใช้ตัวแปร Array มารับค่า
ฟังก์ชั่นนี้ถูกนิยามไว้ใน library time.h จำเป็นต้อง include มาด้วยไม่งั้นจะไม่สามารถใช้งาน strdate ได้
-
- Similar Topics
- Replies
- Views
- Last post
-
-
ฟังก์ชัน date_sunrise()ดูเวลาพระอาทิตย์ขึ้น และ ฟังก์ชัน date_sunset() ดูเวลาพระอาทิตย์ตก
by Patipat » 22/07/2019 11:07 am » in PHP Knowledge - 0 Replies
- 363 Views
-
Last post by Patipat
22/07/2019 11:07 am
-
-
- 0 Replies
- 391 Views
-
Last post by offing
10/12/2014 6:35 pm
-
- 0 Replies
- 1500 Views
-
Last post by offing
11/12/2014 3:39 pm
-
- 1 Replies
- 344 Views
-
Last post by P'Eak
23/08/2017 9:16 pm
-
- 2 Replies
- 281 Views
-
Last post by Patipat
02/07/2019 7:04 pm
-
-
ฟังก์ชัน -> get ใช้ดึงค่าพารามิเตอร์ตามที่กำหนด
by Patipat » 03/08/2019 4:39 pm » in Joomla Developing Knowledge - 0 Replies
- 496 Views
-
Last post by Patipat
03/08/2019 4:39 pm
-
-
- 2 Replies
- 349 Views
-
Last post by Patipat
02/07/2019 8:44 pm
-
-
ฟังก์ชัน call_user_func() - เป็นการเรียกใช้ฟังก์ชันที่ประกาศไว้ก่อนแล้ว
by Patipat » 19/07/2019 1:47 pm » in PHP Knowledge - 0 Replies
- 164 Views
-
Last post by Patipat
19/07/2019 1:47 pm
-
Who is online
Users browsing this forum: No registered users and 7 guests