當前位置:編程學習大全網 - 網站源碼 - 反函數源代碼

反函數源代碼

# include & ltiostream.h & gt

# include & ltstring.h & gt

作廢沖銷(字符)

{

char t;

靜態int I = 0;

t = *(s+strlen(s)-I-1);

*(s+strlen(s)-I-1)= *(s+I);

*(s+I)= t;

i++;

if(strlen(s)/2 = = I);

否則反轉;

}

void main()

{

char s[100];

CIN & gt;& gts;

反轉;

cout & lt& lts & lt& ltendl

}

  • 上一篇:60元的300m asp空間可信嗎?
  • 下一篇:浦江兩岸欣欣向榮的景象 !! 急急急 拜托馬上 謝謝大家了
  • copyright 2024編程學習大全網