CN105446788B - A kind of information processing method and electronic equipment - Google Patents

A kind of information processing method and electronic equipment Download PDF

Info

Publication number
CN105446788B
CN105446788B CN201410412358.5A CN201410412358A CN105446788B CN 105446788 B CN105446788 B CN 105446788B CN 201410412358 A CN201410412358 A CN 201410412358A CN 105446788 B CN105446788 B CN 105446788B
Authority
CN
China
Prior art keywords
program
function
electronic equipment
unit
memory
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201410412358.5A
Other languages
Chinese (zh)
Other versions
CN105446788A (en
Inventor
刘昊
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN201410412358.5A priority Critical patent/CN105446788B/en
Publication of CN105446788A publication Critical patent/CN105446788A/en
Application granted granted Critical
Publication of CN105446788B publication Critical patent/CN105446788B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention discloses a kind of information processing methods, applied to an electronic equipment, the electronic equipment includes Integrated Development module, display unit, network interface and memory, wherein the Integrated Development module includes programming unit and program compilation unit, the method specifically includes: when described program writes unit operation, a programming interface is shown on the display unit, wherein described program, which is write on interface, a program input area;In described program input area, inputs first called in function list stored in the memory and call function name;Described program writes unit will call the program of function name to save in the memory, so that described program compilation unit is compiled comprising described first.By the above method provided by the present application, solves more in the presence of the cost time during writing program in the prior art, the low technical problem of programming efficiency.

Description

A kind of information processing method and electronic equipment
Technical field
The present invention relates to the programmings and running technology in computer field, in particular to one kind is in information processing method And electronic equipment.
Background technique
With the continuous development of science and technology, various intelligent terminals and course of industrialization require to carry out by program automatic Change control, this just proposes requirements at the higher level to the efficiency of the convenience and programming of writing program.
In the prior art, when writing program, it is often necessary to some functions are called, and these functions are in local function library It is unexistent, it is therefore desirable to third-party library function is downloaded from other electronic equipments.And the way of the prior art is to program Before, the function called required for determining, and the function library including the function of needs from network side equipment or server It downloads, is stored in the memory of local device, and go to find from the function library downloaded in programming and need function And be put into the project file for writing program, for being called when compiling.
In realizing the embodiment of the present application during technical solution, the discovery prior art at least exists present inventor Following technical problem:
Due to requiring to download function library from other electronic equipments before writing program every time in the prior art, usually come It says, downloads these function libraries and require to spend the more time, so, there is flower during writing program in the prior art It is time-consuming more, the low technical problem of programming efficiency.
Due to requiring to download function library from other electronic equipments before writing program every time in the prior art, usually come It says, it includes many functions that these function libraries are all very big, this just needs electronic equipment that many memory spaces is needed to carry out storage function Library, so, the technical solution in the prior art that function library is downloaded from other electronic equipments exists and occupies electronic equipment storage The big technical problem in space.
It is not each function is that the program write needs due to including many functions in function library, and in practice It to be called, so, the technical solution in the prior art that function library is downloaded from other electronic equipments, in existence function library The not high technical problem of function utilization rate.
Summary of the invention
The embodiment of the present application provides a kind of information processing method and electronic equipment, for solving electronic equipment in the prior art The low technical problem of programming efficiency, to reach the technical effect for the programming efficiency for improving electronic equipment.
On the one hand, the embodiment of the present application provides a kind of information processing method, is applied to an electronic equipment, the electronic equipment Including Integrated Development module, display unit, network interface and memory, wherein the Integrated Development module includes programming list Member and program compilation unit, the method specifically include:
When described program writes unit operation, a programming interface is shown on the display unit, wherein the journey Sequence, which is write on interface, a program input area;
In described program input area, inputs first called in function list stored in the memory and call function Title;
Described program write unit by comprising it is described first call function name program save in the memory, with It is compiled for described program compilation unit.
Optionally, described in described program input area, it inputs in the calling function list stored in the memory First calls function name, specifically includes:
Detection obtains input in described program input area one for calling described in storage in the memory Call the triggering character of function list;
Based on the triggering character, the calling function list is read from the memory and is shown in the display list In member;
Detection is obtained for selecting the described first selection operation for calling function name from the calling function list;
The selection operation is responded, selects described first to call function name and input the first calling function name and arrives In described program input area after the triggering character.
Optionally, the response selection operation selects the first calling function name and inputs first tune With in the described program input area after function name to the triggering character, specifically include:
The selection operation is responded, the first calling function name is controlled and is in selected state;
Generate format are as follows: triggering character function library first calls the first character string of function name;Wherein, the function It include the first calling function corresponding to the first calling function name in library;
By first character string input it is described triggering character after described program input area in.
Optionally, the triggering character be specially or #.
On the other hand, the embodiment of the present application also provides a kind of information processing method, is applied to an electronic equipment, the electronics Equipment includes Integrated Development module, display unit, network interface and memory, wherein the Integrated Development module includes that program is compiled R/w cell and program compilation unit, the method specifically include:
It is stored with the first program in the memory, and includes at least first in first program and calls function name When, detection obtains the compilation operations for compiling first program;
The compilation operations are responded, during described program compilation unit runs first program, read institute When stating the first calling function name, is obtained from one second electronic equipment by the network interface and call function with described first Title corresponding first calls function;
Function is called in described program compilation unit operation described first.
Optionally, second electronic equipment is specially the equipment that network side is arranged in, and is deposited in second electronic equipment It contains and calls function data library, wherein include the first calling function in the calling function data library.
Optionally, function is called in described program compilation unit operation described first, specifically includes:
Described program compilation unit is read from the memory in the electronic equipment obtains the first calling function;
Function is called in described program compilation unit operation described first.
Optionally, after described program compilation unit operation described first is called after function, the method also includes:
After described first the end of the program, the first compiling knot of first program is shown on the display unit Fruit.
On the other hand, the embodiment of the present application also provides a kind of electronic equipment, and the electronic equipment includes: Integrated Development mould Block, including programming unit and program compilation unit;Display unit, network interface and memory, wherein compiled in described program When r/w cell is run, the display unit shows a programming interface, wherein described program, which is write on interface, has a program defeated Enter region, in which:
Described program writes unit for inputting the calling function stored in the memory in described program input area First in inventory calls function name;
Described program writes unit and is also used to the program comprising the first calling function name being stored in the storage In device, so that described program compilation unit is compiled.
Optionally, described program writes unit, specifically includes:
First detection module is stored in institute for calling for detecting acquisition inputs in described program input area one State the triggering character of the calling function list in memory;
Read module reads the calling function list and is shown from the memory for being based on the triggering character Show on the display unit;
Second detection module is obtained for detecting for selecting described first to call function from the calling function list The selection operation of title;
Respond module, for responding the selection operation, selecting the first calling function name and inputting described first In described program input area after calling function name to the triggering character.
Optionally, the respond module, specifically includes:
Submodule is responded, for responding the selection operation, the first calling function name is controlled and is in selected state;
Submodule is generated, for generating format are as follows: triggering character function library first calls the first character of function name String;It wherein, include the first calling function corresponding to the first calling function name in the function library;
Input submodule, for by first character string input it is described triggering character after described program input area In.
Optionally, the triggering character be specially or #.
On the other hand, the embodiment of the present application also provides a kind of electronic equipment, comprising: Integrated Development module, including program are compiled R/w cell and program compilation unit;Display unit, network interface and memory, wherein being stored with the first journey in the memory Sequence, and include at least first in first program and call function name:
Wherein described program compilation unit is for detecting the compilation operations obtained for compiling first program, Yi Jiyong In responding the compilation operations, during described program compilation unit runs first program, described first is read When calling function name, is obtained from one second electronic equipment by the network interface and call function name pair with described first First answered calls function, and calls function for described program compilation unit operation described first.
Optionally, second electronic equipment is specially the equipment that network side is arranged in, and is deposited in second electronic equipment It contains and calls function data library, wherein include the first calling function in the calling function data library.
Optionally, described program compilation unit is specifically used for:
It is read from the memory in the electronic equipment and obtains the first calling function, and
It runs described first and calls function.
Optionally, the display unit is used for after first program is completed in the compiling of described program compilation unit, display First compiling result of first program.
Said one or multiple technical solutions in the embodiment of the present application at least have following one or more technology effects Fruit:
One, since the technical solution in the embodiment of the present application is to run first program in described program compilation unit In the process, read it is described first call function name when, obtained from one second electronic equipment by the network interface with Described first calls function name corresponding first to call function, i.e., will not be as all needing before writing program every time in the prior art Function library is downloaded from other electronic equipments, generally, downloaded these function libraries and required to spend the more time, because This, can save more time using the technical program, thus it is possible to efficiently solve in the prior art in the mistake for writing program Existing in journey spends the time more, the low technical problem of programming efficiency, and then realizes the technical effect for improving programming efficiency.
It two, is to run first program in described program compilation unit due to the technical solution in the embodiment of the present application During, when reading the first calling function name, obtained from one second electronic equipment by the network interface With it is described first call function name it is corresponding first call function, compared to the prior art in every time write program before all need Function library is downloaded from other electronic equipments, generally, it includes many functions, this is just needed that these function libraries are all very big It wants electronic equipment that many memory spaces is needed to come storage function library, therefore, biggish storage can be saved using the technical program Space exists thus it is possible to efficiently solve the technical solution in the prior art for downloading function library from other electronic equipments The big technical problem of electronic equipment memory space is occupied, and then realizes and occupies the small technical effect of electronic device space.
Three, since the technical solution in the embodiment of the present application is to run first program in described program compilation unit In the process, read it is described first call function name when, obtained from one second electronic equipment by the network interface with It is described first call function name it is corresponding first call function, compared to the prior art in every time write program before require Function library is downloaded from other electronic equipments, includes many functions in function library, and in practice, it is not each function It is that the program needs write call, therefore, function utilization efficiency can be improved by the technical program, so, effectively solve It has determined the technical solution in the prior art that function library is downloaded from other electronic equipments, the function utilization rate in existence function library Not high technical problem, and then reach the technical effect for improving the utilization rate of the function in existence function library.
Detailed description of the invention
Technical solution in ord to more clearly illustrate embodiments of the present application or in prior art, below retouches embodiment Attached drawing needed in stating is briefly described, it should be apparent that, the accompanying drawings in the following description is only of the invention one A little embodiments.
Fig. 1 is a kind of electronic equipment that the embodiment of the present application one provides;
Fig. 2 is a kind of flow diagram for information processing method that the embodiment of the present application one provides;
Fig. 3 is the programming interface that the embodiment of the present application one provides;
Fig. 4 is the flow diagram that function is called in the acquisition first that the embodiment of the present application one provides;
Fig. 5 is the flow diagram for the selection operation that function is called in the response selection first that the embodiment of the present application one provides;
Fig. 6 is the function library stored in memory that the embodiment of the present application one provides;
Fig. 7 is the function list stored in memory that the embodiment of the present application one provides;
Fig. 8 is a kind of flow diagram for information processing method that the embodiment of the present application two provides;
Fig. 9 is the flow diagram that function is called in the operation first that the embodiment of the present application two provides;
Figure 10 is that the program that the embodiment of the present application two provides compiles interface;
Figure 11 is the interface Build for being used to show compiling result that the embodiment of the present application two provides.
Specific embodiment
The embodiment of the present application provides a kind of information processing method and electronic equipment, for solving electronic equipment in the prior art The low technical problem of programming efficiency, to reach the technical effect for the programming efficiency for improving electronic equipment.
In order to solve the above technical problems, general thought is as follows for technical solution in the embodiment of the present application:
A kind of information processing method is applied to an electronic equipment, and the electronic equipment includes Integrated Development module, and display is single Member, network interface and memory, wherein the Integrated Development module includes programming unit and program compilation unit, the side Method specifically includes:
When described program writes unit operation, a programming interface is shown on the display unit, wherein the journey Sequence, which is write on interface, a program input area;
In described program input area, inputs first called in function list stored in the memory and call function Title;
Described program write unit by comprising it is described first call function name program save in the memory, with It is compiled for described program compilation unit.
In the above technical solution, during described program compilation unit runs first program, read When the first calling function name, is obtained from one second electronic equipment by the network interface and described first calls letter It is several to claim corresponding first to call function, i.e., it will not be as requiring to set from other electronics before writing program every time in the prior art Standby middle downloading function library generally downloads these function libraries and requires to spend the more time, when can save more in this way Between, spend the time more thus it is possible to efficiently solve and exist during writing program in the prior art, programming efficiency is low Technical problem, and then realize the technical effect for improving programming efficiency.
In order to better understand the above technical scheme, below by attached drawing and specific embodiment to technical solution of the present invention It is described in detail, it should be understood that the specific features in the embodiment of the present application and embodiment are to the detailed of technical solution of the present invention Thin explanation, rather than the restriction to technical solution of the present invention, in the absence of conflict, the embodiment of the present application and embodiment In technical characteristic can be combined with each other.
Embodiment one
The embodiment of the present application provides a kind of information processing method, is applied to an electronic equipment, referring to FIG. 1, the application is real Applying the electronic equipment in example includes Integrated Development module 10, display unit 20, network interface 30 and memory 40, wherein the collection It include programming unit 101 and program compilation unit 102 at development module 10.In the embodiment of the present application, electronic equipment can Think laptop, or desktop computer, or be tablet computer.
Below with reference to Fig. 2, the realization process of the method in the embodiment of the present application is described in detail.The method is specific Include:
S101 shows a programming interface on the display unit 20 when described program is write unit 101 and run 201, wherein described program, which is write on interface 201, a program input area 2011;
S102 is inputted in the calling function list 41 stored in the memory 40 in described program input area 2011 First call function name;
S103, described program write unit 101 and the program comprising the first calling function name are stored in described deposit In reservoir 40, so that described program compilation unit 102 is compiled.
In a specific embodiment, when electronic equipment is laptop, integrated comprising programming unit 101 is opened Hair module 10 is mounted in the laptop, and Integrated Development module 10 carries out program particularly for programming personnel is supplied to The Integrated Development application program of exploitation, generally comprises programming unit 101, in this application, also referred to as code editor, Program compilation unit 102, in this application, also referred to as compiler, debugger and graphic user interface etc..
Integrated Development module in the embodiment of the present application, is integrated with written in code function, analytic function, compilation facility, tune Try the various functions such as function.In the concrete realization, Integrated Development module 10 can be with are as follows: the Visual Studio of Microsoft is integrated to be opened Hair ring border, the C++Builder Integrated Development Environment of Borland, Delphi Integrated Development Environment etc., it is of course also possible to be other Environment is developed, here, just different one schematically illustrating.
It is as follows during the realization of step S101 when electronic equipment is laptop:
When programming unit 101 is run in laptop, can be shown on the display unit 20 of laptop Show a programming interface 201, referring to FIG. 3, wherein, described program, which is write on interface 201, a program input area 2011, Programming personnel can input program in program input area 2011, or edit to the program inputted, such as: increase, Delete etc..
In the embodiment of the present application, after executing the step S101, step S102 is just carried out, it may be assumed that defeated in described program Enter region 2011, inputs first called in function list 41 stored in the memory 40 and call function name.
During specific implementation, referring to FIG. 4, S102 includes the following steps:
S201, detection obtain one inputted in described program input area 2011 and are stored in the memory for calling The triggering character of the calling function list 41 in 40;
S202 is based on the triggering character, the calling function list 41 is read from the memory 40 and is shown in On the display unit 20;
S203, detection are obtained for selecting the described first selection for calling function name from the calling function list 41 Operation;
S204 responds the selection operation, selects the first calling function name and inputs the first calling function In described program input area 2011 after title to the triggering character.
Further, for step S204, it may be assumed that respond the selection operation, select described first to call function name simultaneously Input it is described first call function name to it is described triggering character after described program input area 2011 in, the application reality It applies in example, please refers to Fig. 5 and specifically include:
S2041 responds the selection operation, controls the first calling function name and is in selected state;
S2042 generates format are as follows: triggering character function library first calls the first character string of function name;Wherein, institute Stating in function library includes the first calling function corresponding to the first calling function name;
S2043, by first character string input it is described triggering character after described program input area 2011 in.
In the embodiment of the present application, the triggering character be specially or #, certainly, the technology of the application technical field Personnel, can also be according to their needs with other character, such as: *, here, the application is schematically illustrated with regard to different one.
In the embodiment of the present application, 40 program storage of memory writes the program that unit 101 is write and program compiling is single The compiling result obtained after first 102 compilers and relevant database.Memory 40 can be the storage of electronic equipment internal Device, such as: built-in hard disk;It is also possible to the external memory connecting with electronic equipment, such as: mobile hard disk, USB flash disk and CD.
In the following, will continue so that electronic equipment is laptop as an example, the specific implementation process of step S102 is carried out detailed Thin description:
During concrete implementation, it is now assumed that writing the entitled tolower's of engineering that one is changed to lowercase character character Program first has to the function for finding function library and the entitled lowCase of function that this library name is StringUtility.
By the technical solution of the application, the project file of an entitled tolower of engineering is initially set up, programming is worked as When unit 101 is run, a programming interface 201 can be shown on the display unit 20 of laptop, wherein described program Writing on interface 201 has a program input area 2011, and programming personnel can input program in program input area 2011 and exist It is as follows in described program input area:
The first row inputs program:
Int main()
Second row inputs program:
{ char chUpper=' C ';
The third line inputs program:
Char chLower=@StringUtility.lowCase (chUpper);}
It is inputted in third trip program process in described program input area 2011, detection, which is obtained, is stored in storage for calling The triggering character of the calling function list in device 40, such as, # or *, in the embodiment of the present application, when input triggers character When for@, from reading the calling function list 41 in memory 40 and being shown on the display unit 20, at this point, such as Fig. 6 institute Show, can show function library relevant to@on the display unit 20, with the function library of alphabetical A-Z beginning or with alphabetical a-z The function library of beginning, such as: Alloc function library, Math function library, StringUtility function library and String function library, when So there are also other function libraries, here, just different one schematically illustrating, also comprising the different letters for calling in different function libraries Number, selects then this function library of StringUtility in the embodiment of the present application, is in this function library of StringUtility Selected state, hereafter can show function corresponding with StringUtility function library in StringUtility function library side Inventory, comprising function name start with A-Z or with a-z beginning in the function list, such as circle, exit, farfree and The function names such as lowCase also have other function names certainly, here, just different one schematically illustrating, as shown in fig. 7, in the application reality It applies in example from selecting function lowCase to call function as first in the embodiment of the present application in function list, makes function LowCase is in selected state, and generates the first character string that format is@StringUtility.lowCase (str), The technical program can also support the generation of class, generate format, such as :@xmlrpclib.XMLRPC rpc=new ,@ xmlrpclib.XMLRPC().。
After the first character string is input in program input area, the program of the tolower in the embodiment of the present application is just It writes and completes, specific as follows:
Int main()
{ char chUpper=' C ';
Char chLower=@StringUtility.lowCase (chUpper);}.
Finally, the program of tolower is stored in memory 40, for compiling.
Method in corresponding embodiment one, the application also provide embodiment two
In the embodiment of the present application two, a kind of information processing method is provided, is applied to the first electronic equipment, referring to FIG. 1, First electronic equipment includes: Integrated Development module 10, display unit 20, network interface 30 and memory 40, wherein described Integrated Development module 10 includes programming unit 101 and program compilation unit 102, and in the embodiment of the present application two, electronics is set Standby can be laptop, or desktop computer, or be tablet computer.
Below with reference to Fig. 8, the realization process of the method in the embodiment of the present application two is described in detail.The method tool Body includes:
S301: being stored with the first program in the memory 40, and includes at least first in first program and call When function name, detection obtains the compilation operations for compiling first program;
S302: responding the compilation operations, during described program compilation unit 102 runs first program, When reading described first and calling function name, obtained from one second electronic equipment by the network interface 30 and described the One calls function name corresponding first to call function;
S303: described program compilation unit 102 runs described first and calls function.
In a specific embodiment, when electronic equipment is laptop, integrated comprising program compilation unit 102 is opened Hair module 10 is mounted in the laptop, application of the Integrated Development module 10 particularly for offer programming development environment Program generally comprises programming unit 101, and in the embodiment of the present application two, also referred to as code editor, program compiling are single Member 102, in the embodiment of the present application two, also referred to as compiler, debugger and graphic user interface etc..
Integrated Development module 10 in the embodiment of the present application two is integrated with written in code function, analytic function, compiling function The various functions such as energy, debugging function.In the concrete realization, Integrated Development module 10 can be with are as follows: the Visual Studio collection of Microsoft Development environment, the C++Builder Integrated Development Environment of Borland, Delphi Integrated Development Environment etc., it is of course also possible to be Other exploitation environment, here, just different one schematically illustrating.
In the embodiment of the present application, what 40 program storage of memory write unit 101 and program compilation unit 102 writes knot Fruit, compiling result and relevant database.Memory 40 can be the memory of electronic equipment internal, such as: built-in hard disk;It can also To be the external memory being connect with electronic equipment, such as: mobile hard disk, USB flash disk and CD.
In the embodiment of the present application two, when programming unit 101 is run, the engineering of the entitled tolower of engineering is opened File, the first program bag in project file tolower first call function title containing calling in need are as follows: LowCase, then detection obtains the compilation operations of the first program of compiling.After executing the step S301, step is just carried out S302, it may be assumed that respond the compilation operations, during described program compilation unit 102 compiles first program, compiling When to the lowCase function for needing to call function name lowCase, obtained from one second electronic equipment by the network interface 30 Obtain the corresponding function lowCase of and function title lowCase.
In the application implementation column two, second electronic equipment is specially the equipment that network side is arranged in, the second electronics Equipment can be laptop, can also be with desktop computer, or be tablet computer, be stored with tune in second electronic equipment With function data library, wherein include the function lowCase in the calling function data library.
In a specific embodiment, when the second electronic equipment is laptop, network interface is laptop Network interface can be communicated between electronic equipment and the second electronic equipment by network interface in the embodiment of the present application. Network interface can be Ethernet interface, and the type of Ethernet interface can be RJ-45 interface, RJ-11 interface, and SC optical fiber connects Mouthful, fddi interface, AUI interface, bnc interface, Console interface etc. is also possible to other interface, here, just no longer one one action Example.
Further, for step S303, it may be assumed that described program compilation unit 102 runs described first and calls function, reference Fig. 9 is specifically included:
S3031: described program compilation unit 102 is read from the memory in the electronic equipment obtains first calling Function;
S3032: described program compilation unit 102 runs described first and calls function.
For S3032, it may be assumed that described program compilation unit 102 runs described first and calls function, has executed the step at this Afterwards, the method for the embodiment of the present application further include:
S3033: after described first the end of the program, the of first program is shown on the display unit 20 One compiling result.
In the following, will continue using electronic equipment as laptop, the second electronic equipment is similarly laptop, and network connects For mouth is RJ-45, step S303 specific implementation process is described in detail:
In the embodiment of the present application two, when programming unit 101 is run, it is first turned on and is stored in memory 40 The first program of the entitled tolower of project file, include function name in the first program then: lowCase is detected for compiling Translate the compilation operations of the first program;
When program compilation unit 102 is run, there is a program to compile interface 202 in display unit 20, compiles boundary in program Have a menu 2021 and toolbar button 2022 on face, as shown in Figure 10, can by Build key in menu to the first program into Row compiling can also use toolbar button 2022, and click tools column button 2022 can carry out the compiling of the first program, together Sample also can be used shortcut key F7 and be compiled to the first program.In compilation process,
The first row of first program:
Int main()
Second stroke sequence:
{ char chUpper=' C ';It can go on smoothly, and proceed to the third line program in compiling:
Char chLower=@StringUtility.lowCase (chUpper);When, due to the entitled lowCase of function LowCase function be not comprised in the project file of entitled tolower, therefore, in the embodiment of the present application two, program compile It translates unit 102 and function lowCase is called from the second electronic equipment by network interface RJ-4530 network interface, and by function LowCase is put into the project file tolower of the first program, is executed lowCase function, is being executed lowCase function Afterwards, to carry out next line program printf (" %c n ", chLower);Compiling, to obtain compiling result.
The first compiling of display is as a result, as shown in figure 11, if compiled successfully, can show " 0 error on the display unit 20 (s), 0 warning (s) ", if compiling is unsuccessful, program compilation unit 102 checks that the mistake come can be displayed on program volume 2023 in the Build window in world of translation face 202, such as: having lacked a branch the 3rd row end character ' } ' of tolower.c is preceding, then It will appear prompt, error C2146:syntax error:missing';'before identifier'}';Or The parameter of function call then will appear prompt, Cannot by chUpper Gai Wei &chUpper in the 3rd row of tolower.c Convert'char*'to'char' there is also other mistakes certainly, here, just different one schematically illustrating.So program people Member can modify to first program according to the compiling result of display.
The method of corresponding embodiment one, the application also provide embodiment three
Referring to FIG. 1, the embodiment of the present application three provides a kind of electronic equipment, in the embodiment of the present application three, electronic equipment It can be laptop, or desktop computer, or be tablet computer.The electronic equipment includes:
Integrated Development module 10, including programming unit 101 and program compilation unit 102;Display unit 20, network connects Mouth 30 and memory 40, wherein when described program writes unit operation, the display unit 20 shows programming circle Face, wherein described program, which is write on interface, a program input area, in which:
Described program writes unit 101 for inputting the tune stored in the memory 40 in described program input area Function name is called with first in function list;
Described program writes unit 101 and is also used to the program comprising the first calling function name being stored in described deposit In reservoir 40, so that described program compilation unit 102 is compiled.
In a specific embodiment, when electronic equipment is laptop, integrated comprising programming unit 101 is opened Hair module 10 is mounted in the laptop, and Integrated Development module 10 carries out program particularly for programming personnel is supplied to The Integrated Development application program of exploitation, generally comprises programming unit 101, in this application, also referred to as code editor, Program compilation unit 102, in this application, also referred to as compiler, debugger and graphic user interface etc..
Integrated Development module 10 in the embodiment of the present application three is integrated with written in code function, analytic function, compiling function The various functions such as energy, debugging function.In the concrete realization, Integrated Development module 10 can be with are as follows: the Visual Studio collection of Microsoft Development environment, the C++Builder Integrated Development Environment of Borland, Delphi Integrated Development Environment etc., it is of course also possible to be Other exploitation environment, here, just different one schematically illustrating.
In the embodiment of the present application three, 40 program storage of memory writes writing for unit 101 and program compilation unit 102 As a result, result and relevant database are compiled.Memory 40 can be the memory of electronic equipment internal, such as: built-in hard disk;? It can be the external memory connecting with electronic equipment, such as: mobile hard disk, USB flash disk and CD.
In the embodiment of the present application, in order to obtain first program, it is specific that described program writes unit 101 further include:
First detection module is stored in institute for calling for detecting acquisition inputs in described program input area one State the triggering character of the calling function list in memory 40;
Read module reads the calling function list simultaneously for being based on the triggering character from the memory 40 It is shown on the display unit 20;
Second detection module is obtained for detecting for selecting described first to call function from the calling function list The selection operation of title;
Respond module, for responding the selection operation, selecting the first calling function name and inputting described first In described program input area after calling function name to the triggering character.
In order in writing the first program process, suitable first is selected to call function, the respond module, specifically Include:
Submodule is responded, for responding the selection operation, the first calling function name is controlled and is in selected state;
Submodule is generated, for generating format are as follows: triggering character function library first calls the first character of function name String;It wherein, include the first calling function corresponding to the first calling function name in the function library;
Input submodule, for by first character string input it is described triggering character after described program input area In, wherein the trigger word symbol be specially or #.
The method of corresponding embodiment two, the application also provide example IV
Referring to FIG. 1, the embodiment of the present application four also provides a kind of electronic equipment, in the embodiment of the present application four, electronics is set Standby can be laptop, or desktop computer, or be tablet computer.The electronic equipment includes:
Integrated Development module 10, including programming unit 101 and program compilation unit 102;Display unit 20, network connects Mouthfuls 30 and memory 40, wherein be stored with the first program in the memory 40, and the is included at least in first program One calls function name;
Wherein, described program compilation unit 102 is used to detect the compilation operations obtained for compiling first program, with And for responding the compilation operations, during described program compilation unit 102 runs first program, institute is read When stating the first calling function name, is obtained from one second electronic equipment by the network interface 30 and call letter with described first It is several to claim corresponding first to call function, and run described first for described program compilation unit 102 and call function.
In a specific embodiment, when electronic equipment is laptop, integrated comprising programming unit 101 is opened Hair module 10 is mounted in the laptop, and Integrated Development module 10 carries out program particularly for programming personnel is supplied to The Integrated Development application program of exploitation, generally comprises programming unit 101, in the embodiment of the present application four, also referred to as generation Code editing machine, program compilation unit 102, in this application, and also referred to as compiler, debugger and graphic user interface etc..
Integrated Development module 10 in the embodiment of the present application four is integrated with written in code function, analytic function, compiling function The various functions such as energy, debugging function.In the concrete realization, Integrated Development module 10 can be with are as follows: the Visual Studio collection of Microsoft Development environment, the C++Builder Integrated Development Environment of Borland, Delphi Integrated Development Environment etc., it is of course also possible to be Other exploitation environment, here, just different one schematically illustrating.
In the embodiment of the present application four, 40 program storage of memory writes writing for unit 101 and program compilation unit 102 As a result, result and relevant database are compiled.Memory 40 can be the memory of electronic equipment internal, such as: built-in hard disk;? It can be the external memory connecting with electronic equipment, such as: mobile hard disk, USB flash disk and CD.
In the embodiment of the present application four, second electronic equipment is specially the equipment that network side is arranged in, the second electronics Equipment can be laptop, can also be with desktop computer, or be tablet computer, be stored with tune in second electronic equipment With function data library, wherein include the first calling function in the calling function data library.
In a specific embodiment, when the second electronic equipment is laptop, network interface is laptop Network interface can be communicated between electronic equipment and the second electronic equipment by network interface in the embodiment of the present application. Network interface can be Ethernet interface, and the type of Ethernet interface can be RJ-45 interface, RJ-11 interface, and SC optical fiber connects Mouthful, fddi interface, AUI interface, bnc interface, Console interface etc. is also possible to other interface, here, just no longer one one action Example.
In order in compiling the first program process, select suitable first to call function, described program compilation unit It is specifically used for:
It is read from the memory in the electronic equipment and obtains the first calling function, and
It runs described first and calls function.
After the completion of compilation process, the display unit 20 is also used to:
After first program is completed in the compiling of described program compilation unit 102, show that the first of first program is compiled Translate result.
By one or more technical solutions in the embodiment of the present application, following one or more technology effects may be implemented Fruit:
One, since the technical solution in the embodiment of the present application is to run first program in described program compilation unit In the process, read it is described first call function name when, obtained from one second electronic equipment by the network interface with Described first calls function name corresponding first to call function, i.e., will not be as all needing before writing program every time in the prior art Function library is downloaded from other electronic equipments, generally, downloaded these function libraries and required to spend the more time, because This, can save more time using the technical program, thus it is possible to efficiently solve in the prior art in the mistake for writing program Existing in journey spends the time more, the low technical problem of programming efficiency, and then realizes the technical effect for improving programming efficiency.
It two, is to run first program in described program compilation unit due to the technical solution in the embodiment of the present application During, when reading the first calling function name, obtained from one second electronic equipment by the network interface With it is described first call function name it is corresponding first call function, compared to the prior art in every time write program before all need Function library is downloaded from other electronic equipments, generally, it includes many functions, this is just needed that these function libraries are all very big It wants electronic equipment that many memory spaces is needed to come storage function library, therefore, biggish storage can be saved using the technical program Space exists thus it is possible to efficiently solve the technical solution in the prior art for downloading function library from other electronic equipments The big technical problem of electronic equipment memory space is occupied, and then realizes and occupies the small technical effect of electronic device space.
Three, since the technical solution in the embodiment of the present application is to run first program in described program compilation unit In the process, read it is described first call function name when, obtained from one second electronic equipment by the network interface with It is described first call function name it is corresponding first call function, compared to the prior art in every time write program before require Function library is downloaded from other electronic equipments, includes many functions in function library, and in practice, it is not each function It is that the program needs write call, therefore, function utilization efficiency can be improved by the technical program, so, effectively solve It has determined the technical solution in the prior art that function library is downloaded from other electronic equipments, the function utilization rate in existence function library Not high technical problem, and then reach the technical effect for improving the utilization rate of the function in existence function library.
It should be understood by those skilled in the art that, the embodiment of the present invention can provide as method, system or computer program Product.Therefore, complete hardware embodiment, complete software embodiment or reality combining software and hardware aspects can be used in the present invention Apply the form of example.Moreover, it wherein includes the computer of computer usable program code that the present invention, which can be used in one or more, The computer program implemented in usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) produces The form of product.
The present invention be referring to according to the method for the embodiment of the present invention, the process of equipment (system) and computer program product Figure and/or block diagram describe.It should be understood that every one stream in flowchart and/or the block diagram can be realized by computer program instructions The combination of process and/or box in journey and/or box and flowchart and/or the block diagram.It can provide these computer programs Instruct the processor of general purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produce A raw machine, so that being generated by the instruction that computer or the processor of other programmable data processing devices execute for real The device for the function of being specified in present one or more flows of the flowchart and/or one or more blocks of the block diagram.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates, Enable the manufacture of device, the command device realize in one box of one or more flows of the flowchart and/or block diagram or The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device, so that counting Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or The instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram one The step of function of being specified in a box or multiple boxes.
Specifically, the corresponding computer program instructions of one of the embodiment of the present application information processing method can be deposited Storage is on the storage mediums such as CD, hard disk, USB flash disk, when the computer journey corresponding with a kind of information processing method in storage medium Sequence instruction is read or is performed by an electronic equipment, includes the following steps:
When described program writes unit operation, a programming interface is shown on the display unit, wherein the journey Sequence, which is write on interface, a program input area;
In described program input area, inputs first called in function list stored in the memory and call function Title;
Described program write unit by comprising it is described first call function name program save in the memory, with It is compiled for described program compilation unit.
Optionally, it stored in the storage medium and step: in described program input area, inputs in the memory First called in function list of storage calls the corresponding computer program instructions of function name when executed, specifically includes Following steps:
Detection obtains input in described program input area one for calling described in storage in the memory Call the triggering character of function list;
Based on the triggering character, the calling function list is read from the memory and is shown in the display list In member;
Detection is obtained for selecting the described first selection operation for calling function name from the calling function list;
The selection operation is responded, selects described first to call function name and input the first calling function name and arrives In described program input area after the triggering character.
Optionally, store in the storage medium and step: responding the selection operation, selects described first to call letter It is several title and input it is described first call function name to it is described triggering character after described program input area in it is corresponding Computer program instructions specifically comprise the following steps:
The selection operation is responded, the first calling function name is controlled and is in selected state;
Generate format are as follows: triggering character function library first calls the first character string of function name;Wherein, the function It include the first calling function corresponding to the first calling function name in library;
By first character string input it is described triggering character after described program input area in.
Specifically, the corresponding computer program instructions of another information processing method in the embodiment of the present application can be by It is stored on the storage mediums such as CD, hard disk, USB flash disk, when the computer corresponding with a kind of information processing method in storage medium Program instruction is read or is performed by an electronic equipment, includes the following steps:
It is stored with the first program in the memory, and includes at least first in first program and calls function name When, detection obtains the compilation operations for compiling first program;
The compilation operations are responded, during described program compilation unit runs first program, read institute When stating the first calling function name, is obtained from one second electronic equipment by the network interface and call function with described first Title corresponding first calls function;
Function is called in described program compilation unit operation described first.
Optionally, store in the storage medium and step: function pair is called in program compilation unit operation described first The computer program instructions answered specifically comprise the following steps: when executed
Described program compilation unit is read from the memory in the electronic equipment obtains the first calling function;
Function is called in described program compilation unit operation described first.
Optionally, store in the storage medium and step: function is called in program compilation unit operation described first Corresponding computer program instructions are also stored with computer journey corresponding with following steps after being performed, in the storage medium Sequence instruction:
After described first the end of the program, the first compiling knot of first program is shown on the display unit Fruit.
Although preferred embodiments of the present invention have been described, it is created once a person skilled in the art knows basic Property concept, then additional changes and modifications may be made to these embodiments.So it includes excellent that the following claims are intended to be interpreted as It selects embodiment and falls into all change and modification of the scope of the invention.
Obviously, various changes and modifications can be made to the invention without departing from essence of the invention by those skilled in the art Mind and range.In this way, if these modifications and changes of the present invention belongs to the range of the claims in the present invention and its equivalent technologies Within, then the present invention is also intended to include these modifications and variations.

Claims (16)

1. a kind of information processing method is applied to an electronic equipment, the electronic equipment includes Integrated Development module, and display is single Member, network interface and memory, wherein the Integrated Development module includes programming unit and program compilation unit, the side Method specifically includes:
When described program writes unit operation, a programming interface is shown on the display unit, wherein described program is compiled Writing on interface has a program input area;
In described program input area, inputs first called in function list stored in the memory and call function name Claim, so that during described program compilation unit runs the first program, when reading the first calling function name, It is obtained from one second electronic equipment by the network interface and calls function name corresponding first to call letter with described first Number;
Described program writes unit will call the program of function name to save in the memory, for institute comprising described first Program compilation unit is stated to be compiled.
2. method as described in claim 1, which is characterized in that it is described in described program input area, it inputs in the memory First called in function list of storage calls function name, specifically includes:
Detection obtains input in described program input area one for calling the calling of storage in the memory The triggering character of function list;
Based on the triggering character, the calling function list is read from the memory and is shown in the display unit On;
Detection is obtained for selecting the described first selection operation for calling function name from the calling function list;
The selection operation is responded, the first calling function name is selected and inputs the first calling function name described in In described program input area after triggering character.
3. method according to claim 2, which is characterized in that the response selection operation selects described first to call Function name and input it is described first call function name to it is described triggering character after described program input area in, specifically Include:
The selection operation is responded, the first calling function name is controlled and is in selected state;
Generate format are as follows: triggering character function library first calls the first character string of function name;Wherein, in the function library The first calling function corresponding to function name is called including described first;
By first character string input it is described triggering character after described program input area in.
4. such as any claim the method in claim 2-3, which is characterized in that the triggering character is specially or #.
5. a kind of information processing method is applied to the first electronic equipment, first electronic equipment includes: Integrated Development module, Display unit, network interface and memory, wherein the Integrated Development module includes that programming unit and program compiling are single Member, which comprises
When being stored with the first program in the memory, and including at least the first calling function name in first program, Detection obtains the compilation operations for compiling first program;
The compilation operations are responded, during described program compilation unit runs first program, read described the When one calling function name, is obtained from one second electronic equipment by the network interface and described first calls function name Corresponding first calls function;
Function is called in described program compilation unit operation described first.
6. method as claimed in claim 5, which is characterized in that second electronic equipment is specially that setting for network side is arranged in It is standby, it is stored in second electronic equipment and calls function data library, wherein include described in the calling function data library First calls function.
7. method as claimed in claim 5, which is characterized in that function is called in described program compilation unit operation described first, It specifically includes:
Described program compilation unit is read from the memory in the electronic equipment obtains the first calling function;
Function is called in described program compilation unit operation described first.
8. method as claimed in claim 5, which is characterized in that call function in described program compilation unit operation described first After afterwards, the method also includes:
After described first the end of the program, the first compiling result of first program is shown on the display unit.
9. a kind of electronic equipment, comprising:
Integrated Development module, including programming unit and program compilation unit;Display unit, network interface and memory, In, when described program writes unit operation, the display unit shows a programming interface, wherein described program is write There is a program input area on interface, in which:
Described program writes unit for inputting the calling function list stored in the memory in described program input area In first call function name so that being read described during described program compilation unit runs the first program When the first calling function name, is obtained from one second electronic equipment by the network interface and described first calls function name Corresponding first is claimed to call function;
Described program writes unit and is also used to the program of function name will be called to save in the memory comprising described first, So that described program compilation unit is compiled.
10. electronic equipment as claimed in claim 9, which is characterized in that described program writes unit, specifically includes:
First detection module is stored in described deposit for calling for detecting acquisition inputs in described program input area one The triggering character of the calling function list in reservoir;
Read module reads the calling function list and is shown in from the memory for being based on the triggering character On the display unit;
Second detection module is obtained for detecting for selecting described first to call function name from the calling function list Selection operation;
Respond module, for responding the selection operation, selecting the first calling function name and inputting first calling In described program input area after function name to the triggering character.
11. electronic equipment as claimed in claim 10, which is characterized in that the respond module specifically includes:
Submodule is responded, for responding the selection operation, the first calling function name is controlled and is in selected state;
Submodule is generated, for generating format are as follows: triggering character function library first calls the first character string of function name;Its In, it include the first calling function corresponding to the first calling function name in the function library;
Input submodule, for by first character string input it is described triggering character after described program input area in.
12. the electronic equipment as described in any claim of claim 10-11, which is characterized in that the triggering character is specially Or #.
13. a kind of electronic equipment, comprising: Integrated Development module, including programming unit and program compilation unit;Display is single Member, network interface and memory wherein being stored with the first program in the memory, and include at least in first program First calls function name;
Wherein, described program compilation unit is obtained for detect for compiling the compilation operations of first program, and is used for The compilation operations are responded, during described program compilation unit runs first program, described first is read and adjusts When with function name, is obtained from one second electronic equipment by the network interface and call function name corresponding with described first First call function, and for described program compilation unit operation it is described first call function.
14. electronic equipment as claimed in claim 13, which is characterized in that second electronic equipment is specially to be arranged in network The equipment of side is stored in second electronic equipment and calls function data library, wherein includes in the calling function data library There is described first to call function.
15. electronic equipment as claimed in claim 13, which is characterized in that described program compilation unit is specifically used for
It is read from the memory in the electronic equipment and obtains the first calling function, and
It runs described first and calls function.
16. electronic equipment as claimed in claim 13, which is characterized in that
The display unit is used for after first program is completed in the compiling of described program compilation unit, shows first program First compiling result.
CN201410412358.5A 2014-08-20 2014-08-20 A kind of information processing method and electronic equipment Active CN105446788B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410412358.5A CN105446788B (en) 2014-08-20 2014-08-20 A kind of information processing method and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410412358.5A CN105446788B (en) 2014-08-20 2014-08-20 A kind of information processing method and electronic equipment

Publications (2)

Publication Number Publication Date
CN105446788A CN105446788A (en) 2016-03-30
CN105446788B true CN105446788B (en) 2019-01-11

Family

ID=55557029

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410412358.5A Active CN105446788B (en) 2014-08-20 2014-08-20 A kind of information processing method and electronic equipment

Country Status (1)

Country Link
CN (1) CN105446788B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108255709A (en) * 2017-12-26 2018-07-06 平安壹钱包电子商务有限公司 Script tests method, apparatus, terminal device and the storage medium of written in code
CN110389753B (en) * 2019-06-06 2024-01-23 五八有限公司 Chained calling method and device of native application, electronic equipment and storage medium
CN110688103B (en) * 2019-10-10 2023-07-04 望海康信(北京)科技股份公司 Code writing method, device, electronic equipment and computer readable storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1232212A (en) * 1998-02-26 1999-10-20 日本电气株式会社 Programming supporting method and programming support device
US6230312B1 (en) * 1998-10-02 2001-05-08 Microsoft Corporation Automatic detection of per-unit location constraints
CN1393775A (en) * 2001-06-25 2003-01-29 神达电脑股份有限公司 System and method for using reference code to create attribute of program module
CN1609792A (en) * 2003-10-24 2005-04-27 微软公司 Programming interface for a computer program
CN1763717A (en) * 2005-11-24 2006-04-26 北京中星微电子有限公司 System and method for calling host software functions by using script and its compiler
CN102929682A (en) * 2012-12-06 2013-02-13 盛科网络(苏州)有限公司 Preprocessing method and device for automatically extending TCL (Tool Command Language)
CN102955698A (en) * 2012-11-26 2013-03-06 中国联合网络通信集团有限公司 Processing method and device based on multi-terminal software development

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7756840B2 (en) * 2004-11-03 2010-07-13 DBA InfoPower Inc. Real-time database performance and availability monitoring method and system

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1232212A (en) * 1998-02-26 1999-10-20 日本电气株式会社 Programming supporting method and programming support device
US6230312B1 (en) * 1998-10-02 2001-05-08 Microsoft Corporation Automatic detection of per-unit location constraints
CN1393775A (en) * 2001-06-25 2003-01-29 神达电脑股份有限公司 System and method for using reference code to create attribute of program module
CN1609792A (en) * 2003-10-24 2005-04-27 微软公司 Programming interface for a computer program
CN1763717A (en) * 2005-11-24 2006-04-26 北京中星微电子有限公司 System and method for calling host software functions by using script and its compiler
CN102955698A (en) * 2012-11-26 2013-03-06 中国联合网络通信集团有限公司 Processing method and device based on multi-terminal software development
CN102929682A (en) * 2012-12-06 2013-02-13 盛科网络(苏州)有限公司 Preprocessing method and device for automatically extending TCL (Tool Command Language)

Also Published As

Publication number Publication date
CN105446788A (en) 2016-03-30

Similar Documents

Publication Publication Date Title
CN102246150B (en) Transforming user script code for debugging
Ribeiro et al. Xis-mobile: A dsl for mobile applications
CN102915242A (en) Method for implementing code programming by graphical operations
CN106293664A (en) Code generating method and device
CN106775744B (en) Method and device for generating static library
CN102054217B (en) Entity morphing in metamodel-based tools
CN111708528A (en) Method, device and equipment for generating small program and storage medium
CN108647147B (en) Automatic testing robot implemented by using atlas analysis and use method thereof
CN102999419B (en) A kind of Android test incident record back method and device
CN111399840A (en) Module development method and device
CN104090765A (en) Method and device for switching from mobile game to webgame
CN109766139B (en) Configuration method and device of configuration file
CN105446788B (en) A kind of information processing method and electronic equipment
CN102696026A (en) Efficient immutable syntax representation with incremental change
CN110531985A (en) SDK initial method and system, electronic equipment, storage medium
US20110126171A1 (en) Dynamic native editor code view facade
CN103513977A (en) Display method and device for group member list
CN101263484A (en) Declaratively defined control actions
CN108874395B (en) Hard compiling method and device in modular stream processing process
CN102081520A (en) Method and system for establishing graphical user interface of embedded digital video recorder
CN103744331A (en) Education robot, controller thereof and programming method of controller
Buchmann Towards tool support for agile modeling: sketching equals modeling
CN104142824A (en) Code generator based on class library and realization method of code generator
US20070226706A1 (en) Method and system for generating multiple path application simulations
CN107315599A (en) Shape library extracting method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant