快捷导航 上传作品

[c++] uf 篇 c#语言 小写转大写字母

[复制链接]
梅雷工具箱发表于 2015-6-25 14:00:58 | 显示全部楼层 |阅读模式

uf 篇 c#语言 小写转大写字母

#include <stdio.h>
#include <ctype.h>
#include <stdlib.h>

void uppers(char *d,char const* s)//小写转大写
{
  while(*s)
  {   
    *d = toupper(*s);   
    ++s, ++d;      
  }
  *d = 0;
}








       /* TODO: Add your application code here */

char *str1 = "abcdefg7868766jn6566"; //输入小写
  char *str2 = (char*)malloc(strlen(str1) + 1);
  if(str2)
  {
    uppers(str2,str1);
    uc1601(str2,1); //输出大写
  }


        /* Terminate the API environment */

_____________________________________________________________________________ _

中磊UG二次开发教程 梅雷著 qq1821117007
学UG就上UG网 http://www.9sug.com/
就上UG网淘宝直营店
回复

使用道具 评分 举报

您需要登录后才可以回帖 登录 | 注册UG网

本版积分规则