| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 634 人关注过本帖
标题:[讨论]微软考题:Please write a function in C to copy one string to ano ...
只看楼主 加入收藏
greenjolly
Rank: 1
等 级:新手上路
帖 子:23
专家分:0
注 册:2006-6-10
收藏
 问题点数:0 回复次数:0 
[讨论]微软考题:Please write a function in C to copy one string to another, w

Please write a function in C to copy one string to another, while return the largest letter in the string. Please do not use any C runtime function.

char StringCopy( char *pszSrc, char *pszDst, int maxSize )

pszSrc: points to the source string

pszDst: points to the target string, where source string will be copied to

maxSize: max. number of characters allowed to be copied

The following code will display “Z”

char sz[100];

char ch;

ch = StringCopy( “Test Zoo”, sz );

printf( ch );

我想知道最简捷的算法

[此贴子已经被作者于2007-9-17 9:30:49编辑过]

搜索更多相关主题的帖子: 微软 string function Please write 
2007-09-16 08:17
快速回复:[讨论]微软考题:Please write a function in C to copy one string t ...
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.011248 second(s), 7 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved