HELLO程序详解
来源:互联网 发布:神童vb第二章五 编辑:程序博客网 时间:2024/06/06 00:29
#include "stdafx.h" //Standard Application Framework Extensions(标准应用程序框架的扩展)
#include <iostream.h>
// Function prototypes
bool SayHello(char* szTo, int nCalc);
void SayGoodbye();
// Constants
#define NUMERO_UNO 1
const char* OLD_FRIEND = "old friend, for now.";
int main(int argc, char* argv[])
{
char* szCpp = "C++!"; // Declare a variable.
// Call a function with a Boolean result.
if(SayHello(szCpp, 2))
{
// Call a function with no result.
SayGoodbye();
}
return 0;
}
////////////////////////////////////////
// Global function definitions
// SayHello takes two parameters and returns a result.
bool SayHello(char* szTo, int nCalc)
{
// Use an iostream object for output.
cout << "Hello, " << szTo << " You're Number " << NUMERO_UNO
<< ".\n";
return (nCalc + (nCalc * 2)) < (24/nCalc);
}
// SayGoodbye takes no parameters and returns no result.
void SayGoodbye()
{
cout << "Bye, " << OLD_FRIEND << endl;
}
- HELLO程序详解
- SAS INTRNET HELLO,WROLD程序配置使用详解
- 一個簡單的HELLO程序
- 一个Hello World程序
- 6个hello程序
- hello world程序
- QT Hello World 程序
- hello world程序
- ABAP程序Hello World
- Win32 Hello World程序
- Hello World程序
- java入门程序Hello
- mini2440之--hello程序
- Hello World程序
- Hello world!程序
- C# 程序Hello World
- 解构 hello OC 程序
- 1.hello word 程序
- struts2.0中struts.xml配置文件详解
- 在VS中如何让C#语言编写的程序自动以管理员身份运行
- hdu 4027 Can you answer these queries? 线段树
- CS中相关英语词汇与中文的对照以及英语的习惯表达
- 将九九乘法表打印到txt文档中
- HELLO程序详解
- java实现附件预览(openoffice+swftools+flexpaper)
- JVM性能监控工具使用
- Java 如何判断线程池所有任务是否执行完毕
- UITableViewCell 分隔线顶头显示
- 在Linux上的Java HelloWorld
- Linux内核原理-pid namespace
- PHP面试题目搜集
- 黑马程序员--Java笔记11--静态类(Collections、Arrays、System、Runtime、Date、Calendar、Math)