//C++代码 dll.h
#ifndef LIB_H
#define LIB_H
extern "C" _declspec(dllexport) char* enciphering(char *ch,int &key);
extern "C" _declspec(dllexport) char* deciphering(char *ch,int &key);
#endif
//C++代码 Sercret.cpp
#include <iostream>
#include "dll.h"
using namespace std;
char* enciphering(char *ch,int &key)
{
char *str=new char[100];
int i=0,x;
bool decide=true;
while(ch[i])
{
if(ch[i]>='a'&&ch[i]<='z')
{
x = ch[i] + i + key + 1;
while(decide)
{
if(x>'z')
x-=26;
else
decide=false;
}
decide=true;<