#include "stdio.h"
#include "腊森conio.h"
main()
{
char a[]="computer";
char *p = (char*)malloc( strlen(a) * 3 + 1 );
int i;
for(i=0 ;i< strlen(a) ; i++)
{
*(p+i*3) = a[i];
*(p+i*3+1) = '\%';
*(p+i*3+2) = 'D';
}
*(p+i*3) = '轮埋亩\0'液汪;
puts(p);
getch();
}
#include "stdio.h"
#include "conio.h"伏芹行
void main()
{
char a[]="computer";
char *p = (char*)malloc( strlen(a) * 3 + 1 );
int i;
for(i=0 ;i< strlen(a) ; i++)
{
*(p+i*3) = a[i];
*(p+i*3+1) = '\%'缺哗;
*(p+i*3+2) = '首枯D';
}