取整指令的梯形图指令的操作码是()。
A:TRUNC B:ROUND C:EXP D:DLN
在重点税源监控系统中,函数TRUNC(1238.19,-2)的值等于()。
A:1238 B:1238 C:1200 D:1238.19
将数字截尾取整的函数是()。
A:TRUNC B:INT C:ROUND D:CEILING
若Ri=TRUNC(Rj);Rj=2.325;则Ri的赋值是()(SIEMENS系统)。
A:2 B:2.3 C:2.5 D:3
有如下的程序:
#include <iostream>
#include <fstream>
using namespace std;
int main( )
ofstream outf("D://temp.txt",ios_base::trunc) ;
outf<<"World Wide Web";
outf.close( );
ifstream inf("D://temp.txt");
char s[20];
inf>>s;
inf.close( );
cout<<s;
return 0;
执行后的输出结果是 【15】 。
设文件temp.txt 已存在,则以下的打印结果是 【15】
#include <iostream>
#include <fstream>
using namespace std;
int main( )
ofstream outf ("temp.txt",ios base: :trunC) ;
outf<<"How you doing";
outf.close( );
ifstream inf("temp.txt");
char str[20];
inf>>str;
inf.close( );
cout<<str;
return 0;
设文件temp.txt 已存在,则以下的打印结果是 【15】
#include <iostream>
#include <fstream>
using namespace std;
int main( )
{
ofstream outf ("temp.txt",ios base: :trunC) ;
outf<<"How you doing";
outf.close( );
ifstream inf("temp.txt");
char str[20];
inf>>str;
inf.close( );
cout<<str;
return 0;
}
有如下的程序:
#include <iostream>
#include <fstream>
using namespace std;
int main( )
{
ofstream outf("D://temp.txt",ios_base::trunc) ;
outf<<"World Wide Web";
outf.close( );
ifstream inf("D://temp.txt");
char s[20];
inf>>s;
inf.close( );
cout<<s;
return 0;
}
执行后的输出结果是 【15】 。