欢迎来到知识库小白到大牛的进阶之路

当前位置 > c语言程序设计c语言程序设计考试题及答案

  • C语言编程

    C语言编程

    .由于汇编语言依赖于计算机硬件,程序的可读性和可移植性都比较差.为了提高可读性和可移植性,最好改用高级语言,但一般的高级语言难以实现... 并写了UNIX操作系统.但B语言过于简单,功能有限.1972年至 1973年间,贝尔实验室的 D.M.Ritchie在B语言的基础上设计出了C语言(取 BCPL的...

    2024-08-08 网络 更多内容 203 ℃ 227
  • C语言编程

    C语言编程

    程序如下 #include<stdio.h> #include<stdlib.h> main() { #char st[10], cs[10][10]; #int i, j, p; #printf("input ten person's name:\n"); #for (i = 0; i < 10; i++) #gets(cs[i]); #printf("\n"); printf("the new is:\n"); #for (i = 0; i < 10; i++) #{ ...

    2024-08-08 网络 更多内容 932 ℃ 597
  • C语言编程

    C语言编程

    min=temp; i++; } printf("the result is:\n"); printf("the max number is:%d",max); printf("\nthe min number is:%d",min); getch(); } 这个问题的解法有很多,你可以自己多实践.编程的能力和你在计算机上调试程序的时间是成正比的.(我没有调试上面这个...

    2024-08-08 网络 更多内容 351 ℃ 545
  • c语言编程题

    c语言编程题

    1234567891011121314151617181920212223#include<<a href="http://www.baidu.com/s?wd=stdio.h&tn=44039180_cpr&fenlei=mv6quAkxTZn0IZRqIHckPjm4nH00T1YLnjcYPvwhPHuBnjnvPjbk0ZwV5Hcvrjm3rH6sPfKWUMw85HfYnjn4nH6sgvPsT6K1TL0qnfK1TL0z5HD0Ig...

    2024-08-08 网络 更多内容 609 ℃ 474
  • C语言编程

    C语言编程

    #include <stdio.h> void main(void) {     int a[10]={68,90,55,32,23,47,92,36,60,59};     int i, n;     for(i=0, n=0;i<10;i++)       &nbs...

    2024-08-08 网络 更多内容 579 ℃ 363
  • c语言编程题

    c语言编程题

    #include <stdio.h> int main() {     int a[10];     int i;     for(i = 0; i < 10; i ++)         a[...

    2024-08-08 网络 更多内容 519 ℃ 846
  • C语言编程

    C语言编程

    生命游戏 /* */ /* PROGRAM game of life : */ /* This is a finite implementation of John H. Conway's */ /* Game of Life. Refere to my book for detail please. */ /* */ /* Copyright ChingKuang Shene July/25/1989 */ /* */ #include <stdio.h> #include <stdlib.h> #define MAXSIZE 50 /* board...

    2024-08-08 网络 更多内容 682 ℃ 731
  • c语言编程问题

    c语言编程问题

    应该可以满足你的要求:如果需要,可以进行更人性化的界面或者处理细节的更改: #include<stdio.h> #include<string.h> #define N 10 //假定输入的字符串数不超过10,可以自己修改 main() { char str[N][30]; int i,j,t,flag=0; //flag记录##个数,i记录字符串数量,碰到一个#时字符串结束,新...

    2024-08-08 网络 更多内容 391 ℃ 642
  • C语言程序设计

    C语言程序设计

    问题补充:*p.m和(*p).m的值是不是一样的??? 不一样的 *p.m是先进行.处理,也就是先处理p.m,再取*,而p是一个地址,所以p.m是错误的 (*p).m是先取p的内容,再取m成员 选A A *(++p)>m 初始的定义为p=s, ++p是先将p指向下一个成员的地址,也就是s[1]的地址, 而s[1]的m值也就是&b,所...

    2024-08-08 网络 更多内容 510 ℃ 529
  • c语言编程题 求解

    c语言编程题 求解

    从键盘输入一个字符串,可以设计一个函数实现把字符串中奇数位置的字符取出来并转为大写的。输入kobe结果是KB指定子函数:voidGetSubStr(charst[])#include <stdio.h>void GetSubStr(char st[]){int i,j; for(i=j=0;st[i];i++)   if(i%2==0)st[j++]=(st[i]>='a'&...

    2024-08-08 网络 更多内容 387 ℃ 995
新的内容
标签列表