《[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;.