当前位置:七七学习网文档大全求职指南求职笔试面试笔试题目泰道控制系统设备硬件开发工程师笔试题» 正文

泰道控制系统设备硬件开发工程师笔试题

[10-10 21:21:19]   来源:http://www.77xue.com  笔试题目   阅读:8271
概要:如输入:56439,输出:5位数5,6,4,3,99,3,4,6,518:下面的代码有什么问题?char *_strdup( const char *strSource ){static char str[MAX_STR_LEN];strcpy(str, strSource);return str;}19:输入一字符串,检查是否回文 (回文是指正反序相同,如,LeveL),若是则输出“Yes”,否则输出“No”。20:阅读下列程序段,简述其主要功能。#includevoid main(){FILE*fpd1, *fpd2;char ch;fpd1=fopen(“d1.dat”,“r”) ;fpd2=fopen(“d2.dat”,“w”) ;while(fscanf(fpd1,“%c”,&ch)!=EOF)if (ch>
泰道控制系统设备硬件开发工程师笔试题,标签:驾照笔试题目,腾讯笔试题目,http://www.77xue.com

  如输入:56439,输出:5位数

  5,6,4,3,9

  9,3,4,6,5

  18:下面的代码有什么问题?

  char *_strdup( const char *strSource )

  {

  static char str[MAX_STR_LEN];

  strcpy(str, strSource);

  return str;

  }

  19:输入一字符串,检查是否回文 (回文是指正反序相同,如,LeveL),若是则输出“Yes”,否则输出“No”。

  20:阅读下列程序段,简述其主要功能。

  #include

  void main()

  {

  FILE*fpd1, *fpd2;

  char ch;

  fpd1=fopen(“d1.dat”,“r”) ;

  fpd2=fopen(“d2.dat”,“w”) ;

  while(fscanf(fpd1,“%c”,&ch)!=EOF)

  if (ch>='A'&& ch <='Z' ‖ ch>='a'&& ch<='z')

  fprintf(fpd2,“%c”,ch);

  fclose(fpd1);

  fclose(fpd);

  }

  21:试将下列递归过程改写为非递归过程。

  void test(int &sum)

  { int x;

  scanf(x);

  if(x=0) sum=0 else {test(sum); sum+=x;}

  printf(sum);

  }

  22:对给定记录的序号k(1

  23:Write a program to remove all trailing blanks and tabs from each line of input, and to delete entirely blank lines.

  24:int func(int a)

  {

  int b;

  switch(a)

  {

  case 1: 30;

  case 2: 20;

  case 3: 16;

  default: 0

  }

  return b;

  }

  则func(1)=?

  25:Write a function reverse(s) that reverses the character string s . Use it to write a program that reverses its input a line at a time.

上一页  [1] [2] 


Tag:笔试题目驾照笔试题目,腾讯笔试题目求职指南 - 求职笔试面试 - 笔试题目
联系我们 | 网站地图 | 范文大全 | 管理知识 | 教学教育 | 作文大全 | 语句好词
Copyright http://www.77xue.com--(七七学习网) All Right Reserved.
1 2 3 4 5 6 7 8 9 10