sscanf(getenv("QUERY_STRING"),"i=%d&j=%d",&i,&j);

#include "stdafx.h"
#include "stdlib.h"
#include 
#include 

int main(int argc, char* argv[])
{
	printf("Content-type: text/html\n\n");

    int i,j;
	sscanf(getenv("QUERY_STRING"),"i=%d&j=%d",&i,&j);

	printf("\n\n 
\ %d+%d=%d\n \
\ ",i,j,i+j); return 0; }

你可能感兴趣的:(c++MFC学习笔记)