无限增值系统应用开发工程师笔试题
b) Name several ways in which the security problem that causes this program not to output what the programmer intended can be prevented WITHOUT changing the code.
18:#include
void main()
{ int a[5] ={2,4,6,9,12},b[6] ={2,3,4,6,8,9};
for(int i=0;i<5;i++)
for(int j=0;j<6;j++)
if(*(a+i)==*(b+j) printf( ″ %d ″ ,*(a+i));
printf( ″ n ″ );
} 输出结果: _______
19:Write a function escape(s,t) that converts characters like newline and tab into visible escape sequences like and as it copies the string t to s . Use a switch . Write a function for the other direction as well, converting escape sequences into the real characters.
20:一个文本文件有多行,每行为一个URL。请编写代码,统计出URL中的文件名及出现次数。
a) 文件名不包括域名、路径和URL参数,例如http://www.ourday.cn/bbs/forumdisplay.php?fid=18中的文件名是forumdisplay。
b) 部分URL可能没有文件名,例如http://www.ourday.cn/,这类统计为“空文件名”。
c) 出现在不同URL中的相同文件名视为同一文件名,例如http://www.ourday.cn/index.php和ftp://ftp.ourday.cn/index.php为同一文件名
文件内容示例如下:
http://www.ourday.cn/bbs/redirect.php?tid=480&goto=lastpost#lastpost
http://www.ourday.cn/index.php
ftp://ftp.ourday.cn/index.php
http://www.ourday.cn/bbs/index.php?k=8
www.77xue.com哦
http://www.ourday.cn/bbs/forumdisplay.php?fid=16
http://www.ourday.cn/bbs/viewthread.php?tid=444&extra=page%3D1
http://www.ourday.cn/
http://www.ourday.com.cn/
21:两种不同的方法计算unsigned x有多少1 bits,如x=3,为0000 0011,有2个1
22:阅读下列程序段,简述其主要功能。
#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);
}
23:Apartment在COM中有什么用?为什么要引入?
24:找出字符串A中包含的字符可以进行的所有不同组合。例如:abccd中,ab,ac,bc,cc,abd等都是可能的组合。
25:无符号整数乘法,乘数为32bit,结果为64bit
提示:32bit整数分解为16bit相乘
void Multiply( DWORD dwFirst, DWORD dwSecond, DWORD& dwHigh, DWORD& dwLower );
《无限增值系统应用开发工程师笔试题》相关文章
- 无限增值系统应用开发工程师笔试题
- › 无限增值系统应用开发工程师笔试题
- 在百度中搜索相关文章:无限增值系统应用开发工程师笔试题
- 在谷歌中搜索相关文章:无限增值系统应用开发工程师笔试题
- 在soso中搜索相关文章:无限增值系统应用开发工程师笔试题
- 在搜狗中搜索相关文章:无限增值系统应用开发工程师笔试题