Monday, October 25, 2010

Tuesday, October 19, 2010

American professional experts: seven double the efficiency and salary tips


If asked, "Do you want to make their income doubled," I guess everyone's answer is "YES", if I continue to ask: "Do you believe your income will double now," I think some people may not sure, some people think that unlikely, I tell you, "the income of each of you will redouble", because, according to an annual price growth rate and normal rate of inflation in 20 years your income will redouble.

But if you want to advance in 5 years, 3 years or even a year to double your income, you must first make double your productivity, and revenue was likely to double dream come true.

How to make extra productivity it? United States, career planning and time management expert Brian Tracy, set 20 years of practical experience and research, found that enable you to double the productivity of 7 working tips:

1 to devote himself to work (work harder at what you do): When you work, must be engaged and not waste time, not to the workplace as a social occasion. The secret of light, long-term practice, if you can make double your productivity.

Second, fast-paced work (work faster): develop a sense of urgency, a focus on doing one thing, and the fastest speed to complete, then immediately proceed to the next piece of work. Cultivate the habit, you will be surprised to find that one day could be done by actually is so amazing.

Third, focus on high value-added work (work on higher-value activities): You have to remember the amount of working hours is not necessarily proportional with the results of the work. Smart boss or supervisor concerned about your job number and quality of work, working hours are not focused. So smart people, will try to identify the performance standards to achieve the objectives and activities to help, then most of the time and effort invested in these things above. The more time invested, the higher per-minute productivity, job performance also improved to win the boss and the boss of natural appreciation and reuse, pay and promotion in sight.

4, skilled work (do things you are better at): You find the most valuable work items, then find a way, through continuous learning, application, practice, proficiency and skill of all work processes, the cumulative work experience (a word to solve the problems KNOW HOW). The more skilled your work, the time required for the more short; your skills the more skilled, productive forces would enhance the survivors quickly.

Fifth, focus on (bunch your tasks): the work of a skilled person, many will work or activities of similar nature, for example, send and receive E-MAIL, write, fill out a statement of work, completing the memorandum so as to focus on the same a time to deal with, such a separation than a treatment at different times, saving more than half the time, but also can improve the efficiency and effectiveness.

6, simplify (simplify your work): the workflow as simple as possible, the work of many separate steps to integrate into a single task, in order to reduce the complexity of the work, while using the license or outsource to avoid the time spent In the low-value work.

7, longer working hours than others (work longer hours): get up early, go to work early to avoid rush hour; noon meal out little later, continue to work to avoid the crowds queuing meal; night stay a little bit later until the rush hour has passed, then came home. So one day more than the average person 2-3 hours of working time, and will not affect the normal pace of life. Advantage of these extra time, can double your productivity, thus doubling your income. A successful person, usually an action camp, once understood to enhance productivity, will these 7 small tips, memorization in mind, constantly applied, practice, until a working and living habits so far. As long as a habit, your productivity will increase, income will double.






Recommended links:



Dealers sustained Growth Quartet



cover your laptop lid with art notebook skins



DAT to MP4



My favorite Games Kids



You do the Boot screen will move you



"Vulnerable" IPHONE problems encountered in China



MOD converter



Automation Tools Directory



Should give priority to social identity verification



BI 2.0, completely changed the way the work of five REVOLUTIONS



Dealers should not be fishing in 10



WHO is "Green Dam" in pay?



Button icon button icons came here to get ready



MOD to MPG



Sunday, October 10, 2010

jsp, servlet talk about Chinese issues



In the jsp, the Chinese people to be terribly upset often garbled.

Common measures for Chinese processing, can often be seen in the main line is the following 2:

Or:

Virtual Small Dragon Pavilion is also mainly the above two kinds of methods were modified to become a 1.1 version.

A simple summary of the sample occurred in the Chinese and the following places:

1 with the Chinese in the url parameter can be directly read.

For example:

2 sql database relevant to the operation

Here the use of Access without problems.

3 to read HTML form submitted in the form of Chinese values

Need to be encoded in jswdk the more concise wording such as:

String name1 = new String (request.getParameter ("user_id"). GetBytes ("ISO8859_1"));

In addition, jdk1.3 support, do not join

In jdk1.2.2 below, even if the two kinds of methods used at the same time is also very unstable.

In the resin platform, the situation is better. As long as the first line of the page by adding:

Can correctly handle the Chinese.

If we add the code then it does not.

5 session included the Chinese

In jswdk, the strange thing is, if read from the form of encoded values can be displayed correctly;

However, given directly to Chinese values are not.

resin platform well, ibid.

6 for values of the variables assigned after the Chinese displayed correctly in Chinese.

For example, the following procedures:

Also jswdk1.0.1, above representation is not the problem in jdk1.2.2, but it can not be displayed under jdk1.3.

resin platform well, ibid, tested only in make up

Without the need to also be able to display Chinese correctly.

Experience:

jswdk may only be used for general development, stability and other issues may not be as commercial software.

As the jdk1.3 version many times better than those jdk1.2.2, and also better support for Chinese, so it should be used.

As a free commercial software, resin is not only fast, stable, and automatically compile, mistakes can be pointed out that the line can support the use of server-side javascript, etc., but at least I think that the support of the Chinese language well.

Of course, if you can not do anything with the right will show the Chinese what we expected.

Also, I believe in the unix / linux / solaris should under no such problem.







Recommended links:



Articles about Web Servers



MMOG / LE assessment of the road Troika



Feeling so steady and VB API (1)



msvcp71 dll is MISSING beware of these errors



Yuan Meng: Ubuntu 9.10 new version of the debut



Call the API function in VB dynamic change and RECOVER the screen settings



Comment Recreation



Best Graphic Editors



RMVB to MP4



Lay the foundation for the bug prevention [2]



Motorola will split into two independent companies



Shop Development



MKV To MP4



3G2 To MOV



Alibaba Ma: Even If I Have To Finally Kneeling Down



Professional confused on how To spend?



Monday, September 27, 2010

AutoCAD watch a good helper


Graphics are aware of, AutoCAD no special tabulation command or tool, to draw the forms are generally the most primitive way, that is, with lines and text tools to create forms.

If the other software (such as Excel) form produced by replication to AutoCAD, the effect is not good enough.

I recently found a name "statements turn painted the king," the tool software that can magically to Excel 2000/2002 in the form automatically transferred to the AutoCAD drawing graphics, tables, lines, text into AutoCAD entities are free to edit. No need to install the software, directly extract generated CADtools.exe can run the first time after running a computer should be restarted to work properly.

The first step, start Excel 2000/2002, AutoCAD and "statements turn painted the king" software.

The second step, in Excel, the usual method of drawing tables, set up tables for the table line, the line will form a high column width set reasonable, after drawing a good selection of paint to form part of the transfer.

The third step, the system tray Click the "Report transferred painted King" icon to bring up the main interface. In the "System Settings" in general choose the "proportional" mode, in the "Font Settings" in the "fill factor" and "text aspect ratio of" two, "aspect ratio of the text" well understood, AutoCAD text aspect ratio in 0.7 General access is appropriate, "fill factor" is actually a percentage of that text in AutoCAD in the degree of filling to fill the cell.

The fourth step, after doing the above settings, press the "tab" button, and then switch to AutoCAD in, AutoCAD will be prompted to select the tab area, follow the prompts to click the top left corner and then click the lower right corner, and soon automatically in AutoCAD generated form.

Tip: If you switch to painting generated text table cell is too large or too small, it is because the third step in the "fill factor" setting inappropriate reasons, can reset the "fill factor" and then switch to painting, and more test can generate two forms of the beautiful.






Recommended links:



Distributed PowerBuilder works



View the index using sql server 2000 performance



Gateway Bank Of China Has Become The Odds



M2TS to MOV



MAKE SOUNDS (voice)



Easy Compilers And Interpreters



ASE15 trained for several years with great concentration "six pulse Sword"



University Home Page Frequently Black Student Groups As "lambs To The Slaughter"



Across Threads In C # Winform Control Access



Baidu in the mad hope and HARDSHIP



Top Telnet Servers



BAIDU cheating, universally condemned?



ASF To MPEG



MKV to DivX



Compare Audio Players



Tuesday, September 14, 2010

With SCSI driver for the Win98 Qiao


Author: Li Zhaoyong

Unit bought a 1220 dawn of the computer used to store important data. When bought, according to the requirements of our Win98 and Win2000 installed dual operating system, use the following six months, due to the reason the software had to reinstall the system. First, of course, is to install Win98, but when the installer using the Scandisk command scans the hard disk will appear when the "illegal media error" message, I called the dawn of the server service centers, to note that I have met, they said yes the server had never been installed Win98, Win98 support may be bad or corrupted hard drives, and specific information, please solve the local agents. I think one thing is certain, the machine can certainly install Win98, I used the time it did not have any problem, but the system is not installed my own, I do not know how to install on, or their first think of a way.

Is not the original operating system has problems? Was guided in the Win98 boot disk to enter DOS, use Fdisk to repartition your drive, when assigned to the last partition on the hard drive check how both pass, the final crash. Magic does not use the partition line. Is it because it damaged the hard disk? As the hard disk is to use the SCSI interface, the server system itself with a low-level formatting program, then the hard drive for low grid, low grid through, and no bad sectors show that the hard disk no problem. So then partition, format, but the problem remains. Is Win98's boot disk does not support SCSI drives? So I started using the Win2000 installation disk system partition, format, install Win2000 are passed, the original is the case! I brought the drive to the server to find out plates, including a "Ultra160 Family Mannager Set Versionl.10", which seems to have For Win95/98/NT4.0/DOS driver, then hurried inside to open the documentation above all in English, had the unpleasant task of reading. Really the case, use the DOS boot can not load the SCSI driver, and therefore can not correctly identify the SCSI hard drive. Can directly use the server with the drive? Tried it really worked. Concrete solutions to the following:

1. To prepare a Win98 boot disk, if you need to use the CDROM to install the software on CD-ROM with the necessary drivers.

2. Copies of the server drive floppy disk DOS directory ASPI8U2.SYS and ASPICD.SYS to the Win98 boot disk (this step the key).

3. To re-start the system and making use of step 2 boot disk boot, and then during partition, formatted the system need to start again. All OK.

4. When the Startup menu, select Install from the CD-ROM Win98.

5. When you see "Add New Hardware Wizard" and "PCI SCSI Bus Controller", click "Next."

6. Select "Search for best driver", click "Next", choose to install from a floppy disk, insert the floppy disk in the floppy disk drive SCSI, prompted installed.






Recommended links:



realplayer ps3



Easy Kids EDUCATION



Convert Mov To Avi Online



Competitive Strategy: Legal spying



PC redemption



Dell Go From Here



CNNIC: Domain transfer fee DOES not exist



SAP sales Drop turmoil spread to China, CEO to resign



INTRODUCTION to Fibre Channel based: FCIP and iSCSI comparison



News about Audio Recorders



2006: Five suspense Notebook



Google Video Format



PRINT function



PS3 3gp



Wednesday, August 4, 2010

Magical Maxthon "fight with" quick recovery Browse memories



The browser software, the people wonderful addition to using its access to the page, understand the contents of information, often want to see in the future to browse records and Favorites feature to page through the collection and re-call, etc. in the future. However, some security tools, and optimization software, often the default browser history delete the contents in the Organize Favorites, also prone to delete important visit to address the situation. This will cause incalculable damage, if in the past, can only regret. But for now, just use Maxthon browser - This most popular browser software users, these problems will not happen again. And Yeh because, like Maxthon browser has "fight with."

1, easily retrieve back the history collection

Many users know that Maxthon Browser Favorites feature that comes with, compared to 360, Firefox and other browsers more powerful, not only can manage their collections easily classified, but also use Maxthon account to log in the case of , the collection easily synchronize the contents into the network, user call in other locations. But for some time, there may be users favorites Content "accidentally deleted", or in the import content of the new collection will accidentally overwrite the original data, resulting in the wonderful collection of pages previously could not get back. To make people feel very sorry, but in the Maxthon browser, the actual caring for the user to create a "restore Collection" features to help users to easily restore the content collection to the state over the past one day as through time and space, back to the past .

Maxthon browser's "Favorites restore" function and Windows system similar to System Restore, by default, a daily backup for the user to create a collection point on collection content automatically for the user to back up. But If you want to revert to a previous time period, method is very simple, first of all can click on Maxthon browser's "Favorites menu", switch to "more action." In the sub-menu, select "restore Collection", you can enter the Maxthon browser favorites restoration interface.

Figure 1 Click the Favorites menu in the "More actions" to enter to "restore Favorites" interface



At this point the user to resume collection option, see the previous Maxthon browser automatically created for the user the contents of the backup point favorites, arranged according to time, but if the user opened a network of collection, you can click the bottom "from the line backup and recovery collection "connection, open the Maxthon browser's online collection of recovery page (see Figure 2).

Figure 2 Maxthon browser interface to restore the contents of the local collection

Restore the backup the contents of the local collection



At the same time, users open the Maxthon browser's online collection of recovery page, only to return to the date, click on "Restore" button, you can easily restore the contents of the favorites to date state, as the movie "Westward Journey" in fight with the same, so you free "shuttle" in time and space.

Figure 3 choice in the online resume collection dates may need to restore retrieve mistakenly deleted the contents of the collections



Second, instant web site yesterday reproduction through time and space

There are also a number of pages users visit, may not remember to add it to favorites, leading to the future forget those who have visited the contents. A few days later, back again, can not remember what, but not remember what, but, through the Maxthon browser, it need not worry about forgetting to have visited the site information.

Recovery method is very simple, the first user account to log on Maxthon and Maxthon Browser "View" menu, select "History" option (or directly using the shortcut keys Ctrl + H) (Figure 4), then the default The first line shows the browsing history search function, can order by date and time, to easily view the contents of recently visited Web site.

Figure 4 through the "View" menu in the "History" search function



Can easily see the web site has been visited

Third, clear history, protect your privacy

Some users will feel doubt, Anquan Xing how like? 鑳?can not delete these historical Ji Lu, not allowing people to see to what they themselves Guo, subscribe through any other, the answer is yes, not only Huifugongneng Jiang Da, empty it does is practical. If you want to delete all the history and search history, users simply use the "Tools" menu in the "Clear History" option, you can turn the pop-up window, select the contents of the situation and the implementation of the deletion.

Figure 5 through the "Tools" menu of "Clear History" function to delete browser record



And to keep clear favorites of the contents of the one device can be managed through bookmarking, batch Xuanze bulk deletion, and secondly can also import new content, the choose to automatically empty the Favorites folder in the Web content. Also very convenient, very useful.

Effect is very simple, the effect is different, use Maxthon browser "fight with" the same back to the past, as seen yesterday, both favorites of the web site content, or historical records, subscription records, search records omnipotent, had forgotten the contents of the collection? and visited content? it quickly using the Maxthon browser, these "time machine" feature it, believe they will be able to give you a surprise!







相关链接:



mkv video FORMAT



iphone VIDEO format



AVI to mpeg



JSP page translation of the Principle of



Enhance the concept of active intrusion prevention IPS is not speculation



HP is a hero who continues to Recover?



Ape files



Evaluate Telephony



Share of Non-reap



Easy CONVERTERS And Optimizers



Focus Media Second Quarter Net Profit Of 37.7 Million U.S. Dollars



Best System MAINTENANCE



Alibaba Denies Rumors Of Financial Strand Breaks From Baidu



Fans paradise - watch the game with three arms PPMate



Premier Dial Up And Connection Tools



Kaspersky: vigilance good at disguising the "beauty" release device Trojan



Monday, July 12, 2010

C + + programmers to easily commit the error of 10 C #


We know, C # and C + + syntax is very similar, from a C + + to C # transformation, the difficulty is not the language itself, but rather familiar. NET-managed environment and on. NET framework for understanding.

Although C # and C + + in grammatical change is very small, almost not have any impact, but some changes are enough to make some careless moment of C + + programmers in mind. In this article we will discuss the C + + programmers the ten most likely to commit errors.

Trap 1: there is no clear end of the method

Almost completely sure that, for most in terms of C + + programmers, C # and C + + the biggest difference is that debris collection. This also means that programmers no longer need to worry about memory leaks and make sure to remove all the useless pointer. But we can no longer accurately control the process kill useless objects. In fact, in C #, there is no clear destructor.

If the use of non-management resources, without the use of these resources, you must explicitly release it. Recessive control of resources by Finalize method (also known as the finalizer) provided, when the object is destroyed, it will be called to recover debris collection program resources occupied by the object.

finalizer should only release the destruction of the object occupied Non-management resources, and other objects should not be involved. If the program is only used to manage resources, it need not be the implementation of Finalize method, only the non-manageability of resources will be used in the treatment of Finalize method. As the need to take up certain resources finalizer, it should only need it to perform the method finalizer.

Directly call an object's Finalize method is not permitted (except in sub-class called base class Finalize Finalize.), Debris collection program will automatically call Finalize.

From the syntax point of view, C # in the destructor and C + + is very similar, but in fact they are completely different. C # the destructor definition of Finalize method is a shortcut. Therefore, the following Erduan code is different:

~ MyClass ()
(
/ / Need to complete the task
)

MyClass.Finalize ()
(
/ / Need to complete the task
base.Finalize ();
)

Error 2: Finalize and Dispose to use whom?

From the above discussion, we have been very clear, explicit to call the finalizer is not allowed, it can only be called debris collection program. If you want to free up some no longer in use as soon as possible a limited number of non-managed resources (such as file handles), you should use the IDisposable interface, the interface has a Dispose method, which can help you accomplish this task. Dispose is no need to wait for Finalize to be called and be able to release the non-manageability of resources.

If you have used the Dispose method, you should stop the debris collection process and then the corresponding object method implementation of Finalize. To do this, you need to call the static method GC.SuppressFinalize, and the corresponding object pointer passed to it as a parameter, Finalize method can call the Dispose methods. Accordingly, we can get the following code:

public void Dispose ()
(
/ / Complete clean-up operation

/ / Notify the GC not to call Finalize method
GC.SuppressFinalize (this);
)

public override void Finalize ()
(
Dispose ();
base.Finalize ();
)

For some objects, may call the Close method is more suitable (for example, the document object calls Close on more appropriate than Dispose), you can create a private property of the Dispose method and the Close method of public property, and to call Dispose to realize Close call the Close method of some object.

Given the uncertainty will call Dispose, but the implementation is uncertain finalizer (we can not control when the GC will run), C # provides a Using statement to ensure the Dispose method will be called the earliest possible time. General approach is to define which objects to use, then use brackets for these objects to specify a range of activities, in the event when the innermost parentheses, Dispose method will be automatically invoked, the object for processing.

using System.Drawing;
class Tester
(
public static void Main ()
(
using (Font theFont = new Font ("Arial", 10.0f))
(
/ / Use theFont object

) / / Compiler will call Dispose object processing theFont

Font anotherFont = new Font ("Courier", 12.0f);

using (anotherFont)
(
/ / Use anotherFont object

) / / Compiler will call Dispose object processing anotherFont

)

)

In this case, the first part, Font object is created in the Using statement. When the Using statement at the end, the system will call Dispose, on the Font object for processing. In this case, the second part, Font object is created in the Using statement outside, in the decision to use it, then place it inside the Using statement, when the Using statement at the end, the system will call Dispose.

Using statement can also prevent other accidents from occurring, ensure that the system will call Dispose.

Error 3: C # in the value-type variables and reference-type variables are different

As with C + +, C # is a strongly typed programming language. C #, data types are divided into two categories: C # language itself, the inherent data types and user-defined data types, which is also similar with C + +.

In addition, C # language Hai Ba variables are divided into value types and reference types. Unless it is to be included in a reference type, value type variables retained in the stack, this point and C + +, variables are very similar. Reference type variable is a stack, its value is the address of the object heap, and C + +, the pointer is very similar. Value type variable value is directly passed to the method of reference-type variables are passed as parameters to the method, passing the index.

Classes and interfaces can create reference type variable, but need to point out that structure data type is a built-in C # data types, it is also a value-based data types.

Error 4: Note that implicit data type conversion

Boxing and unboxing enable value data type is used as the index data type using the two processes. Value-type variables can be packaged into an object, and then the return value is unpacked variables. Including built-in data types, including C #, the data of all types can be implicitly converted to an object. Packing a value type variable will generate an object instance, and then copied to the instance variable.

Boxing is implicit, if necessary where the index data type data type using a value type variable, the value of hidden variable will be transformed into the index data type of variable. Boxing will affect the performance of code execution, so should be avoided, especially when the data volume.

If you want to convert a packed object back to the original value type variable, it must be explicit to be unpacked. Unpacking need two steps: First, the object instance checks to ensure they are shaped by the values of variables are packaged into the; second step in the value of the instance to copy the value type variable. In order to ensure a successful solution package was unpacked the object must be packing a value type variable by the value of the index generated objects.

using System;
public class UnboxingTest
(
public static void Main ()
(
int i = 123;

/ / Package
object o = i;

/ / Solution Package (must be the dominant)
int j = (int) o;
Console.WriteLine ("j: (0)", j);
)
)

If the object is unpacked is not valid, or a different data type object index will result InvalidCastException different things.

Error 5: Structure and objects are different

C + + structures and classes in the almost, the only difference is that by default, the structure of access is public, its inheritance rights is public. Some C + + programmers to structure as a data object, but this is not a convention must be the case.

In C #, the structure is only a user-defined data types, and can not be substituted. Although the structure of the support properties, methods, fields and operators, but does not support inheritance and destructor.

More importantly, the class is an indexed data type, the structure is a value type data type. Therefore, the structure of the index operation in the expression of the target area without more useful. Array of operational structure more efficient, and in the operational aspects of the collection is less efficient. Set to index, structure must be packaged is suitable for use in the operation of the collection, a collection of classes in the large-scale operations more efficient.

Error 6: Virtual methods must be explicitly covered

In the C # language, the programmer of a virtual method in the coverage must be the dominant use of the override key word. Suppose a Window class is written by the A company, ListBox and RadioButton classes by B's and programmers in the company prepared to buy the A Window on the basis of class, prepared, B Company of the programmers of the Window class, including changes in the future little is known about the situation, including the design.

If the B's, a programmer to add a ListBox Sort method:

public class ListBox: Window
(
public virtual void Sort () (")
)

A company release a new version in the Window class before, this will not have any problems. A company if the Window class programmers also added a Sort method.

public class Window
(
/ / "
public virtual void Sort () (")
)

In C + +,, Windows class will be the ListBox Sort method Sort method of the class based approach, in the hope of calling Windows class Sort method, ListBox class Sort method will be invoked. In C #, virtual function is always considered to be the root of virtual dispatch. In other words, once C # finds a virtual method, you will not find in the virtual chain other virtual methods. If the ListBox is compiled again, the compiler will generate a warning message:

"Class1.cs (54,24): warning CS0114:''ListBox.Sort ()''hides
inherited member''Window.Sort ()''.

For the current members of the original method of coverage, you need to add the override key word, or add new key word.

To remove the warning message, the programmer must find out what he wants. ListBox class can be added before the Sort method new, that it should not override the virtual method in Window:

public class ListBox: Window
(
public new virtual void Sort () (")

This could clear the warning. If the programmer really want to overwrite methods in the Window, you must use the override key word to demonstrate its intentions explicit.

Error 7: class member variable initialization

C #, C + + initialization and different. Suppose there is a character with a private member variable age of the Person class, Employee class is generated by a succession of Person, and it has a private member variable nature of salaryLevel. In C + +, we can initialize the Employee's constructor initializes some salaryLevel, as shown in the following code:

Employee:: Employee (int theAge, int theSalaryLevel):
Person (theAge) / / initialize base class
salaryLevel (theSalaryLevel) / / initialize member variable
(
/ / Constructor code
)

This method in C #, is illegal. While still can initialize base class, but as the code above as initializes the member variable will cause a compiler error. In C #, we can define a member variable to initialize it when the same:

Class Employee: public Person
(
/ / Member variable definition
private salaryLevel = 3; / / initialization
)

Note: You must explicitly define each variable access.

Error 8: Boolean variables and integer variables are different from children

if (someFuncWhichReturnsAValue ())

In C #, Boolean variables and integer variables are not the same, so the following code is incorrect:

if (someFuncWhichReturnsAValue ())

if someFuncWhichReturnsAValue return to zero, said false, or that the idea is no longer true. The advantage is that the original assignment operator there will be confused with the same error will not happen again. So the following code:

if (x = 5)

At compile time error occurs because the x = 5 is the 5 assigned to the X, rather than a Boolean value.

Error 9: switch statements would be less than the implementation of some statement

In C #, if a switch statement to implement a number of operations, the program may not perform to the next statement. Thus, while the following code in C + + is legal, but in C #, not legal:

switch (i)
(
case 4:
CallFuncOne ();
case 5: / / error, will not be executed here
CallSomeFunc ();
)

To achieve the above purpose of the code needed to use a goto statement:

switch (i)
(
case 4:
CallFuncOne ();
goto case 5;
case 5:
CallSomeFunc ();
)

If the case statement does not execute any code, all the statements will be executed. Such as the following code:

switch (i)
(
case 4: / / can perform to
case 5: / / can perform to
case 6:
CallSomeFunc ();
)

Error 10: C # in the clear assignment of variables required

In C #, all the variables must be assigned before use. Therefore, you can define variables not initialize it, if it is passed to a method before, must be assigned.

If the only way through the index to pass a variable, and the variable is the method of output variables, this is it will cause problems. For example, suppose there is a method that returns the current time, hour, minute, second, if the write code like this:

int theHour;
int theMinute;
int theSecond;
timeObject.GetTime (ref theHour, ref theMinute, ref theSecond)

If you use theHour, theMinute and theSecond not before the three variables are initialized, it will generate a compiler error:

Use of unassigned local variable''theHour''
Use of unassigned local variable''theMinute''
Use of unassigned local variable''theSecond''

We can initialize these variables to 0 or other methods did not affect the value of the return value to solve this small problem the compiler:

int theHour = 0;
int theMinute = 0;
int theSecond = 0;
timeObject.GetTime (ref theHour, ref theMinute, ref theSecond)

This little too cumbersome, these variables are passed to the GetTime method, then change it. To solve this problem, C # specifically for this situation out parameter modifier provided, it can make an argument without initialization can be cited. For example, GetTime parameters in its own makes no sense, they are just to express the output of the method. Before the method returns, Out parameters must be assigned a value. Here is the revised GetTime methods:

public void GetTime (out int h, out int m, out int s)
(
h = Hour;
m = Minute;
s = Second;
)

Here is a new method called GetTime method:

timeObject.GetTime (out theHour, out theMinute, out theSecond);






Recommand Link:



Cucusoft DVD To PSP Converter Build 007



.ts files



ts file format



Digital CDA ID3 OGG to Sound Converter



Easy to use Server Applications



Bluesea DVD MP4 Copier



Windows 7 rmvb



Convert Flv To Mp3



Bluesea MPG M4V Convert



CollSoft iPod Video Converter



Youtube Movie to DAT Pack



LasVegas YouTube to iPhone



New Hobby



LasVegas YouTube to iPhone



Review Chat And Instant Messaging



Softstunt Zune Converter



Tuesday, April 13, 2010

WorldCup PS3 Converter


WorldCup PS3 Converter converts AVI, DivX/Xvid, WMV, MPEG videos to PS3 WMV or MP4 video format in one simple click. It is a powerful PS3 MPEG4 video converter/PS3 burner with fast working speed in burning movie to PS3 and downloading movie to PS3. Now you can get this PS3 MPEG4 video converter at a very competitive price! Its key features include: The software features superb video audio quality and fast conversion speed. And it is very easy to use.

WorldCup PS3 Video Converter is a best video and movie converter to PS3! This product offers convert movie to Sony PS3, Easy Convert AVI, MPEG, WMV, MOV, MP4, RM, RMVB, DivX, ASF, VOB, 3GP and etc. WorldCup PS3 Converter helps you watch your music videos and movies on your PS3.