摘要:
主要是看题,要把id number 反过来乘以9,3,7的循环然后……poj不支持strrev()函数……不信的可以自己试试……#include <iostream>#include <cstdio>#include <cstring>#include <string>using namespace std;int cas[10]={9,3,7,9,3,7,9};void strreved( char *source ){ int l = strlen( source ); char temp; int i; for( i = 0; i < 阅读全文
摘要:
题意:输入两行,第一行是密码的解码,第二行是一行文字,要求翻译出第二行注意吃掉回车code:#include <iostream>#include <cstdio>#include <cstring>using namespace std;int main(){ char key[30], message[90]; int m; while(scanf("%s", key)!=EOF) { getchar(); //注意吃掉回车 cin.getline(message, 90); int l 阅读全文