Input a string:7hg09y↙
709
程序运行结果示例2:
Input a string:9w2k7m0↙
9270
程序运行结果示例3:
Input a string:happy↙
输入提示信息:"Input a string:"
输入格式: "%7s"
输出格式:"%d\n"
注意:为避免出现格式错误,请直接拷贝粘贴上面给出的输入、输出提示信息和格式控制字符串!
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
int Myatoi(char str[]){
int i,j;
for (i=0,j=0;str[i]!='\0';i++){
搜索“diyifanwen.net”或“第一范文网”即可找到本站免费阅读全部范文。收藏本站方便下次阅读,第一范文网,提供最新人文社科中国大学MOOC-哈工大-C语言程序设计精髓第六-十二周编程题答案(25)全文阅读和word下载服务。
相关推荐: