Today there is such a demand, request to be able to inquire Sheng card status, the official website below http://www.801335.com/status/index.htm
Just opened the URL, found two input box plus a verification code, the heart is not a small case
Example
The code is as follows
Copy Code
String[] Stringarray = {"AAA", "BBB", "AAA", "CCC", "BBB", "DDD", "CCC", "AAA", "BBB", "ddd"};List is used to store the different elements taken out of the arrayList>string>
Match phone numberRegex regphone = new Regex ("^[0-9]+[-]?[ 0-9]+[-]? [0-9]$ ");
Matching numbersRegex regnumber = new Regex ("^[0-9]+$");
Match positive and negative integersRegex regnumbersign = new Regex ("^[+-]?[ 0-9]+$ ");
Match decimalRegex
Example 1
code is as follows
copy code
To compute the occurrence of a substring in a string Number of times, is there a good way? /// ///calculates the number of occurrences of a string substring /// /// String
What buttons need to be displayed in a message box where OK and cancel are displayed
MessageBoxButtons Messbutton = Messageboxbuttons.okcancel;
"Are you sure you want to exit?" "Is the display information for the dialog box," Exit System "is the
Judgment file
The code is as follows
Copy Code
#include void main () {Ofstream f ("C:\test.txt");Open file Test.txt, for writing, if the file does not exist, create it first}
Cases
The code is as
When the path D:\web\ does not exist, the bottom two statements will be thrown incorrectly:
File.writealltext (@ "D:\web\index.htm", "111cn.net");File.readalltext (@ "D:\web\index.htm");
Directory.Exists and Directory.CreateDirectory are called
1. Declaration header file, equivalent to the Java Guide package.
Only the declaration of the function, compile-time will find the implementation of the function#include 2. Write Main () method
Main () {printf ("Hello from c\n"); \ n Line Change}3.
What is the meaning of the keyword const? What about the modifier class? Static functions for classes? and the role of extern c.
Const means "read Only", what do the following statements mean?
The code is as follows
Copy Code
Constant pointers and pointer constants in C ++ are easy to confuse. Actually there is nothing. This is nothing more than the difference between the const int * p and the int * const p, but when it comes to the first name, in particular, because of
ProblemI want to find as simple an example as possible for learning anything, rather than looking too big;For simple data structures like linked lists, some books are too well written;It is difficult for beginners to grasp the key points. I cannot
IntroductionMost programmers may have heard of JavaDoc, a built-in Java tool that automatically generates HTML documents for your code. C # and C # compilers have similar functions, but they generate XML instead of HTML directly. However, using XML
50 Views on learning c ++ and programming:1. Take c ++ as a new language learning (it has nothing to do with c! True .);2. Read thinking in c ++ instead of c ++.3. Read the c ++ programming language and inside the c ++ object model.It's hard for
There are many examples of using php to write back-end programs, but few are using c/c ++.This article uses nginx, spawn, and fastcgi ++ to build a cgi-based web program.Fastcgi ++ depends on the boost library.Compile boost in Linux1. Preparations
The CompareTo method of the string instance can be used for string comparison.The Compare and Compare methods are also character strings, but are more powerful.Basic syntaxCompare has multiple overload functions to list the simplest one.Public
Destructors in C #By AnsilIntroductionIn the enterprise application development world, the buzzwords are Performance, Scalability, and Security. I started my career as a VC ++ programmer, and one fine morning, I was transferred to Web development
Using System;Using System. Drawing;Using System. Collections;Using System. ComponentModel;Using System. Windows. Forms;Namespace MSDNOUT{/// /// Decompile the Microsoft MSDN2003 document and save it to the main program form of the database/// Public
When I visited the CSDN Forum in the evening, I saw a friend in Area C # asking "preventing the MDI subform from being instantiated multiple times" and then wrote this article.In fact, this is the Singleton mode in the classic 23 Design Patterns.
Next, the application of Chinese speech recognition technology in c # (I) ...... However, the method itself does not know the language of the string you are giving, so we need to read the string in what language. The Voice attribute of the
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.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service