Online JudgeProblem SetAuthorsOnline ContestsUser
Web Board
Home Page
F.A.Qs
Statistical Charts
Problems
Submit Problem
Online Status
Prob.ID:
Register
Update your info
Authors ranklist
Current Contest
Past Contests
Scheduled Contests
Award Contest
User ID:
Password:
  Register

如果是string, string tmp = a; a = b; b = tmp; 如果是char*,#include<string.h> strcpy(a,tmp),strcpy(b,a),strcpy(tmp,b),如果在意效率的话,自己写个小函数更好些

Posted by sunmoonstar_love at 2005-07-21 23:53:59
In Reply To:那么怎么交换两个字符串数组;不用循环怎么实现? Posted by:pcbee at 2005-07-21 23:25:00


Followed by:

Post your reply here:
User ID:
Password:
Title:

Content:

Home Page   Go Back  To top


All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator