1 Public classshanjiaoxing2 {3 Public Static voidMain (string[] args)4 {5 for(inti=0;i )6 {7 for(intJ=0;j//the output spaces are decremented with the loop8 {9System.out.print ("");Ten } One for(intk=0;k//The output * number is incremented with the outer loop, and when k A { -System.out.print ("*"); - } the System.out.println (); - } - } -}Operation Result:Output Half triangle:1 Publi
This article mainly introduces the PHP mobile phone number middle four with asterisks * instead of display examples, with a certain reference value, interested in small partners can refer to
In the display user list of the scene, the general use of mobile phone number of the display need to handle the mobile phone number, the general is the middle of the four-bit into the asterisk * * * * * * * * * * *, I am using PHP to deal with the idea is to repl
use in the future.
2. Self-made asterisk replacement function
The Code is as follows:
ReplaceStar ($ str, $ start, $ length = 0)
The preceding two parameters are the same as those above, and the final parameters are different from those above.
1. When start and length are both positive numbers, the performance is the same as that of substr_replace.
2. When start is negative and length is positive, it performs the same as substr_replace.
Iii. so
Background
System Structure
Extension 1026 and extension 1027 are used in the existing telephone system, and an asterisk is implemented under extension 1026 and extension 1027. A: In the 1027 system, ext. B: 1011 in the 1026 system, ext. 1012 is now called B through a. Because the language menu is implemented in the 1026 system, first, you can use the 91026 incoming call 1026 system (with an external dialing 9), and then enter 1012 according to
for(inti =1; I )3 {4Enumerable.//overall function: Output space triangle type5Repeat (" ", Empty-i). ToList ().//The Repeat (tresult,int count) function controls the number of spaces per line. 6ForEach (Console.Write);//The action7 //Execute the Console.Write function8 9Enumerable.repeat ("* ", i). ToList (). ForEach (Console.Write);//function Output * Number triangleTen OneConsole.WriteLine ();//Controlling line b
How do I use PHP to add an asterisk to my phone number and name?
On the internet to find a bit, a textbook is not good
http://www.haogongju.net/art/848588
Preg_replace ('/(0[0-9]{2,3}[\-]?[ 2-9]) [0-9]{3,4} ([0-9]{3}[\-]?[ 0-9]?) /I ', ' $1****$2 ', $phone);
I'd like to have my name and phone number (landline 8 or phone 11, the middle part becomes *
------Solution--------------------
PHP code
$tel 1 = "13888111188"; $tel 2 = "+861388811
/** Copyright (c) 2012, School of Computer Science, Yantai University * All rights reserved. * Author: Zhao guanzhe * Completion Date: July 15, October 9, 2012 * version number: v1.0 ** input Description: asterisks * Problem description: omitted * program output: omitted * problem analysis: slightly * Algorithm Design: slightly */# include
Running result:
Experience:
You are not sure about the asterisks, and there are many errors. I really don't know how to debug it. So I thought of the mo
The general solution to this problem can be like "3.20 how to customize the view title ?" . If you only want to display a simple "modified" indicator. For example, if there is a '*' in the title of a "modified" document, you only need to simply reload the cdocument: setmodifiedflag () function, no matter when the document object is changed, you can call this function.
We can safely reload setmodified (), because this function is declared as a virtual function in the cdocument class. Although vis
Training Content:1. Entry level: centos Installation2. Entry level: asterisk Installation3. Entry level: freeiris Installation4. Entry level: Basic settings of freeiris5. Improvement level: AQL Technology6. Improvement level: agispeedy Technology7. Improvement level: amipsIt starts at 09:30 and ends. Free all-day training.Address: Third floor, building 127, jindi industrial zone, Futian district, ShenzhenPlease send the following information for regis
You can configure a SIP Phone as needed, but video functions cannot be implemented in the early stage,
Now the video function has been successfully configured. Please share with us:
The premise is to create an account through extensions and use X-lite as the client:
1. log on to freepbx. The default value is admin/admin. Click module admin and check for update online.
2. Click Check update and you will see the plug-in. Some of them are tool modules. You can see which are installed, which
[Phpagi. conf]
[Asmanager]
Server = localhost; server to connect
Port = 5038; default manager Port
Username = phpagi; username for login
Secret = phpagi; password for login
[Festival]Text2wave =/usr/bin/text2waveTempdir =/tmp/[Phpagi]# Error_handler = true# DEBUG = tru
Manager. conf: W;; Ami-the asterisk Manager interface;; Third party application call management support and PBX event Supervision;; This configuration file is read every time someone l
Identifier dictionary, the method of calling the function needs to take the form of arg1=value1,arg2=value2.>>> def A (**x):If Len (x) ==0:print ' None 'ElsePrint X>>> A ()None>>> A (x=1,y=2){' Y ': 2, ' X ': 1} #存放在字典中>>> A (#这种调用则报错)Traceback (most recent):File "A (+)Typeerror:a () takes exactly 0 arguments (2 given)Described above four kinds of definitions, then see how the function parameters in the call process is resolved, in fact, as long as the above four methods to remember the priorit
The example in this article describes the two-bit method of displaying an asterisk after PHP hides the IP address. Share to everyone for your reference. The implementation methods are as follows:
We are in a lot of public websites will encounter the user's IP when the next few IP segments appear as asterisks, so good protection of the user's privacy, interested friends can take a look.
PHP is formatted with the IP address, hiding the next bit.Exampl
Label:Recently studied asterisk configuration, before the SIP account is configured in the sip.conf file, manual writing dead, the current demand, is the dynamic new SIP account, saved in the database.After adding data to the database, use the command SIP show users to not load the SIP account to the database.1. Download X-lite soft phone client, login SIP account, can login successfully.2. Modify the res_config_mysql.conf file, configure the database
Title Link: http://poj.org/problem?id=3414
Idea: Very simple, is the search can, just a cup of water in the state transfer when the code is a bit less good to write.
Code:
#include #include #include #include #include #include #include
This reminds me of the three Coke cans of hangdian. It seems that only the number of output times is enough, and all the paths need to be output here, in this way, BFs alone will have a lot of space redundancy in the state of retention. Therefore,
// The solution for poj1606 is the same, but it should be noted that impossible should be output when there is no solution for this question, and no matter which cup of water capacity meets the requirements, you can output it! # Include # include #
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.