C ++ is used to read an English text and uppercase the first letter of each English word in the text.In this program, we read the stream from a text and use the fstream stream. During text conversion, the isalpha () -- whether it is a letter,
There are other (hidden) requirements (otherwise, you cannot pass the test):1 If the first letter is capitalized, it does not change. 2. Not the same as the English alphabete.g.Input:hello world! This is _LJJ speaking! Output:hello world! This is
Using C + +, read an English text and capitalize the first letter of each English word in the text.This program has practiced reading a stream from a text, using the FStream flow. During the conversion of the text, the Isalpha ()-whether it is a
1 str = input ('input a string ' need to change:')23 New _list = Str.split (")4 for in new_list: 5 print(I.capitalize (), end=" )When I learned the string split usage today, I suddenly thought of the front str.capitalize () capitalize the
Requirements:Make sure that the first letter of each word in the string is capitalized, and the remainder is lowercase.Here I have written two methods, or one method, and the other is a variant of the method.The first type:function titlecase (str) {
This article mainly describes how to capitalize the first letter of each word in a string, and you need a friend to refer to theIn a string, each word is separated by a space and the number of spaces is not limited to the following code: function
My-shopping-home.com help you solve the problem of writing foreign Trade development Letter!! Collection of foreign Trade Development, the letter as the name implies is the first time you write to potential guests mail, letter. The Foreign Trade
In Python, there is code that can implement this function directly
str2 = "Hello nice to meet
Print (Str2.title ())There are a couple of similar features
Convert #将字符串中的大写转化成小写 lowercase to uppercase
print (Str2.swapcase ())
#就第一个首字母大写 Other
Oracle function (converts the first letter of each word to uppercase)
NLS_INITCAP (x [, y])
[Function] returns a string and converts the first letter of the string to uppercase, And the other letters to lowercase;
[Parameter] x struct expression
What types of disks are available:
This is the first clear concept, distinguish the categories, we can go to find the appropriate letter. Needless to say, according to the physical category can be divided into magnetic disk (such as hard disk,
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.