c How to make a custom command line program

Updated on technology 2024-04-27
16 answers
  1. Anonymous users2024-02-08

    The main function has arguments, look at static void main(string args) args is your -v -h transfer into the program's array You can use foreach(var s in args) to get each parameter (space-separated) 1542231788k4!

  2. Anonymous users2024-02-07

    Well, you're going to find CSC.

    It is installed here by default.

    c:\windows\

    So you're going to switch to that path. Otherwise it can't be found.

    If you don't have a version of anything, then run what.

    Right..? The simplest is to load. net framework

  3. Anonymous users2024-02-06

    In the command prompt line, type "C: Windows D: Here is an example of saving in the root directory of the D drive, and the landlord will save it according to his own save path.

    write, whichever is in quotation marks) After compiling successfully, you can directly enter helloworld, and then press enter to run.

  4. Anonymous users2024-02-05

    It's just a prerequisite to make sure that netframework is installed (or Ann has copied vs2005 or something).

    Then you can go to dos, you can also start -> vs2005 vs2008 -->vistual tools you can see the vs2005 vs2008 command prompt. Then type cd c: (here is the folder you want to compile, not your files).

    Now that you're in a position where you're currently located, start executing CSC. Go to the folder you want and you can find something like that. dll or. exe.

    The steps are detailed enough, just follow them.

  5. Anonymous users2024-02-04

    You need to configure the system to change the amount of the system, otherwise you can't find the CSC compiler and can't compile it.

    However, there is a simpler way to do it.

    The genus replaces the normal Windows CMD console with a command-line console program that comes with Visual Studio, so that it automatically configures the CSC compiler for you.

  6. Anonymous users2024-02-03

    Do you have VS2005 or VS2008 installed, if so:

    In Start->vs2005 vs2008-->vistual tools, you can see the vs2005 vs2008 command prompt, click it;

    If you don't have it installed, just find what you get.

  7. Anonymous users2024-02-02

    You don't have it on your computer. netframework?

  8. Anonymous users2024-02-01

    Write out the absolute or relative path of the program, and the software will execute.

    You can also set environment variables.

    If it's a file, you can set the execution permissions, and then. file name.

  9. Anonymous users2024-01-31

    First, check whether you have the execution permission.

    ls -al

    For example: -rw-rw-rw-, which cannot be executed, you need to use the chmod command to attach the execution permission. The insurance can be done with chmod 777 tleap or chmod +x tleap

    Then execute the program/tleap

  10. Anonymous users2024-01-30

    cd to the directory, then ls -l tleap, if there is x permission, directly. tleap, if there is no x, execute chmod +x tleap first. /tleap

  11. Anonymous users2024-01-29

    ./tleap

    /'represents the current path.

    Look clearly, there is a dot in front of the slash.

  12. Anonymous users2024-01-28

    Click the computer start menu, open the run window, enter cmd in the window box, click the OK button, and open the cmd command.

    window, then go to the executable folder in your project directory and enter the executable file name followed by the parameters you need Press enter and you can cmd command: if your executable is in d: cp debug you need to type d: in the command line window

    Press the Enter key to enter the CD CP Debug on the D drive, and press the Enter key to enter the CD directory and the Debug subdirectory on the D drive.

    Type 2 3 and press Enter to run your program, and the result will appear to the power = 8

  13. Anonymous users2024-01-27

    In an open class, I saw that the teacher who gave the lecture used an excel lottery program in the class, and the students who drew the corresponding student number answered the questions, which can increase the atmosphere of the classroom and mobilize the students' active participation, which is a good teaching strategy. A: This teacher has a very creative idea, and it is not difficult to do.

    In fact, lottery is very common in our daily life, here we introduce an example of a simple lottery procedure, hoping to give you more inspiration. Suppose there are 25 numbers, 5 in each row for a total of 5 rows, draw two command buttons below the numbers, and modify their caption properties to "draw" and "pause" respectivelyDouble-click the Draw button to enter, the key is as follows:

    k=0:flag=0

    do until flag=1

    for i=6 to 10

    for j=3 to 7

    if k=0 then

    cells(i,j).select

    doevents 'Releases program control and allows additional events to run.

    k=1cells(i,j).select

    end if

    nextnext

    loopClose the window to return to the lottery worksheet, click the "Lot" button to quickly select 25 cells in turn, and click the "Pause" button to interrupt the execution of the lottery program (that is, select one of the numbers). Click the "Lottery" button again to continue drawing numbers, such a simple lottery procedure is done at the same time press Alt and F11 to enter the macro interface, click on the insertion of the menu, module, paste as follows**:

    dim flag as boolean

    sub aaa()

    dim cell as range

    do until flag

    range("c6:g10").cells(int(rnd() 25) +1).select

    doevents

    loopflag = false

    end sub

    sub bbb()

    flag = true

    end sub

    Back to Excel, enter 25 signatures in C6:G10 (the bold words in ** are modified according to the actual situation), insert two graphics such as boxes, one writes "draw", one writes "pause", right-click the first box, specify macro, aaa; Right-click on the second box and specify the macro, bbb

    That's it.

  14. Anonymous users2024-01-26

    windows+r -> enter cmd Enter-> Enter cd space in the command line and add the path of your generated exe Enter-> enter your generated application (to be the full name For example, small method: press the tab key to quickly select the generated application, no need to write by hand)) space with the parameters you want to enter, no parameters directly enter. can be executed.

  15. Anonymous users2024-01-25

    Write a sentence at the end of the program.

    Let the program stop.

  16. Anonymous users2024-01-24

    It should be easy to do, but the most important thing is the design of the object hierarchy, which requires too much text. It can only be stated simply:

    Classes, which are responsible for loading, saving, displaying, zooming in and out of the entire graphic, etc., use XML to store the entire graphic;

    Primitive class): used to hold the properties of a single node and implement some methods for drawing, moving, etc.;

    Contact line): used to save the relationship between two nodes, but also to implement some drawing, moving methods;

    5.Implement a combination pattern for the flowchartdocument class, the chartunit class, and the chartline class;

    6.Implement the observer pattern for the chartunit and chartline classes, which is used to solve the problem of the chartline class moving at the same time when the primitive class moves.

    There are also some details that you need to do yourself to be able to know.

Related questions
6 answers2024-04-27

<> aura is a very mysterious thing, many women have pursued it countless times, but it is difficult to find the answer, because it is not a commodity, you can buy it if you have money, it is not a skill, you can learn it if you work hard, it is not a culture, you can read it carefully. How to say it, she is a kind of invisible and intangible, and always affects you, including your knowledge, knowledge, wisdom, character, but not limited to these, it can be said that it is a kind of energy formed over the years in spiritual life plus material conditions, as well as your various personalities. What does it mean to have an aura? >>>More

5 answers2024-04-27

If this page is used as your own blog or space, you can do it according to your preferences. But if you are doing it for the enterprise, you must first communicate with the company, what kind of style the enterprise needs, and then do it, and the satisfaction of the enterprise is the satisfaction of the web page you do. I want to make my own web page. >>>More

11 answers2024-04-27

There are 60 seconds in a minute, and at the speed of a newscaster, 4 5 words per second, 240 to 300 words can be said in a minute. Extrapolating back, when we usually speak and introduce ourselves, the number of words we speak in 1 minute is usually less than the above number of words, so that the audience (everyone) can hear it more clearly and understandably. In terms of specific content, it is usually "what am I called, what am I doing (occupation), and where do I live (city)", and there is not much content further down. >>>More

7 answers2024-04-27

You can't count on the other side for this question.

But have you done your part? Give the other person the respect and understanding they deserve, communicate well with him, and tolerate with love. If you have worked hard and paid yourself, and the other party doesn't care about you, it means that you haven't met the right person. >>>More

16 answers2024-04-27

The fate of husband and wife is difficult to repair, not to mention that you still have children, since his family does not cooperate with you, you don't want their help, you just work hard with your children, maybe there will be a turnaround, if you give up now, one day you will regret it, as long as you do your best, I believe there will be good results, I think people do not deceive, in the future he will be good, you will have a sincere good person for you, have a true heart, how can you see the rainbow without experiencing wind and rain, only tested love is the most beautiful, I bless you, sincerity, gold and stone for the opening.