473,508 Members | 2,357 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 2059
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
20990
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...
3
1241
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...
1
1578
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...
1
1980
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...
7
2761
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...
4
2238
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...
5
1775
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...
2
1612
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...
5
2075
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...
0
7224
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,...
0
7380
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
7494
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5626
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5050
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...
0
3192
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1553
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 ...
1
763
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
415
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...

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.