Skip to main content

Posts

Showing posts from May, 2019

how to use Array.‎IndexOf(Array, Object) in C sharp

using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ARRAYINDEX {     class Program     {         static void Main(string[] args)         {             double[] numbers = { 15.05, 58.3, 22, 95.55, 177.2, 46.65, 0.85 };             double maxNumber = numbers.Max();             int indexOfMaxNumber = Array.IndexOf(numbers, maxNumber);             Console.WriteLine("The index of max number in the array is {0}", indexOfMaxNumber);             Console.Read();         }     } }

To fight back Trump, China still has three major destructive weapons

US President Trump’s tariff on China’s 200 billion US dollars has risen to 25%, which has caused the US-China trade war to heat up again. Although China has not yet resorted to counter-measures, experts believe that Beijing still holds three major counter-attack weapons, including The depreciation of the renminbi, the sale of US Treasury bonds, and the refusal to purchase US soybeans, etc. But the measures have to be taken carefully, otherwise they may hurt China itself. Weapon 1: RMB depreciation China can offset the impact of US tariffs on the Chinese economy through the depreciation of the renminbi. However, Wang Tao, the chief Chinese economist at UBS, pointed out that the depreciation of the RMB in 2015 caused capital outflows and also weakened domestic confidence. So China may have  concerns to use this weapon. Weapon 2: Selling US Treasury bonds China currently holds US$1.1 trillion in US Treasury bonds. As the biggest amount holder of most US debts, the reduction of US

Both country win temporarily from the trade war

1. The Trump administration plans to raise the tariff of goods worth $20 billion to the United States to 25% from January 1. After the meeting with the Chinese side on December 1, the negotiation process was started and the time was extended to March 1st; later at the end of February, the time was delayed again. The negotiations did not have any results at the end, but the time was greatly extended. From this point of view, the Chinese side is a winner. 2. Judge from Trump's Twitter, it was because the Chinese attempted to withdraw some of the promises, which led to the breakdown of the negotiations, thus the process of raising tariffs is opening up . However, the punishment is not enough. The time for these tariff increases is pushed back. Now there are some deceptive factors superimposed and more punishments should be imposed. 3. The United States has obtained tariffs on the Chinese side and the taxation procedures for the remaining products imported from China is started. Ther

How to make a custom search engine and search the resources from Baidu cloud disk?

Baidu cloud disk is a popular net disk in China, nowdays there are almost 0.4 billion users across the country, also there are a huge numbers of users overseas. There are a lot of shared content on it, video, e-book, music, etc, and many of these are downloadable. Thus, it is convenient for us to collect a lot of learning resources from it to improve us.  Combine google's custom search engine, we can find the resources easily. Below is the steps:- 1. Type google custom search engine in the textares, and press enter. 2. The very first one is the right link, click it. 3. Then we come to the Custom Search control center. Click the "Add" button. 4. The create new CSE page shows. The rules are quite clear below. As the site we are going to search is baidu cloud, so we add the sites in the text area as below:- pan.baidu.com/* yun.baidu.com/* 5. Finally, we click the "Creat" button in the bottom of the page, done. The final outlook is like f