##include "stdio.h"
//在全局范围内定义两个ShowMessage重载函数
void ShowMessage(const char* Text ,const char* Caption)
{
printf("Message: Text=%s,Caption=%s\n",Text,Caption);
}void ShowMessage(const char* Text ,unsigned int Type)
{
printf("Message: Text=%s,Type=%d\n",Text,Type);}int main()
{
//依次调用两个重载函数
ShowMessage("ok","welcom");
ShowMessage("ok",1);return 0;
}
红色的部分表示什么意思?那个Text=%s,Type=%d怎么理解
//在全局范围内定义两个ShowMessage重载函数
void ShowMessage(const char* Text ,const char* Caption)
{
printf("Message: Text=%s,Caption=%s\n",Text,Caption);
}void ShowMessage(const char* Text ,unsigned int Type)
{
printf("Message: Text=%s,Type=%d\n",Text,Type);}int main()
{
//依次调用两个重载函数
ShowMessage("ok","welcom");
ShowMessage("ok",1);return 0;
}
红色的部分表示什么意思?那个Text=%s,Type=%d怎么理解
解决方案 »
- 在ADO中表名有"._"符号的表。调用 updata()时出错 。表名为 [test._lay] 请高手指教。
- PostGre中文乱码,急....
- qt和vc 6.0结合起来用不知道怎么设置,请用过的人进来帮帮我!
- !!!急急急 在treeview类的树视图中的某些子树根据状态来自动改变图标
- 请问strcpy();这个函数?
- 如何在一个BS_OWNERDRAW(自绘)按钮中使用位图???用WindowsAPI,不用MFC
- 紧急求救!!关于CAsyncSocket编写问题!
- 谁有微软IMDB的资料COM+,或者有real-time database, 或者In-Memory Database的资料,有急用。谢谢啦!
- MFC中如何使用chm格式的帮助文件?
- vs 2008 atl com 注册以后 php 不能调用
- 关与CListView两个成员函数的问题
- 怎么把主程序的一个bool变量传入DLL
printf("Message: Text=%s,Type=%d\n",Text,Type);//以字符串格式输出Text,整形格式输出Type