Tuesday, October 12, 2010

High-quality C + + / C Programming Guide - Chapter 11 references the experience of other programming



Chapter 11 Other programming experience

11.1 Use const to improve the robustness of the function

See the const keyword, C + + programmers first thought may be constant const. This is not a good reflex. If you only know the definition of constants with const, then the equivalent of the powder is only used to make firecrackers. const more attractive is that it can modify the function parameters, return values, and even the definition of the function body.

const is a constant of the abbreviation, "constant" means. Const everything was modified by the force protection, to prevent accidental changes to improve the process robustness. Therefore, many C + + programming book proposal: "Use const whenever you need".

11.1.1 Modified function with const parameters

If the parameter for the output to use, no matter what it is data type, and whether it uses "pointer passed" or "passing reference" can not add const modified, otherwise the argument will lose output.

const can only modify the input parameters:

u If the input parameter a "pointer passed", then add const modified to prevent accidental changes to the pointer, has protective effects.

For example StringCopy function:

void StringCopy (char * strDestination, const char * strSource);

One strSource are input parameters, strDestination is output parameter. Add const to strSource modified, if the statement is trying to change the function body strSource content, the compiler will point out the error.

u If the input parameter used "value transfer", because the function will automatically generate temporary variables for the replication of the parameters, the input parameters would have no need to protect, so do not add const modified.

For example, do not function void Func1 (int x) written as void Func1 (const int x). Similarly do not function void Func2 (A a) written void Func2 (const A a). Where A is a user-defined data types.

u for non-internal data type parameters, such as void Func (A a) the efficiency of such comparative statement of the function bound to the end. Because the function body will have a temporary object of type A for the replication parameters a, and the construction of temporary objects, copy, destructor will be time-consuming process.

To improve efficiency, you can change the function declaration void Func (A & a), because "passing reference" to borrow only what alias parameters only, do not need to create temporary objects. But the function void Func (A & a) there is a drawback: "reference transfer" could change the parameters a, which we do not expect. To solve this problem is easy, you can add const modification, so the function eventually become void Func (const A & a).

And so, it should be void Func (int x) rewritten as void Func (const int & x), in order to improve efficiency? Not necessary, because the internal data structure of type parameter does not exist, the process of destruction, and reproduction is also very fast, "value transfer" and "passing reference" the efficiency of the almost equal.

The problem is so touching, I had to be "const &" the use of modified input parameters to sum up, as shown in Table 11-1-1.

For non-internal data type of input parameters, should be "value transfer" approach to "const reference to pass," aims to improve efficiency. Such as void Func (A a) to void Func (const A & a).

Internal data type for input parameters, not the "value transfer" approach to "const reference to pass." Otherwise, not only fail to improve efficiency, but also reduce the function of intelligibility. For example void Func (int x) should not be changed to void Func (const int & x).

Table 11-1-1 "const &" Modified input parameters of the rules

11.1.2 use the const return value modified

if u give "pointer passed" means plus function return value const modification, then the function returns the value (ie, pointer) of the content can not be modified, the return value can only be assigned to additional modification of the same type const pointer.

For example, the function

const char backup bin conf config data eshow_sitemap.html generate.sh log maint sitemap.html svn tmp GetString (void);

Statement will be a compilation error as follows:

char * str = GetString ();

Correct usage is

const char * str = GetString ();

u if the function returns a "value transfer mode", since function will return value copied to an external temporary storage unit, no value added const modified.

For example, not to function int GetInt (void) write const int GetInt (void).

Similarly not to function A GetA (void) write const A GetA (void), in which A is a user-defined data types.

If the return value is not within the data type, the function A GetA (void) rewritten as const A & GetA (void) does improve efficiency. But never, never to be careful at this time, we must find out whether the function returns an object to the "copy" or just return to "Alias" on it, otherwise the process will go wrong. See section 6.2 "Rules of the return value."

u function returns the value a "passing reference" not many occasions, this approach generally appear in the class assignment function, the objective is to achieve chain expression.

Such as

class A

(...

A & operate = (const A & other); / / assign function

);

A a, b, c; / / a, b, c for the A's object

...

a = b = c; / / normal chain assignment

(A = b) = c; / / not normal chain assignment, but the legal

If you assign the return value added const modification, then the return value is not allowed to change the content. The above example, the statement a = b = c is still correct, but statement (a = b) = c is illegal.

11.1.3 const member function

Does not modify any data member of the function should be declared as const type. If in the preparation of const member function, accidentally modify data members, or call the other non-const member functions, the compiler will indicate an error, it will undoubtedly improve the process robustness.

The following program, class member function GetCount stack used only for counting, logically, GetCount function should be const. Compiler will point out the error GetCount function.

class Stack

(

public:

void Push (int elem);

int Pop (void);

int GetCount (void) const; / / const member functions

private:

int m_num;

int m_data [100];

);

int Stack:: GetCount (void) const

(
+ + M_num; / / Compile error, attempting to modify the data members of the m_num

Pop (); / / Compile error, attempting to call non-const function

return m_num;

)

const member function declaration looks strange: const keyword on the function declaration can only be the tail, presumably because other places have been occupied.

11.2 efficiency of the process
Timing of the process efficiency is the speed, efficiency refers to the process of space occupied by the status of memory or external memory.

Overall efficiency is the standing point of the entire system to consider the efficiency of the local efficiency is the point of standing on the module or function to consider efficiency.

11-2-1銆?銆恟ules do not blindly pursue the efficiency of procedures, should meet the accuracy, reliability, robustness, readability, quality factors such as the premise, to efficiency of the process.

11-2-2銆?銆恟ules to improve the overall efficiency of the program mainly to improve the efficiency of the local secondary.

Rule 11-2-3銆?銆恊fficiency in the optimization process, you should first find out the restrictions on the efficiency of the "bottleneck", do not does not matter between optimization.

Rule 11-2-4銆?銆恌irst optimized data structures and algorithms, and then optimize the code.

Rule 11-2-5銆?銆恡ime efficiency and space efficiency is sometimes possible confrontation that should be analyzed at this time is more important to make appropriate trade-off. For example, take some more memory to improve performance.

11-2-6銆?銆恟ules do not pursue a compact code because the code does not produce compact and efficient machine code.

11.3 Some useful suggestions
Beware of those who proposed 11-3-1銆?銆恦isually difficult to distinguish the operator to write error occurred.

We often will "==" write error "=" symbols such as "","&&","<=",">=" also very prone to "throwing a" mistake. However, the compiler does not necessarily automatic that such an error.

11-3-2銆?銆恜roposed variables (pointers, arrays) have been created, initialize them should be promptly, to prevent the uninitialized variable as the right value to use.

Beware of the proposed 11-3-3銆?銆恑nitial value of variables, the default value of the error, or precision is not enough.

Beware of the proposed 11-3-4銆?銆怐ata type conversion error. To make use of explicit data type conversion (to let people know what happened), to prevent the compiler light quietly implicit data type conversions.

Beware of the proposed 11-3-5銆?銆恦ariable overflow or underflow occurs, the array subscript bounds.

Beware of the proposed 11-3-6銆?銆恌orget write error handler, be careful error handling process itself is wrong.

Beware of the proposed 11-3-7銆?銆恌ile I / O errors.

Proposed 11-3-8銆?銆恆void writing skills of a high code.

11-3-9銆?銆恟ecommended not to design every aspect, very flexible data structure.

11-3-10銆?銆恜roposed code quality if the original is better, try to reuse it. However, very bad, do not fix the code, should be re-written.

11-3-11銆?銆恜roposed to make use of standard library functions, not "invention" already exists in the library functions.

11-3-12銆?銆恟ecommended not to use specific hardware or software environment with the closely related variables.

11-3-13銆?銆恟ecommended compiler options to set the most stringent state item.

11-3-14銆?銆恟ecommended, if possible, use the PC-Lint, LogiScope tools such as code review.

References
[Cline] Marshall P. Cline and Greg A. Lomow, C + + FAQs, Addison-Wesley, 1995

[Eckel] Bruce Eckel, Thinking in C + + (C + + programming ideas, Zong-Tian Liu, M.), Machinery Industry Press, 2000

[Maguire] Steve Maguire, Writing Clean Code (programming essence, Jiang Jingbo, M.), Electronics Industry Press, 1993

[Meyers] Scott Meyers, Effective C + +, Addison-Wesley, 1992

[Murry] Robert B. Murry, C + + Strategies and Tactics, Addison-Wesley, 1993

[Summit] Steve Summit, C Programming FAQs, Addison-Wesley, 1996







相关链接:



FrontPage easy to adjust inside the framework of the margins



Compare Server Applications



MPEG to MOV



PS produced with small fine pixel button



Job 10 Kinds Of Unhealthy Attitude Towards Students



"Black, Then It" Is Not Very "black"



DV TO AVI



Astrology Or Biorhythms Or Mystic Expert



dv to Iriver u10 for windows 7



Health wine listed first off Over five



Recommend Tools And EDITORS



With CloneCD CD-RW disc to save the damaged



YUV to AVI



Professional Confused On How To Spend?



Great friends with the compatriots in Taiwan noted connected with the download tool



Monday, October 11, 2010

Whirlpool eventually favored by the United States and Thailand was designated as the optimum board b


Whirlpool to finally having a good harvest increase several times, the United States and Thailand removed the board last Friday, said Ripplewood's previous recommendation, the Whirlpool bid as the optimum bid.

To last Wednesday, Whirlpool has bid three times to reach 21 dollars per share to acquire the stock by half cash half way. In contrast, Ripplewood bid 14 dollars per share, it becomes relatively shabby. The Whirlpool with Mattel and Ripplewood's breakup fee 40 million U.S. dollars have been ready. Industry analyst firm Morgan Keegan analyst Laura Qian Pan (LauraChampine) said: "Whirlpool's offer is enough to win the United States and Thailand, a week, Whirlpool and Maytag will officially hand, Ripplewood will be out."

This year in May, the United States and Thailand's Board of Directors has recommended that shareholders accept the Ripplewood offer, and decided on August 19 at the company headquarters in Newton, Iowa, on whether to accept Ripplewood's offer to vote.






Recommended links:



MKV to Zune



M2TS to MKV



XviD to MP4



drm removal software to strip DRM from itunes



Sunday, September 26, 2010

Chemistry teachers and multimedia courseware



Abstract: Reform in the deepening of Chemistry has been inseparable from the multimedia courseware, how to make use of multimedia courseware for the opportunity to produce multimedia courseware, software, multimedia courseware production of chemicals which, how to download chemistry courseware, reading this will understand.

Key words: time for the principle of making software download

With the rapid development of information technology, computer education and teaching on a variety application. Now many schools have built a campus network, and connect with the internet, constitutes a comprehensive, multi-channel, interactive teaching system. Multimedia has become the field of computer applications in education, the new trend. Multimedia technology refers to the computer as the core, the integrated treatment of text, graphics, images, sound, animation and video and other multimedia information, and that these information Jianli Qi logical connections, to express a richer, more complex Sixiang or method, such teaching information can act on the students in a short time all the senses, so that students produce a profound feeling of unprecedented use of the CAI multimedia courseware is an ideal modern teaching methods. I was a teaching for more than ten years of chemistry teachers, two years active research and studying multimedia technology and its applications, some experience and lessons learned, here are the views of my shallow for colleagues 鍙傝?.

First, the use of multimedia courseware for chemistry teaching time

1, microscopic particle motion. Chemistry is the study of molecular, atomic and extranuclear electron and other particles sports science, and movement of microscopic particles is the meat eyes do not see the hand touched, usually we only have the help of charts and models, through our teachers explain and make students understand. The process of particle movement and change can not fully display, for example, junior chemical decomposition of water, hydrogen reduction of copper oxide and other real experiments have shown that perception can not once and for all junior high school students to master, but with a separate multimedia courseware simulation particles and integration process, it enables students to quickly understanding and acceptance. High school chemistry, crystal structure, organic molecular structure, isomers, cis and trans isomers, chiral carbon hybrid orbital, 蟺-bond, electrolytic cell theory, the original battery principle, elimination reactions, addition reactions, esterification , polymerization, colloid dialysis and electrophoresis, etc., can be used to simulate multi-media courseware. I was struck by the knowledge that the crystal structure, usually the contents of two or three lessons, and now spend multimedia courseware, only one class will be able to fully explain, and works well. Such as sodium chloride crystal lattice in a number of sodium ions, the number of chloride ions, sodium ions surrounded by a distance equal to the sodium ion and the recent number of issues, almost no waste of breath, students will be able to find out.

2, toxic, harmful and can not be completed in a short time experiment. Such as gel electrophoresis, the nature and Production of hydrogen sulfide, CO, SO2, Cl2 and other toxicity.

3, error in laboratory consequences. Such as hydrogen reduction of copper oxide through hydrogen when heated first, add water to dilute concentrated sulfuric acid, sulfuric acid, taken with a Kipp generator system, such as acetylene.

4, the chemical production process of macro-presentation. Contact with the legal system as sulfuric acid, ammonia oxidation and nitric.

Second, for production of chemicals commonly used software, multimedia courseware and function Introduction

Production of multimedia courseware for the chemical commonly used software are: Authorware, Director, Founder Author, Flash, 3Dmax so. I rather like is Authorware, Flash, 3Dmax three kinds of software. Authorware is a powerful mix of media tools, able to text, images, sound, animation, video and other organically combined, and has a wealth of interactive features, all material prepared for later in combination. Flash is one simple and easy-to-plane animation tool for particle motion in the plane to do some demo. 3Dmax is a large-scale software, 3D modeling and animation capabilities are incomparable and are generally used for doing the spatial structure of organic compounds, isomers, crystal structure and other space demanding courseware.

Third, the principle of Multimedia Courseware

Multimedia Chemistry teaching process consists of four elements: teachers, students, teaching materials and multimedia. Four elements of interrelated constraints, forming an organic whole, to achieve satisfactory teaching results, we must correctly handle the relationship between the four elements. According to Piaget's constructivist learning theory: teachers are the organizers of the process of teaching, guidance and knowledge, meaning construction of the helper, facilitator, rather than take the initiative to educate those who teach knowledge; students are active constructors of knowledge meaning rather than passive recipients of external stimuli, the object of inculcating knowledge; materials provided in the active construction of knowledge is the object of the students, not teachers, the content to students; media is the creation of learning situations, students active learning, collaboration, to explore and complete knowledge of the cognitive tools to construct meaning, rather than teachers to provide pupils with the means and methods used.

Thus, CAI multimedia chemistry teaching can not replace the teachers to teach the simple, still have to give full play to the leading teachers and students in the main role, while highlighting the capabilities of multimedia teaching aids. Only deal with the relationship between these four elements in order to correct positioning of Multimedia Courseware in high school chemistry teaching position and role, it is apparent multimedia courseware should follow the following principles:

1, multimedia courseware to highlight teaching points, breaking the difficulty of teaching tools for those who can use common media such as models, charts, etc. need not be used to achieve the display of multimedia courseware. Should handle the use of multimedia courseware for teaching and teaching of traditional media relations, chalk and blackboard is still our teacher's main teaching tool, we should be the crowning touch of multimedia courseware for teaching.

2, can demonstrate the general chemistry class experiment with video or animation can not be replaced. Experimental media is replaced by any other media can not, it can observe the ability of students, ability, analytical skills and teamwork spirit, experiment is the most direct and vivid media, chemistry teachers are not bartering can do experiments and to give up Chuishou to use computer simulation.

3, multimedia courseware should be small "positive conditions" as the main form. Multimedia courseware well, it should be for everyone to use, not for teaching ideas and classroom differences in the structure of conflict. That is a difficult one corresponding courseware, teaching ideas have changed, changed class structure, courseware can still be used, only such courseware will have a strong vitality, will be extended. Many currently on the market in large scale courseware can not be the reason for this.

4, courseware should have good interaction. Some teachers make courseware, it will be a whole class teaching content, teaching procedures, and all woven into the blackboard, etc., in class the teacher simply press the mouse all the way "next" go, although many provincial King, but too little interaction, is still "indoctrination type "effect is not good teaching. Particular type of exercise self-learning courseware, should have good interaction and feedback functions.

Fourth, study the method of multimedia courseware

Secondary school teachers in addition to computer science teachers, generally not familiar with the programming language, so the real programming language courseware directly very little of several software described above does not require its entry-based programming, such as Authorware, which is a kind of icon-oriented programming tools, it is easy to grasp, and to buy an appropriate book, the book's examples were, generally a week or so you can grasp, if expert guidance, can learn a about three days. Of course, handy to be able to comfortably ease to use, but also a lot of practice. Learning generally so other software, including Flash learning time to be shorter, 3Dmax be longer.

5, the source of multimedia courseware

Multimedia is simply the source of two aspects: First, to produce their own, second is downloaded. Through their own ideas and creativity to produce courseware that wisdom is the fruit of their labors, we should be able to produce a good multimedia courseware for the proud. However, completion of possible time constraints, energy limited, the limitation of foreign language proficiency or even entirely by its own end is a small number of courseware produced a large number of courseware also need to go online to download or secondary development. Internet realize sharing of resources, we chemistry teachers should be able to make full use of network resources for their teaching services, teaching and difficult to resolve even with a number of courseware can be found, we need more to absorb, use, improvement and development. Of course, do not forget to hang your own editing software and the Internet for reference and download colleagues, "I am for all, all for one" is common to follow our guidelines.

6, common courseware download site:

1, 2, high school chemistry teaching resources, people to teach web - High School Chemistry 3, CAI teaching - network exchange 4, 5 books forest walk, lotus and other CAI.







相关链接:



digital video production 2



Shenzhen, Hong Kong: Forerunner Of Attitude



Recommend Web Development



MKV to Zune



WMV to MPEG



MKV to Xbox 360



Good Mail Servers



Young professionals entering the workplace to learn the three key issues



China Has Announced Measures In The United States Blocked WAPI Appeal To The International Organizat



On FreeBSD5.2 common OPERATIONS (setting) changes



New Audio Recorders



Exchange links need special attention



Beijing TV (radio and television MEDIA)



Top Audio And Multimedia



CSS in the minimum height (min-height) of the Magical Effect



Training of new employees Approach HR



Cool! Foreign wall graffiti art pictures wonderful Awards



Monday, September 20, 2010

MacTel impact WinTel


MacTel = Mac + Intel, is impacting the well-known WinTel.

Old Bill introduced Windows 3.0 in 1990, the moment, WinTel experiencing pain after 5 years was finally stable. After 20 years in the years, there has been no real threat to the strength of its foundation.

January 10, Jobs announced the Mac World last two marked "Intel Core Duo", a Mac running Mac OS machine. This is the first time in history, some manufacturers have adopted Intel processors and not dare to launch Windows-running PC. Such a cool thing, except no one dared to Jobs.

MacTel WinTel What will the impact?

The fact that playback
Week, the world body to get a test prototype, the evaluation has published their own report and comments.

According to Macworld test, iMac Core Duo comprehensive than iMac G5, running iMove rate of 1.84 times for the iMac G5, close to Steve Jobs claimed: "speed up the past two times." Nikkei BP testers wrote: "start very fast. From the power to burst open," Qiang "was about 5 seconds, then after about 20 seconds to display the progress bar. And then, instantly showing the desktop," "HD smooth playback of video was amazing. "

In order to run in the iMac Core Duo iMac G5 version of the application code execution, Apple supplied Rosetta emulator. According to Macworld test, iTunes iMac G5 speed under 66%, Photoshop is 55%. Jobs said this at the press conference, general users to use enough.

Nikkei BP reporters, iMac Core Duo does not have Intel Inside, Centrino Duo and Intel ViiV standards such as the identity. Box bears a completely Apple-style "Intel Core Duo" logo. "Apple design" is impressively printed on the iMac Core Duo.

iMac Core Duo announcement after the heated discussion in the industry to run Windows in its possibilities. Many tests show that the iMac Core Duo can not run Windows XP. Technical experts, iMac Core Duo for UEFI (United Extensible Firmware Interface, Unified Extensible Firmware Interface) block the operating system other than Mac OS. Experts point out that as long as the change UEFI firmware, you can run other operating systems.

Macnn reported: "Microsoft said it is working with Apple co-operation, will Virtual PC to Intel Mac platform." Microsoft Virtual PC is a virtual environment based on Intel processors, can run multiple operating systems on it, Intel pledged to support processor-level virtual technology. The Apple director, said this: "We did not take any action to prevent or encourage this." One thing is clear, iMac Core Duo has the potential to run multiple operating systems.

Finally, the computer lab experts evaluating the world, Intel Mac machine's price and the same configuration of PC and laptop machines rather, not expensive. According to research firm iSupply analysis of 1,299 U.S. dollars iMac Core Duo manufacturing cost 898 U.S. dollars.

Three shocks
iMac Core Duo has been placed in front of the user, who can only face all the WinTel, fight.

Wintel's vulgar temperament and different, MacTel is a high-level artistic temperament and style of products. Throughout the industry, manufacturers rely on third-manufacturing companies rely on second-rate technology, first-class manufacturers rely on Art. MacTel appearance, open the PC and notebook artistic era. In the art of the times, why should the user choose vulgar? WinTel we all will make the individual a bit technical, who art?

MacTel has the potential to run multiple operating systems. If that day comes, only the function of running Mac Mac OS, Windows and Linux, and three OS on top of rich applications. Wintel PC can run most Windows and Linux. Stronger than the 32-bit 64-bit, 2GHz stronger than 1GHz. Decimal better than large numbers, women and children to know the IT Law. Once the user understand MacTel are three kinds of OS, WinTel only two words how do?

From the cost analysis shows, MacTel considerable room for price cuts, have more room to deal with price wars. Jobs in particular, taught to play low-cost iPod games. Even the price war is immune dominant, WinTel how to do?

Although the Mac, only 4% market share, if three to five years as the iPod, like Rounds, Old Devil A point would not be surprised.






Recommended links:



evaluation Management And Distribution



Onimusha 3 Details All Captures



flv to wmv converter Free



ts Format converter



Comments Games Kids



Eclipse + JBoss + EJB3 Entity Bean's connection strategy



SNS, a dominant Red Sea? Chen Zhou in THE idiotic nonsense



Job 10 kinds of unhealthy attitude towards students



Intermediate hospital "backward" sample



Convert .mov To Avi



Adobe GoLive has PUSHED for Dreamweaver where to go



format blackberry



Enhance the concept of active intrusion Prevention IPS is not speculation



"Dance like" Chinese Edition



Thursday, July 29, 2010

Visuanl C # 2005 Quick Start of the while statement (1)



Use while statements can be true in a Boolean expression is subject to repeat the run a statement.
while statement syntax is as follows:
while (booleanExpression)

statement


First, the Boolean expression will be evaluated, if it is true, on the run statement, then the Boolean expression is evaluated again. If the expression is still true, to run the statement again, and again the expression is evaluated. This process will continue repeatedly until the boolean expression evaluates to false; time, while statement will exit, and from the first statement after the while continue. while statement syntax with if statements have many similarities (in fact, in addition to the two different keywords, the syntax is exactly the same):

鈼?expression must be a Boolean expression.

鈼?Boolean expression must be placed within parentheses.

鈼?If the first value, the Boolean expression is false, statement is not run.

鈼?If you want to in a while under the control of the implementation of two or more statements, you must use braces to group into a block statement.

The following while statement is written to the console the value 0 to 9:
int i = 0;

while (i! = 10)

(

Console.WriteLine (i);

i + +;

)


All the while statement should be terminated at some point. Novice common mistake is to forget to add a special statement, it would eventually result in a Boolean expression evaluates to false and terminate the cycle. In the example, i + +; on this situation.

Note that while loop variable i controls the final number of cycles. This is a very popular representation, has the effect of the variable is sometimes called the sentinel variable (Sentinel variable).

In the following exercise, preparing to write a while loop, it is time to read from a source file line content, and write each line of a text box.

鈼?use the while statement

1. WhileStatement open Visual Studio 2005 project, which is located in My Documents folder under the Microsoft PressVisual CSharp Step by StepChapter 5WhileStatement subfolders.

2. Select "Debug" | "to start (not debugging)."

Visual Studio 2005 to build and run the Windows application. Application itself is a simple text file viewer that allows you to select a file to display its contents.

3. Click the "Open File" (Open File) button.

Then there are "Open" dialog box

4. Switch to the My Documents folder under the Microsoft PressVisual CSharp Step by Step Chapter 5WhileStatementWhileStatement subfolders.

5. Select the Form1.cs file, and then click "Open."

Form1.cs file name will be displayed in small text box, but the contents of the file does not display in the large text box. This is because we have not achieved the appropriate code to read the contents of the source file and display those in the large text box contents. The following steps will add this feature.

6. Close the form, return to Visual Studio 2005.

7. In the "Code and Text Editor" window displays the file Form1.cs code, find openFileDialog_FileOk method.

Users in the "Open" dialog box, select a file, and click "Open" button, call the method. Method is currently the subject:
string fullPathname = openFileDialog.FileName;

FileInfo src = new FileInfo (fullPathname);

filename.Text = src.Name;

/ Bin / boot / dev / etc / home / lib / lost + found / media / misc / mnt / net / opt / proc / root / sbin / selinux / srv / sys / tmp / u01 / usr / var / vmware add while loop here backup / bin / conf / data / log / maint / svn / tmp /


The first statement declares a string variable, named fullPathname, and it is initialized to openFileDialog object FileName property. The statement fullPathname initialized to "Open" dialog box, select the source file's full name (including path).

Note openFileDialog object is from the "toolbox" of selected components of an instance of the OpenFileDialog. This component provides the methods used, you can display to the user a standard Windows "Open" dialog box, allowing users to choose a file, and get selected file name and path.







相关链接:



Issuing 3G licenses will be postponed to the End of 2007



Job On The Road A Few Lessons To Remember



brief Teaching And Training Tools



Best Video Format



Lists 0



Win 7 list, how to buy the most Cost-effective?



18th "Gold-collar WORKPLACE," Senior Human Resources Fair



FreeBSD Serial (93): reverse proxy LOAD balancing



Xu Xiangchun: Long And Short Term Iron Ore Negotiations, And Worry



Ma, "New York Times" published a signed article: Small is beautiful because



comments Adventure And Roleplay



convert mp4 to mp3



free Mp4 to mpeg converter



Renewable energy is energy from alternative ENERGY to mainstream change



convert .mp4 to .avi



Thursday, July 15, 2010

Procurement into the decision-making problems faced in China



Purchasing management may be the most did not fully leverage the commercial area, but it from executives to the position of decision-making the transition will go through a long process of natural fission.

Procurement into the decision-making problems faced in China

Wen / Liu Richard

Procurement management in the financial, strategic and operational aspects of a key role to play, yes company's short-and long-term performance of the main driving force, procurement management may be China's most fully leverage Wei Ling Yu role of the business.

In the area of finance, procurement and supply management can be a company to maximize the performance of the most effective way. Procurement of materials and services for a cost of 60% of the total cost structure of a typical manufacturing enterprise, if the profit margin is 10% of sales, procurement can bring savings of 5% profit growth of 30%; However, to achieve the same results will need to increase sales 30%.濡傛灉绠$悊灞傝冻澶熼噸瑙嗛噰璐妧鑳斤紝涓庝笂骞村悓鏈?%鐨勬垚鏈妭鐪佸苟涓嶆槸涓嶅垏瀹為檯鐨勭洰鏍囥? In fact, the difficulties faced by procurement and supply management company the best hope in achieving a major breakthrough performance, even in the selected range of products to reduce 30-40% of the cost.

In the strategy, procurement is to obtain the export market, as well as in the international market to achieve sales and profitability a key driver of sustainable growth.渚嬪锛屽涓?鍦ㄤ腑鍥芥湁鐢熶骇涓氬姟銆佹鍦ㄥ叏鐞冨競鍦哄姹傜珵浜夌殑鍒堕?鍜屽伐绋嬪叕鍙告潵璇达紝鍙戝睍涓?渚涘簲鑳藉姏寮虹殑涓浗褰撳湴渚涘簲鍟嗭紝鑰岃渚涘簲鍟嗙殑浜у搧鏃㈠湪鎴愭湰涓婂叿鏈夌珵浜夊姏锛屽張绗﹀悎瑗挎柟瀹㈡埛鐨勪弗鏍肩殑璐ㄩ噺鏍囧噯锛屾槸璇ュ叕鍙告垚鍔熺殑鍏抽敭鍥犵礌銆?br />
Finally, at the operational level, the procurement activities to achieve the perfect operation of the main attributed factor. Depend on the performance level of the supply base and supplier and buyer relationship, continuous innovation to provide customers with high quality products to achieve a high degree of delivery reliability, and control related budgets.

Bipolar model

The basis of sustainable development, procurement activities in the global competition plays an important role. Western world (USA, Europe) and Japanese companies have long realized the strategic importance of procurement management. However, they appeared in the issue of procurement polarization, resulting in two different procurement concept.

American / European model in this was identified as "market driven" model, its essence is dependent on the Shang in the global supply market competitiveness, many large industrial companies in the supply within the Shang Xuan Ze. Western buyers are skilled to carry out rigorous discipline based on the facts and tender, the company aims to select the most appropriate development and production requirements of the material suppliers. Very typical situation is, buyers often have regular procurement activities, challenges supply business situation, re-combination of traditional suppliers, hope the material He services procurement activities to achieve double-digit cost savings. Western buyers not hesitate to change the supply base, active use of the world economy is producing the structural advantages. The past five years, many large Western companies in China to open an international procurement center, why they want to re-supply base, using competitive cost structure with the perfect example. Of course, this can not be said price is the only selection criteria for Western companies, in fact, they are equal attention to all factors in procurement, and even more focus on quality, delivery reliability and product innovation. But it was also stated that if the cost / price have a significant breakthrough in the quality of services and products without any derogation of the case, the Western companies willing to take risks and be ready for new suppliers who bet. Buyer supplier relations with the West to maintain the appropriate distance, because they themselves do not identify this relationship is the medium-term or long-term.

Japanese companies use different purchasing patterns, known as the "relationship" model, the absolute focus on buyers and suppliers to establish long-term relationship between. According to this known as "Keiretsu" procurement methods, or sometimes in bilateral commercial reliance on a small part of the stock exchange based on the cross, the Japanese company has established a very close relationship between the supply base network. They are usually not tender, not by the adoption of new potential suppliers to challenge the practice of the existing suppliers. On the contrary, they are digging through existing suppliers to achieve the savings potential of the procurement cost. Their long-term suppliers and the manufacturing, engineering and quality departments with multi-functional team formed to continuously improve supply chain performance to achieve the purpose. In order to save costs and continuously improve product quality, these groups can be the basis for sustainable development re-engineering the procurement process.

We do not compare the merits of these two models, a number of companies are now two modes of absorption benefits of establishing a procurement organization. In some product development process and supply chain in close connection with the procurement project, the relationship between buyers and suppliers is an important factor in creating sustainable value, and more use of Japanese models and a number of suppliers with long-term partnership-type relationship. In other types of procurement activities, some of the same companies and suppliers using the practice to maintain a certain distance, when the supply market, the emergence of new attractive price point, they did not hesitate to change suppliers. In reality, success depends on the company purchasing the "static" approach of flexibility and adaptability, using various means, to apply to supply the market with different complexities and dynamics.

Puzzles tactical and strategic

In our view, the Chinese company is at the crossroads of these two concepts. One hand, they attach importance to the interaction between people, the implementation of the procurement Shique opportunism; on the other hand is the value of value of trust and relationships, which can only trust and relationship between the long-term buyer - supplier relationships established, and therefore they are ideal to include the procurement culture and in Western and Japanese models and values. But until now, China-based companies in the procurement of very small progress.

銆??鍦ㄦ煇绉嶇▼搴︿笂浠や汉濂囨?鐨勬槸锛屽ソ鍍忔湁鏃跺?涓浗鍏徃鍚稿彇浜嗕袱绉嶆ā寮忕殑鍔e娍銆?On the one hand, they are the same as the Japanese company has established the relationship between Keiretsu-type network, but do not use those established relationships with their suppliers not to work together to improve the performance of the whole supply chain, to their mutual benefit. On the other hand, often too much emphasis on business relations with suppliers have to bargain, and often regardless of quality, delivery reliability, innovation and sexual defects. The lack of world-class in China has established procurement capacity of the capital and effort is understandable, and easily explained by the following factors.

? The West / Japan and China in economic growth mode differences exist

Western power production and procurement capacity development is the product of slow growth of its economy. Early 70s of last century since the first oil crisis, Western countries have suffered low GNP (gross national product) growth of the bitter, and frequently face economic recession; Japan since the 90s of last century, has stood for 15 years at least zero growth economy, and even negative growth. In these very difficult economic conditions, only in all aspects of business operations to effectively increase productivity, be possible to achieve profits. For manufacturing companies, the procurement accounts for more than 50% of the cost structure, so by the company's senior management attention, in the past 20 years, procurement has been elevated to a professional level. In China, they found that the situation is completely different.

Decades of economic isolation from the outside world, China's industrial revolution began a strong, exponential growth in the domestic market and export market demand driven by China's industrial output value of the last 10 years achieved double-digit growth year after year. China's management did not feel the pressure to improve the value of procurement management is not surprising, because these growth is not achieved through the procurement management. Currently, most management is still to maintain a growth on the primary position, the company focus is on capacity building and product utility construction, procurement activities more remain at the tactical level, rather than strategic level. Interestingly, it is in the process of the pursuit of product availability, the management of major companies in China until recently to be attention to procurement management and the procurement activities to a strategic level. In the past few years, China's economy enjoyed exponential growth and the shortage of key supply markets in many sectors of the economy have become issues of concern, and prompted senior management to procurement management activities included in the company's top agenda.

? Lack of procurement of technology transfer channels

Chinese companies to the West and Japan are strong partners in learning, technology transfer over the past 15 years, the speed is unprecedented.閫氳繃璺ㄥ浗鍏徃鍦ㄤ腑鍥界殑鍚堣祫鍏徃锛屼腑鍥藉叕鍙稿湪鍒堕?銆佸伐绋嬨?钀ラ攢棰嗗煙瀛﹀埌浜嗗緢澶氱煡璇嗐? However, in China, the procurement is still a lack of skills, an area more. The best way to purchase technology transfer may be by Western companies to achieve the confidence of the Chinese market, and these Western companies in China's supply market, the Chinese method of managing the supply relationship is not particularly understand. They may first need to learn how to Chinese partners in the local business, rather than teaching a new procurement management.

? Prompted the company "release" difficulties in procurement activities

In the West, procurement through a very difficult time to get everyone's approval, was that with the marketing, finance, engineering and manufacturing and so on an equal footing, professional buyers gradually won the trust of the majority of managers. In the West, marketing manager, purchasing advertising, IT manager for the purchase of computer ... .... Not surprisingly, in China, the company uses a dedicated professional buyers release purchase management - including abandoned supplier selection and negotiation activities - is still considerable resistance. In addition, in Chinese history, procurement was a plant manager, general manager and control the area, they established a closer supplier relationships, and continued for many years. Require companies to these procurement responsibilities to the professional buyers and thus put the risk in the company, without regard to the relationship between the advantage has been established, which is China's managers are reluctant to have taken this step because professional procurement.

銆???绠$悊浜烘墠缂轰箯

Market pressure is small, inadequate technology transfer, and release associated with the procurement responsibilities of cultural communication difficulties, the result is so far neither the establishment of specialized procurement department, the management did not want to take the outstanding procurement activities as a professional gambling chips . In China, the general lack of procurement professionals create a vicious circle: the buyer is not enough skills to Zhenzheng distinguish the nature of the procurement and use it to Chongfen show's success procurement activities on the value, the results only based on their own understanding of the procurement management, does not deny the role of procurement activities, nor to strengthen procurement management activities.鍥犳锛屽湪瀹為檯鍟嗕笟杩愯涓紝涓撲笟鐨勯噰璐叕鍙告病鏈夎捣鍒颁竴涓钩绛夌殑鎴樼暐浼欎即搴旇璧峰埌鐨勪綔鐢ㄣ? This shows that companies are willing to begin to improve, the purchasing management there is still considerable room for improvement.







相关链接:



ps3 video Formats



Adobe at the end of acquiring, at a price well



Youtube To Laptops Ultra



Comment Audio Speech



avi to mp4 Converter



Desktop Directory



Bluesea CDA RM M3U to AMR Editing



Super DVD Creator



Adventure And Roleplay Wizard



Ever DVD-Audio AMR CD-R to ID3 Backup



Easy Compilers And Interpreters



Free mp4 to 3gp converter



Open DVD To Flash



The very moment of WiMAX



My DVD To WMA Converter



Monday, July 5, 2010

ApecSoft Audio Stripper

ApecSoft Audio Stripper is a powerful audio ripper for video. It can rip audio from almost all video formats, e.g. DivX, XviD, AVI, WMV, MPG, MPEG, ASF, MOV, VOB,FLV,SWF,3GP,3G2,MP4, SVCD, VCD to MP3,OGG,AMR,AAC,WAV formats. Also you can use ApecSoft Audio Stripper to convert your other format audio music to these formats herein. Only a few steps, You can get the high quality audio(music) promptly.
Main Features:
(1). Support to output popular audio formats including mp3, ogg, aac,amr,wav.

(2). Support more popular input video formats:avi,mov,vob(dvd),MPEG,MPG, wmv(wmv1,wmv2), asf, flv, swf and so on.

(3). You can use the recommended default settings or set parameters of the audio codec by your need.

(4). Support to convert popular audio formats(e.g. wma) to mp3, ogg, aac, amr, wav to play on mobile device..

(5). Support batch conversion.

(6). Simple GUI and very EASY to use.

(7). Lifetime FREE Technical Support and FREE upgrade . Free trial download 30 day money back guarantee




Recommand Link:



Health And Nutrition For You



X-Cloner MPEG to IPOD



Hot-time DVD Maker



GEOGRAPHY Education Shop



Youtube to 3G2 Professional



ImTOO DVD Ripper Platinum



Bluesea AVI to FLV



X-Cloner DVD to DivX



Download flv to mp4 converter



Rmvb To Avi



Bliss DVD-Audio WMA M4A To RM Creator



Explosion DVD to M4V



Good Games Board



Good-OK DVD to 3GP Zune iPod MP4 Ripper



Download DVD to ZEN Vision W soft



Ever MP3 CDA APE To VQF Copying