473,662 Members | 2,382 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

how to enter person's last name and first name seperated by space and comma

1 New Member
how to enter person's last name and first name seperated by space and comma. for example henry smith---output-->>smith,henry
Dec 13 '12 #1
2 2073
whodgson
542 Contributor
In C++ you could do something like this.
prompt: enter given name
cin>>given_name ;
prompt: enter surname
cin>>surname;
cout<<surname<< ", "<<given_name<< endl;
Dec 13 '12 #2
Rabbit
12,516 Recognized Expert Moderator MVP
This is not a code writing service. But if you post your code along with any errors you get and a description of what you're looking for, we can help guide you to an answer.
Dec 13 '12 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

6
21006
by: vbnetrookie | last post by:
I have a table name in SQL Server 2000 that has a space in it ex: aim international I had trouble just in the query analyzer with this..I had to place the name in brackets for it to work. But now I'm in Visual Studio .Net 2003 and it gives me another problem. I get the table name from a drop down list selection and send it to a query string. But is gives me this error: *************** Line 1: Incorrect syntax near 'AIM international'.
3
1246
by: RN | last post by:
I'm trying to fix user inputed names to proper case. People love to enter their names in all lower case or all upper, etc. I remember reading somewhere that there is an easy way in the framework to convert name fields, first and last, to proper case. I forgot the name of that case syntax, but basically where you make sure to capitalize the first letter of someone's first and last name, fix all capital letters ("JOHN" > "john"), etc. ...
1
1594
by: Dawn | last post by:
Can I have a criteria where, when I add new records only, that data must be entered in field A before data is entered in Field B? So if a user goes to field B and starts entering data before data has been entered in field A an error message pops up telling him/her to enter data in Field A first. Is this possible and is this bad design? Thank you for your time. Dawn
1
1993
by: ambr | last post by:
i made a class with personType and addressType .now ineed to search for a person by last name in c++and print the names of all all the people between two last names.somebody tell me the best way to write the code (not too complicated )
7
2778
by: Mary | last post by:
I have a student who has a hyphenated first name. If I concatenate the name like this: StudentName:( & ", " & ), it works as expected. If, however, I try to get the first name first by concatenating like this: StudentName: ( & " " & ), only the first name appears. I sure would appreciate any help! Mary
4
2253
by: rhepsi | last post by:
hii all, i have aproject where... wen i enter a text in the textbox..., accordingly it should search in teh first name and last name of the database and display the records How to search records by name....??? plz some one help me the query...
5
1787
by: Jim in Arizona | last post by:
I built a webpage using vb.net (.net 2.0) that creates a form letter. This letter pulls data from a database. Although I populate the address with the person's full name, which comes from the name column of a customer table, I need to just get the first name for the Dear part of the letter (ie: Dear John instead of Dear John Smith). It would be easy if the name was in two parts in the table (First name and Last name column) but, that isn't...
2
1617
by: Joseph J. Kesselman | last post by:
Gabe wrote: You can do exactly that, exactly as you've shown it: <nameJohn Smith</name> But... Now you aren't talking about XML -- you're talking about the behavior of the tool you're passing the XML to.
5
2082
by: jmurphy | last post by:
What do i add to this script to validate the entry? Thanks in advance for the help. <form name="continue" method="POST" action="shipping1.asp" onsubmit="return validate_form ();"> <input type="hidden" name="subhand" value="<%= subhand %>"><input type="hidden" name="subship" value="<%= subship %>"><input type="hidden" name="subquantity" value="<%= subquantity %>"><input type="hidden" name="subsize" value="<%= subsize %>"><input...
0
8432
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8343
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8856
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
6185
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5653
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4347
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2762
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1992
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1747
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.