Sponsored Links

code snippets(一):isupper(參數),判斷是否為大寫英文字母。

#include "stdafx.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>

int main(int argc, char *argv[])
{
        //isupper(參數)
        //參數:是否為大寫英文字母,條件成立,回傳非 0 值,否則回傳 0。
        if(isupper('A'))
        {
                printf("參數是大寫字元\n");
        }
        else
        {
                printf("參數是非大寫字元\n");
        }
        return 0;
}
//Answer:參數是大寫字元

文章標籤

mitblog 發表在 痞客邦 留言(0) 人氣()

code snippets(一):isspace(參數),判斷是否為空白字元。

#include "stdafx.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>

int main(int argc, char *argv[])
{
        //isspace(參數)
        //參數:是否為空白字元,條件成立,回傳非 0 值,否則回傳 0。
        if(isspace(' '))
        {
                printf("參數是空白字元\n");
        }
        else
        {
                printf("參數是非空白字元\n");
        }
        return 0;
}
//Answer:參數是空白字元

文章標籤

mitblog 發表在 痞客邦 留言(0) 人氣()

code snippets(一):ispunct(參數),判斷是否為顯示字元,不包含空白、字母、數字字元。

#include "stdafx.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>

int main(int argc, char *argv[])
{
        //ispunct(參數)
        //參數:是否為顯示字元,不包含空白、字母、數字字元,條件成立,回傳非 0 值,否則回傳 0。
        // if parameter is any below values.
        //! " # % &  ' ( ) ; < = >> ? 
        //[ \ ] * + , - . / : ^ _ { | } ~
        if(ispunct('%'))
        {
                printf("參數非包含空白、字母、數字字元\n");
        }
        else
        {
                printf("參數是包含空白、字母、數字字元\n");
        }
        return 0;
}
//Answer:參數非包含空白、字母、數字字元

文章標籤

mitblog 發表在 痞客邦 留言(0) 人氣()

code snippets(一):isprint(參數),判斷是否為含括空格以內可印字元。

#include "stdafx.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>

int main(int argc, char *argv[])
{
        //isprint(參數)
        //參數:是否為含括空格以內可印字元。
        //例如:顯示字元,0x20 (' ')到0x7E ('~'),條件成立,回傳非 0 值,否則回傳 0。
        if(isprint('~'))
        {
                printf("參數是顯示字元 0x20(' ')到0x7E('~')\n");
        }
        else
        {
                printf("參數非顯示字元 0x20(' ')到0x7E('~')\n");
        }
        return 0;
}
//Answer:參數是顯示字元 0x20(' ')到0x7E('~')

文章標籤

mitblog 發表在 痞客邦 留言(0) 人氣()

code snippets(一):islower(參數),判斷是否為小寫英文字母。

#include "stdafx.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>

int main(int argc, char *argv[])
{
        //islower(參數)
        //參數:是否為小寫英文字母,條件成立,回傳非 0 值,否則回傳 0。
        if(islower('A'))
        {
                printf("參數是小寫字元\n");
        }
        else
        {
                printf("參數非小寫字元\n");
        }
        return 0;
}
//Answer:參數非小寫字元

文章標籤

mitblog 發表在 痞客邦 留言(0) 人氣()

code snippets(一):isgraph(參數),判斷是否是顯示字元,不包含空白字元。

#include "stdafx.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>

int main(int argc, char *argv[])
{
        //isgraph(參數)
        //參數:是否是顯示字元,不包含空白字元,條件成立,回傳非 0 值,否則回傳 0。
        if(isgraph(' '))
        {
                printf("參數是顯示字元\n");
        }
        else
        {
                printf("參數非顯示字元\n");
        }
        return 0;
}
//Answer:參數非顯示字元

文章標籤

mitblog 發表在 痞客邦 留言(0) 人氣()

code snippets(一):isdigit(參數),判斷是否為數字。

#include "stdafx.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>

int main(int argc, char *argv[])
{
        //isdigit(參數)
        //參數:是否為數字,條件成立,回傳非 0 值,否則回傳 0。
        if(isdigit('5'))
        {
                printf("參數是數字\n");
        }
        else
        {
                printf("參數非數字\n");
        }
        return 0;
}
//Answer:參數是數字

文章標籤

mitblog 發表在 痞客邦 留言(0) 人氣()

code snippets(一):int iscntrl(參數),判斷是否為 ASCII 控制字元。

#include "stdafx.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>

int main(int argc, char *argv[])
{
        //iscntrl(參數)
        //參數:是否為 ASCII 控制字元,條件成立,回傳非 0 值,否則回傳 0。
        if(isalpha('A'))
        {
                printf("參數是 ASCII 控制字元\n");
        }
        else
        {
                printf("參數非 ASCII 控制字元\n");
        }
        return 0;
}
//Answer:參數是 ASCII 控制字元

文章標籤

mitblog 發表在 痞客邦 留言(0) 人氣()

code snippets(一):isalpha(參數),判斷是否為字母。

#include "stdafx.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>

int main(int argc, char *argv[])
{
        //int tf=isalpha('5');
        //isalpha(參數)
        //參數:是否為字母,條件成立,回傳非 0 值,否則回傳 0。
        if(isalpha('5'))
        {
                printf("參數是字母\n");
        }
        else
        {
                printf("參數非字母\n");
        }
        return 0;
}
//Answer:參數非字母

文章標籤

mitblog 發表在 痞客邦 留言(0) 人氣()

code snippets(一):isalnum(參數),判斷是否為字母或數字。

#include "stdafx.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>

int main(int argc, char *argv[])
{
        //isalnum(參數)
        //參數:是否為字母或數字,條件成立,回傳非 0 值,否則回傳 0。
        int tf=isalnum('5');
        //if(isalnum('5'))
        if(tf != 0)
        {
                printf("字元或數字\n");
        }
        else
        {
                printf("非字元或數字\n");
        }
        return 0;
}
//Answer:字元或數字

文章標籤

mitblog 發表在 痞客邦 留言(0) 人氣()

像素 (pixel) 是顯示器上、或電腦圖像中可編輯的顏色的基本單位,事實上,pixel 應視為一種「邏輯單位」而非「物理單

」。

文章標籤

mitblog 發表在 痞客邦 留言(2) 人氣()

自訂函數

$this->db->call_function()

文章標籤

mitblog 發表在 痞客邦 留言(0) 人氣()

【軟體名稱】:Penetrate Pro

【軟體語言】:中文

文章標籤

mitblog 發表在 痞客邦 留言(1) 人氣()

你是否曾對於上網隱私的問題有所顧慮呢? 其實當你在上網時,網站的背後都會記錄你所有的瀏覽行為,包含你點擊行為,即

使你已開啟隱私模式,未登入任何帳號,也無法完全的躲過各種追蹤技術,網路公司就是靠這些來分析每個用戶的瀏覽行為,

文章標籤

mitblog 發表在 痞客邦 留言(0) 人氣()

今天要介紹的是 Email 圖示產生器,相信有寫部落格的人都知道,有時候為了讓讀者可以與版主聯繫,都會想提供聯絡方式

讀者可以與你聯絡,而 Email 也是一種聯絡溝通的管道,但又擔心將 Email 以文字方式會被搜尋引擎找到,或被專蒐集

文章標籤

mitblog 發表在 痞客邦 留言(0) 人氣()