zoukankan      html  css  js  c++  java
  • C++ Web 编程

    C++ Web 编程
    什么是 CGI?
    公共网关接口(CGI),是一套标准,定义了信息是如何在 Web 服务器和客户端脚本之间进行交换的。
    CGI 规范目前是由 NCSA 维护的,NCSA 定义 CGI 如下:
    公共网关接口(CGI),是一种用于外部网关程序与信息服务器(如 HTTP 服务器)对接的接口标准。
    目前的版本是 CGI/1.1,CGI/1.2 版本正在推进中。

     1 #include <iostream>
     2 #include <string.h>
     3 /* run this program using the console pauser or add your own getch, system("pause") or input loop */
     4 using namespace std;
     5 int main(int argc, char** argv) {
     6     void max_string(char str[][30],int i);
     7     int i;
     8     char country_name[3][30];
     9     for(i=0;i<3;i++)
    10     cin>>country_name[i];
    11     max_string(country_name,3);
    12     return 0;
    13 }
    14 
    15 void max_string(char str[][30],int n)
    16 {
    17     int i;
    18     char string[30];
    19     strcpy(string,str[0]);
    20     for(i=0;i<n;i++)
    21     if(strcpy(str[i],string)>0)
    22     strcpy(string,str[i]);
    23     cout<<endl<<"the largest string is:"<<string<<endl;
    24 }
  • 相关阅读:
    第09组 Beta冲刺(4/5)
    第09组 Beta冲刺(3/5)
    第09组 Beta冲刺(2/5)
    第09组 Beta冲刺(1/5)
    第09组 Alpha事后诸葛亮
    第09组 Alpha冲刺(6/6)
    第09组 Alpha冲刺(5/6)
    第5次实践作业
    第4次实践作业
    第3次实践作业
  • 原文地址:https://www.cnblogs.com/borter/p/9401321.html
Copyright © 2011-2022 走看看