| ||||||||||
| Online Judge | Problem Set | Authors | Online Contests | User | ||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest | |||||||||
如果是string, string tmp = a; a = b; b = tmp; 如果是char*,#include<string.h> strcpy(a,tmp),strcpy(b,a),strcpy(tmp,b),如果在意效率的话,自己写个小函数更好些In Reply To:那么怎么交换两个字符串数组;不用循环怎么实现? Posted by:pcbee at 2005-07-21 23:25:00 Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator