Example Source Code:strncpy(參數1,參數2,參數3),指定參數3長度,參數2 複製到 參數1。
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int main(int argc, char *argv[])
{
char strncpy_a[5]={'a','b','c','d','\0'};
char strncpy_b[5];
strncpy_b[2]=0x00;
strncpy(strncpy_b,strncpy_a,2);
printf("%s",strncpy_b);
return 0;
}
//Answer:
//ab
mitblog 發表在 痞客邦 留言(0) 人氣()
Example Source Code:strcpy(參數1,參數2),將參數2 複製到 參數1。
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int main(int argc, char *argv[])
{
char strcpy_a[5]={'a','b','c','d','\0'};
char strcpy_b[5];
strcpy(strcpy_b,strcpy_a);
printf("%s",strcpy_b);
return 0;
}
//Answer:
//abcd
mitblog 發表在 痞客邦 留言(0) 人氣()
勞退新制,除了規定企業主必須替員工提繳薪資的6%作為退休金之外,勞工(員工)也可以在月薪的1%~6%範圍內,自願提
撥退休金,當然,也可以選擇完全不提。
mitblog 發表在 痞客邦 留言(0) 人氣()
1.在薪資單上公司提撥寫的很高,不知是不是真的有提撥這麼多要怎麼查看呢?
mitblog 發表在 痞客邦 留言(0) 人氣()
How to Get Facebook ID? 取得 Facebook ID。
Your Computer need already installed Microsoft .NET Framework 3.5 between 4.0 version.
mitblog 發表在 痞客邦 留言(0) 人氣()