-
string str="tom,how do you do?";
Convert all punctuation points to spaces.
str=","," ").replace("."," ").
replace("?"," ").replace(";"," ").
replace(":","");
string results=' ');
for(int i=0;i<;i++)
if(results[i].trim()!="")conwirte(results[i]);
Not tested.
-
static void main(string args)"The reversed English sentence is:" + result);
-
Arrays are swapped for the first and last ones, and so on.
-
With split(' ') to cut the sentence into words.
-
Start by storing the words in the array.
It is then read out using a foreach loop. Add spaces when reading.
-
Use the substring. References give. It's time for the landlord to brush up on the basics.
-
Let's use the regular . It can be divided into more fine.
du。And not just based on spaces. Also zhi can be based on punctuation ah of the dao and the like. Hehe. References.
Take the following ** under the right to test:
Put "hello, how are you!"."Split into 4 words.
static void main(string args)}
-
Just use the lookup method and output this sentence.
-
Create a dictrory that stores words with the number of words.
Then each time the insertion is made, "Word."",1, if the insertion fails, it proves that it already exists, and the value can be increased by 1.
-
hashtable hashtable = new hashtable();
char charseparators = new char ;All word separators are enumerated here.
Here, the sentence is split into words and the blank elements are removed.
string words = "aaa bbb aaa ccc ddd,eee,edc.".split(charseparators, ;
for (int i = 0;i < i++) loop, just output the contents of the hashtable.
-
It is impossible not to open up new memory space, strings are immutable objects, if you want to generate new strings, you must open up new memory, you can first split the string by comma, invert a single word, and then use a comma to connect the string.
-
public static void main(string args)
if (";"))
/ scanner.
The number of words is:" + dc);
The number of letters is:" + zc - 1));
The number of sentences is:" + jc);
For the computer industry, master is a very ethereal word. It's easy to use a computer, but it's not easy to be a computer master. Just go up and take a look, or buy two computer newspapers, read system files, play the registry, install the computer, network, upgrade, not to mention a month, that is, a year and ten years, and you are still nothing. >>>More
There are a lot of basic training, that is, physical training, such as squatting, side pressing, obstacle dribbling, running laps, as well as jump shots, passing (passing against the wall, you can practice reflexes), the training of bounce is frog jumping, and there is some practice of physical confrontation, in general, basketball relies on physical fitness, agility, flexibility, tacit understanding, and a little talent. The most important thing is physical fitness, otherwise you will collapse if you don't fight a game, and you won't have to say anything about becoming a master. >>>More
are upside down, originally at the end of the sentence, are (likely to,,。 >>>More
You can send the software to another mobile phone through QQ on your mobile phone, and the method is as follows: >>>More
First, you have to clearly understand what the purchaser does, and what the main thing of the day is nothing more than the approval of the procurement of goods, the cooperation with the warehouse keeper, and the best business. >>>More