网友您好, 请在下方输入框内输入要搜索的题目:

题目内容 (请给出正确答案)

当执行cout语句输出endl数据项时,将使C++显示输出屏幕上的光标从当前位置移动到()的开始位置。


参考答案

更多 “当执行cout语句输出endl数据项时,将使C++显示输出屏幕上的光标从当前位置移动到()的开始位置。” 相关考题
考题 ( 20 )已知数组 arr 的定义如下:int arr[5] = {1,2,3,4,5};下列语句中输出结果不是 2 的是A ) cout *arr+1 endl;B ) cout *(arr+1)endl;C ) cout arr[1] endl;D ) cout *arr endl;

考题 以下程序执行后输出的结果是【】。 include include using namespace std; int 以下程序执行后输出的结果是【 】。include<iostream>include<fstream>using namespace std;int main(){ofstream ofile("D:\\temp.txt");if(!ofile){cout<<"temp.txt cannot open"<<endl;return 0;}ofile<<"This is a book" <<" " <<54321<<endl;ofile.close();ifstream ifile("D:\\temp.txt");if(!ifile){cout<<"temp.txt cannot open" <<endl;return 0;}charstr[40];ifile >> str;ifile.close();cout<<Str<<endl;return 1;}

考题 对于语句cout A.”cout”是一个输出流对象B.”endl”的作用是输出回车换行C.”x”是一个变量D.””称作提取运算符

考题 下面选项中,不属于C++语句的是( )。A.{;}B.cout<<"Hello!"<<endlC.;D.{int i=1;int f=i;cout<<f<<endl;}

考题 语句cout<<setiosflagags(ios::showpos)<<125<<"/t"<<-125<<endl;的输出结果为【 】。

考题 已知数组arr的定义如下: intarr[5]={1,2,3,4,5};下列语句中输出结果不是2的是( )。A.cout*arr+1endl;B.COUt*(art+1)endl;C.coutarr[1]endl;D.COUt*arrendl:

考题 要在屏幕上显示“Hello,world!”应执行语句cout <<【 】。

考题 执行语句:{cout<<setfill('*')<<setw(10)<<setfill('#')<<left<<123<<"OK"<<endl;return 0;)后将输出( )。A.123*******OKB.123#######OKC.123********OK********D.123#######OK########

考题 对于语句cout<<endl<<x;中的各个组成部分,下列叙述中错误的是A.“cout”是一个输出流对象B.“endl"的作用是输出回车换行C.“x”是一个变量D.“<<”称作提取运算符

考题 执行下列语句后,输出结果为cout.put('s');cout<<'c'<<'a';A.caB.seaC.sD.a

考题 已知数组arr的定义如下: int arr[5]={1,2,3,4,5}; 下列语句中,输出结果不是2的是A.cout<<*arr+1<<endl;B.tout<<*(arr+1)<<endl;C.cout<<arr[1]<<endl;D.eout<<%arr<<endl;

考题 若有如下变量定义和函数调用语句: inta=5; fun(A) ; 则执行下面函数后正确的输出结果是( )。 void fun(int*x) { cout<<++*x<<endl; }A.3B.4C.5D.6

考题 若执行语句:cout<<setfill('*')<<setw(10)<<123<<"OK"<<endl后将输出( )。A.******* 1230KB.123********OKC.*******123********OKD.123*******OK********

考题 以下三条输出语句分别输出什么?char str1[] = "abc";char str2[] = "abc";const char str3[] = "abc";const char str4[] = "abc";const char* str5 = "abc";const char* str6 = "abc";cout boolalpha ( str1==str2 ) endl; // 输出什么?cout boolalpha ( str3==str4 ) endl; // 输出什么?cout boolalpha ( str5==str6 ) endl; // 输出什么?

考题 执行语句:cout<<setfill('*')<<setw(10)<<setfill('#')<<left<<123<<"OK"<<endl;后将输出A.123*******OKB.123#######OKC.123********OK********D.123#######OK########

考题 在C++语言中输出“Hello World”的语句是()。A.cout>"Hello World";C.cin 在C++语言中输出“Hello World”的语句是( )。A.cout<<"Hello World";B.cout>>"Hello World";C.cin<<"Hello World";D.cin>>"Hello World";

考题 执行语句:cout<<setfill(*)<<setw(10)<<setrill()<<left<123<<"OK"<<endl;后将输出( )。A.123*******0KB.123OKC.123********0K********D.123OK

考题 如下程序的输出结果是main( ){int a=2,b=-1,c=2;if(a<B)if(b<0)c=0else c++;cout<<c<<endl;}A.0B.1C.2D.3

考题 下列语句中,输出与众不同的是A.cout<<"1."<<setfill('')<<"Hello!"<<endl;B.cout<<"1."<<''<<"Hello! \n";C.cout<<"1. Hello!"<<endl;D.cofit<<"1."<<setw(7)<<"Hello!";

考题 语句cout(33) endl;的输出结果是()A、24B、12C、9D、6

考题 语句cout(1|2)","(1||2) endl;的输出结果是()A、0,0B、1,1C、2,0D、3,1

考题 以下语句中,输出结果与众不同的一个是()A、cout<<"1. "<<setfill(’ ’)<< "Hello! "<<endl;B、cout<<"1."<<’ ’ <<"Hello! /n";C、cout<<"1. Hello! "<<endl;D、cout<<"1. "<<setw(7)<< "Hello! ";

考题 填空题当执行cout语句输出endl数据项时,将使C++显示输出屏幕上的光标从当前位置移动到()的开始位置。

考题 单选题语句cout(2^5) endl;的输出结果是()A 1B 3C 7D 10

考题 单选题对于语句cout A “cout”是一个输出流对象B “endl”的作用是输出回车换行C “x”是一个变量D “”称作提取运算符

考题 单选题语句cout(12)","(12) endl;的输出结果是()A 0,0B 0,1C 1,0D 1,1

考题 单选题语句cout(33) endl;的输出结果是()A 24B 12C 9D 6