欢迎来到牛牛题库网
牛牛题库官网
登录
注册
首页
搜题找答案
单项选择题
窗体也叫表单。
A.对
B.错
点击查看答案
相关考题
未知题型
使用VC++6.0打开考生文件夹下的源程序文件 2.cpp。请完成函数fun(intx),该函数的功能是将X的值转换成二进制数输出到屏幕,并且在函数中调用写函数WriteFile将结果输出到2.txt文件中。 例如x=6,6的二进制数为110,则输出到屏幕的数为110。 注意:不要改动main函数,不得增行或删行,也不得更改程序的结构。 试题程序: include(iostream) include(fstream) include(cmath) usingnamespacestd; voidWriteFile(char*str) { ofstreamout1; out1.open('2.txt',ios—base::binary|ios_base::app); for(inti=0;str[i]!=0;i++) out1.put(str[i]); out1.close; } voidfun(intx) { } voidClearFile { ofstreamout1; out1.open('2.txt'); out1.close; } intmain { ClearFile; fun(13); return0; }
判断题
机器人工具数据的参数只要确定工具坐标系的数据即可。
正确
错误
未知题型
使用VC++6.o打开考生文件夹下的源程序文件2.cpp。请完成函数fun(char*str1,char*str2),此函数的功能是计算str1中出现str2的个数,当不出现时,则返回0。 例如: str1为“asdfsfdfg” str2为“sf”则返回1 str2为“df”则返回3 注意:不能修改函数的其他部分。 试题程序: include<iostream.h> //注意只能使用int类型,不能类型转换 intfun(char*str1,char*str2) { } voidmain() { charstr1[1024]; charstr2[256]; cout<<'pleaseinputastring:'<<endl; cin.getline(str1,1024); cout<<'pleaseinputotherstring;'<<endl cin.getline(str2,256); cout<<fun(str1,str2); cout<<endl; return; }
关注
顶部
微信扫一扫,加关注免费搜题