[IT认证]部分C语言考题.docx

上传人:scccc 文档编号:12670725 上传时间:2021-12-05 格式:DOCX 页数:2 大小:16.04KB
返回 下载 相关 举报
[IT认证]部分C语言考题.docx_第1页
第1页 / 共2页
[IT认证]部分C语言考题.docx_第2页
第2页 / 共2页
亲,该文档总共2页,全部预览完了,如果喜欢就下载吧!
资源描述

《[IT认证]部分C语言考题.docx》由会员分享,可在线阅读,更多相关《[IT认证]部分C语言考题.docx(2页珍藏版)》请在三一文库上搜索。

1、;for(i=1,j=0; si!='0'&&si%2!=0; i+=2) tj+=si; tj='0' 函数fun() 要求:实现s所指字符串中下标为奇数,同时ASC11码值也为奇数,依次存放在t所指的数组中 1.02x-1.36的绝对值,x<2e的x次方加上x的3次方,x=2cos x ,x>2这是第一题第二题函数fun()要求:实现s所指字符串中下标为奇数,同时ASC11码值也为奇数,依次存放在t所指的数组中第三题编程 y7.2x+2.9y)/(7.2x+2.9y)/(7.7y+2.9x)的绝对值除数加绝对值绝对值加在除号下面就

2、是编程题呀#include <math.h>#include <stdio.h>#include <string.h>#include <conio.h>void main( ) char str1100, t100; int i, j; /*/i=0;j=0; /*/ clrscr( ); strcpy(str1, “4AZ18c?Ge9a0z!”);for(i=0; i<strlen(str1); i+) /*/if (str1i%2!=0)&&(i2!=0)/*/ tj=stri; j+;tj=0;printf(“n

3、Original string:%sn”, str1);printf(“n Result string: %sn”, t);include <math.h>#include <stdio.h>#include <string.h>#include <conio.h>void main( ) char str1100, t100; int i, j; /*/i=0;j=0; /*/ clrscr( ); strcpy(str1, “4AZ18c?Ge9a0z!”);for(i=0; i<strlen(str1); i+) /*/if (str

4、1i%2!=0)&&(i2!=0)/*/ tj=stri; j+;tj=0;printf(“n Original stri ng:%sn”, str1);printf(“n Result string: %sn”, t);1. 程序Cmody011.C的功能是:从字符串数组str1中取出ASCII码值为偶数且下标为偶数的字符依次存放到字符串t中。 例如,若str1所指的字符串为:4AZ18c?Ge9a0z! 则t所指的字符串为:4Z8z 注意:数组下标从0开始。for(i=0; i<strlen(str1); i+) /*/if (str1i%2!=0)&&(i2!=0)/*/ tj=stri; j+;tj=0;.

展开阅读全文
相关资源
猜你喜欢
相关搜索

当前位置:首页 > 社会民生


经营许可证编号:宁ICP备18001539号-1