Main  /  Edit version 202  /  Edit version 203  /   /  Users Area

Difference "CppCMS — High Performance C++ Web Framework" ver. 202 versus ver. 203

Content:

#include <iostream>
#include <cstdlib>
#include <ctime>
What is [CppCMS](http://cppcms.com/)? CppCMS is a [Free](http://en.wikipedia.org/wiki/Free_and_open_source_software) High Performance Web Development Framework (_not a CMS_) aimed at [Rapid](http://en.wikipedia.org/wiki/Rapid_application_development) Web Application Development. It differs from most other web development frameworks like: Python Django, Java Servlets in the following ways:
using namespace std;
1. It is designed and tuned to handle extremely high loads.
2. It uses modern C++ as the primary development language in order to achieve the first goal.
3. It is designed for developing both Web Sites and Web Services.
int main() {
// 初始化随机数生成器
srand(time(0));
// 生成1-100之间的随机数
int secretNumber = rand() % 100 + 1;
int guess = 0;
int attempts = 0;
cout << "欢迎来到猜数字游戏!" << endl;
cout << "我已经想好了一个1到100之间的数字,你能猜出来吗?" << endl;
while (guess != secretNumber) {
cout << "请输入你的猜测: ";
cin >> guess;
attempts++;
if (guess > secretNumber) {
cout << "太大了!再试试。" << endl;
} else if (guess < secretNumber) {
cout << "太小了!再试试。" << endl;
}
}
cout << "恭喜你!你在" << attempts << "次尝试后猜对了!" << endl;
cout << "游戏结束,谢谢参与!" << endl;
return 0;
}
Starting from version 1.2 it is available under MIT license.
See "[Rationale](/wikipp/en/page/rationale)" for further explanations.
### General
- [FAQ](/wikipp/en/page/faq)
- [Rationale Behind CppCMS](/wikipp/en/page/rationale)
- [Case Study: CppCMS Benchmarks](/wikipp/en/page/benchmarks)
- [Developers](/wikipp/en/page/developers)
- [When to Use](/wikipp/en/page/when_to_use_cppcms)
- [Who Uses CppCMS](/wikipp/en/page/who_uses)
- [Road Map to Future](/wikipp/en/page/cppcms_1x_tasks)
- [Secure Programming with CppCMS](/wikipp/en/page/secure_programming)
- [Downloads](http://sourceforge.net/projects/cppcms/files/)
- [Repositories](/wikipp/en/page/apt)
- [How to Contribute](/wikipp/en/page/contrib)
- [Project Logo](/wikipp/en/page/logo)
- [Nightly Builds and Tests](/wikipp/en/page/nightly)
### Framework Documentation
- [CppCMS 1.x.x - Stable](/wikipp/en/page/cppcms_1x)
- [CppCMS 0.0.x - Old Stable (deprecated)](/wikipp/en/page/cppcms_0x)
- [About the CppCMS versioning scheme](/wikipp/en/page/cppcms_versioning_scheme)
### SQL Connectivity
- [SQL Connectivity](/wikipp/en/page/sql_connectivity)
### CppCMS Based Applications
- [Wikipp - High Performance Wiki Engine](/wikipp/en/page/install_wikipp)
- [CppBlog - High Performance Blog Engine](/wikipp/en/page/install_cppblog)

Sidebar:

## Project
- [SF Project Page](https://sourceforge.net/projects/cppcms/)
- [Development Blog](http://blog.cppcms.com)
- [Downloads](http://sourceforge.net/projects/cppcms/files/)
- [Browse Mailing List](http://news.gmane.org/gmane.comp.lib.cppcms.user)
- [Join Mailing List](https://lists.sourceforge.net/lists/listinfo/cppcms-users)
- [Bugs](https://github.com/artyom-beilis/cppcms/issues)
- [GitHub Project](https://github.com/artyom-beilis/cppcms)
## Using this Wiki
- [Editing Pages](/wikipp/en/page/wiki_editing)
- [SandBox](/wikipp/en/page/sandbox)
## Translations
- [עברית](/wikipp/he/page/main)
- [Русский](/wikipp/ru/page/main)

About

CppCMS is a web development framework for performance demanding applications.

Support This Project

SourceForge.net Logo

Поддержать проект

CppCMS needs You


Navigation

Main Page


Valid CSS | Valid XHTML 1.0