answersLogoWhite

0

int main()

{

std::string first, last;

std::cout << "Enter your first name: ";

std::cin >> first;

std::cout << "Enter your last name: ";

std::cin >> last;

}

User Avatar

Wiki User

11y ago

What else can I help you with?

Continue Learning about Engineering

What is the difference between tab and comma in QBasic?

In QBasic, the TAB function is used to position output at a specific column in the console, allowing for aligned text formatting, while the COMMA option in PRINT statements formats numbers with a comma separating thousands for better readability. For example, using TAB(10) would start printing text at the 10th column, whereas using , would display a number like 1000 as &quot;1,000&quot;. Thus, TAB controls text positioning, while COMMA affects numeric output formatting.


Which comma is used for characters in switch case statements?

There is only one comma, but it is not used in switch-case. Character literals are between apostrophes: 'x'


Can an email address contain a comma?

email address don't have any commas.....


What is the purpose of the comma operator in GWBASIC?

The GWBASIC comma operator is used to format the output of the PRINT command, placing the value to be printed in the next print zone rather than immediately after the previous value. Note that GWBASIC divides each line into zones of 14 spaces each. The comma operator also has other purposes, such as when filling a string with the same character. For example: 10 X$ = STRING$(10,45) 20 PRINT X$"HELLO WORLD"X$ RUN ----------HELLO WORLD---------- The comma operator is also used to separate the dimensions of a multi-dimensional array, such as the following 2x3 array: A(2,3)


What mark is used to separate arguments in a function?

That depends on the syntax rules of the language in which you are programming. However, the "," is the most usual separator).

Related Questions

Design an algorithm that will accept a perons name from the screen entered as surname first name separated by a comma Your program is to display the name as first name followed by three blanks?

Design an algorithm that will accept a perons's name from the screen entered as surname, first name, separated by a comma. Your program is to display the name as frist name, followed by three blanks, followed by the surname. -defining diagram -pseudocode algorithm


Is there a comma between the surname and MD?

Yes


What is the simplest comma perfectly correct C plus plus program?

Ya mum


Why does open office ask you to accept changes made to a document?

It's the same with almost any program - not just Open Office. If you make a change to an existing document (even adding a simple comma) - the software will always ask you if you want to save the changes.


What is Delimited Text?

ASCII is the acronym for American Standard Codes for Information Interchange. It is used to determine which character to display when a keyboard key is pressed, or code entered. So it can refer to basic text. A delimited file is a file that includes text separated by commas or full stops or semi-colons or spaces, or whatever the user designates as a delimiter. If you have something like firstnames and surnames and dates of birth, they could be in a file with a comma after each one, indicating to a program that reads the file, like a spreadsheet or database, as to how to arranged the data. If it was being opened by a spreadsheet, it would start putting the data into cells. It would use the delimiter to decided at what point something goes into the next cell. So if you had a firstname, a comma and a surname, the firstname would be put into one cell and the surname into the next cell.


How do you program a pause into a phone number?

In a pocket PC telephone you enter a comma sign to act as a pause.


What is ASCII delimited text?

ASCII is the acronym for American Standard Codes for Information Interchange. It is used to determine which character to display when a keyboard key is pressed, or code entered. So it can refer to basic text. A delimited file is a file that includes text separated by commas or full stops or semi-colons or spaces, or whatever the user designates as a delimiter. If you have something like firstnames and surnames and dates of birth, they could be in a file with a comma after each one, indicating to a program that reads the file, like a spreadsheet or database, as to how to arranged the data. If it was being opened by a spreadsheet, it would start putting the data into cells. It would use the delimiter to decided at what point something goes into the next cell. So if you had a firstname, a comma and a surname, the firstname would be put into one cell and the surname into the next cell.


What is the correct way to write junior after someones surname?

The correct way to write &quot;Junior&quot; after someone's surname is to capitalize both the surname and &quot;Junior&quot; itself, with a comma placed before &quot;Junior.&quot; For example, if the individual's surname is Smith, it would be written as &quot;Smith, Junior.&quot;


Such as a comma b and c or a comma b comma and c People say the last comma before and is not necessary?

last comma before the and is not necessary


How do you display the elements in a vector to the user?

Generally vectors are displayed in parenthesis with the vector components separated by a comma. If there are vectors within another vector then brackets are used for the internal vector.


In Microsoft Access if the value 1000.5 is entered in a field in access that has been defined as currency data type then the value will display how?

$1,000.50 (depending on how you configure comma and currency symbol)


Is there a Comma after except that?

No, there is not a comma after &quot;except that.&quot;