Package test;
/*Calculate the value of a mathematical expression*/Public class Cal {Public int CAL (string Str ){Int result = 0;Int value1, value2;STR = Str. Trim ();STR = Str. replaceall ("","");While (true ){Int index1 = Str. indexof ("*");Int index2 = Str. indexof ("/");If (index1 =-1 index2 =-1)Break;Int Index = 0;If (index1> index2 index2! =-1 ){Index = index2;}If (index2 =-1 ){Index = index1;}If (index1 =-1 ){Index = index2;}If (index2> index1
1. There is a forum where the post data is huge. Please briefly describe how to improve the efficiency of searching for posts.In terms of programs, the page cache technology can be used. On the front-end interface, users can also enter more keywords, such as the title of the post, the id of the poster, and the time, which greatly improves the search efficiency.You can cache the template and local cache.2. After a
Questions for online companies, mainly including php and javascript 1. there is a forum where the post data is huge. please briefly describe how to improve the efficiency of searching for posts.
In terms of programs, the page cache technology can be used. On the front-end interface, users can also enter more keywords, such as the title of the post, the id of the poster, and the time, which greatly improves the search efficiency.
You can cache the temp
Design Patterns129 what design patterns are used in development? In what scenarios?A: each mode describes a problem that is constantly emerging in our environment, and then describes the core solution of the problem. In this way, you can use existing solutions countless times without repeating the same work. The MVC design mode is mainly used. Used to develop JSP/Servlet or J2EE applications. Simple factory
#include
Q: Can you write a program to modify its name when it runs? (Can you write a program that changes its own name when run ?)
#include
int i = 0; //…… for(;i
for ( i = 0 ; i
char buff[100]; memset(buff,0,sizeof(buff)); strncpy(buff, argv[0], sizeof(buff)); memset(argv[0],0,strlen(buff)); strncpy(argv[0], "NewName", 7);
Memset (buff, 0, sizeof (buff )
Ask the great God to answer the question of a database statement
SELECT ' id ', ' time ', ' title 'From ' Think_infor 'WHERE ' type ' like ' $k-% 'UNION AllSELECT ' id ', ' time ', ' title 'From ' Think_infor2 'WHERE ' type ' like ' $k-% 'ORDER by ' time ' DESCLIMIT 0,6
Use this statement to query the latest 6 information for Table 1 and table 2. But how do you tell which table the record is returned from?
Or what other methods can be implemented
, your answer is not only to explain your strengths and weaknesses to the interviewer, but also to show your values and opinions on your own values in general.
From the perspective of strengths, I can't find any outstanding aspects. I think my skills are very extensive. As for weaknesses, I think I may get bored if a project is delayed for too long.
The biggest answer to this kind of comment is that a
33 common php questions and answers, 33 php questions and answers. 33 common php questions and answers, 33 php questions and answers 1. in PHP, the name of the current script (excluding the path and query string) is recorded in the predefined variable (1), and links to 33 common php interview questions and
PHP interview questions and answers, php questions and answers. PHP interview questions and answers, php questions and answers 1. write a function to convert the string open_door to OpenDoor and make_by_id to MakeById. Functionstr _ PHP interview questions and
PHP face questions and answers, PHP questions and Answers
1. Write a function to perform the following functions:The string "Open_door" is converted to "Opendoor", "make_by_id" to "Makebyid".function Str_change ($STR) {$str = Str_replace ("_", "", $str);$str = Ucwords ($STR);$str = Str_replace ("", "" ", $str);return $str; }
2. Required to write
C ++ programming thoughts (version 2) Chapter 1 C (notes, exercises, and answers) in C ++ (I) and answers to java programming thoughts
I. Summarize the content of this chapter:
1. if the declared pointer is void *, it means that any type of address can indirectly reference the pointer (and if int * is declared, it can only indirectly reference the pointer to the address of the int type variable ). Once we i
101 questions and answers for RHCE (7) and 101 questions and answers for rhce
To make it easier for people who plan to perform RedHat certification and O M work to learn more systematically, I have selected 101 RHCE questions and answers from the Internet. Considering that the daily learning volume is large, therefore, we extract 10 questions every day for p
, the following about the IOC description error in the spring feature is ()A,ioc means that the relationship between programs is manipulated directly by the program code.B, the so-called "control reversal" refers to the transfer of control from the application code to the external container, that is, the control rightC,IOC the responsibility of controlling the creation into the framework, separating from the application codeD, when using the spring IO
Android Interview Questions and answers (2), android Questions and answers1. Activity-related. Launchmode, OnSaveInstnceState, and lifecycle.
Four default launchmodes and OnNewIntent callbacks.
OnNewIntent-> OnRestart-> OnStart-> onResume
OnActivity-> OnResume.
OnNewIntent, OnActivityResult?
OnNewIntent launchmode with singletask or singleInstance.
But if set these two mode. OnActivityResult will be called after startActivityforResult directly.
So nor
FAQ 4 (with answers) and PHP with answers
1. echo count ("abcd"); how much is output?
Answer: 4
2. After running the following code $ a $ B $ c is?
Answer: false, 0, 0
4. Use the heredoc syntax format of php to output: hello world!
5. $ string = "abcdefg", what is the value of $ string {4?
Answer: e
6. Briefly describe the differences between echo (), print
Juju technology-php development pen questions and answers, php Questions and answers
Juju technology is a newly founded company with very small and few people. The boss feels like a typical Beijing hacker. It is very arrogant and has a personality. The exam is simple:
1. Wha
The most comprehensive front-end questions (including answers) and answers in history
HTML + CSS1. Understanding and understanding of WEB standards and W3CTag closure, lower-case tags, non-chaotic nesting, increased search robot search probability, use of external link css and js scripts, separation of structure behavior, faster file download and page speed, more content users can access more devices, and h
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.