messagebox函數(shù)用法 C語(yǔ)言中messagebox的用法?
C語(yǔ)言中messagebox的用法?#Include int main(void){消息框(null),“hello(content),”dialog box(title),“,MBuok)retur
C語(yǔ)言中messagebox的用法?
#Include int main(void){消息框(null),“hello(content),”dialog box(title),“,MBuok)return 0}//結(jié)束main
消息框(),區(qū)分大小寫(xiě)。
它的功能是彈出一個(gè)標(biāo)準(zhǔn)的Windows對(duì)話框。它不是C函數(shù)庫(kù)的標(biāo)準(zhǔn)函數(shù),而是windowsapi函數(shù),可以用C語(yǔ)言調(diào)用。
下面的示例顯示了一個(gè)標(biāo)題為hello和hello world內(nèi)容的對(duì)話框,其中包括一個(gè)[OK]按鈕:
#include
int main()
{
message box(null,“hello world”,“hello”,MB OK)
return 0
}