c Beginner, unable to compile the program.

Updated on technology 2024-04-18
9 answers
  1. Anonymous users2024-02-08

    #include

    #include""

    #include""

    void main()

    int t=1,f=1;

    float sum=0;

    dot+=2;

    f=-f;sum+=;

    while(fabs(>(1e-5));

    cout<<"Find 1-1 3+1 5-1 7......Until the absolute value of the last term is less than 1e-5"<

    include to"math"

    using namespace std;

    int main();No, you don't";"

    cout<<"Find 1-1 3+1 5-1 7......Until the absolute value of the last term is less than 1e-5"<1e-5));

    Cout "I'm also a new scholar, and there are some of them that I don't think I can change, hehe.

  2. Anonymous users2024-02-07

    Look at the extension of the file, whether it is c or cpp, and in addition, how can there be two main functions?

    If it doesn't work, create a new project and copy the contents of the file.

  3. Anonymous users2024-02-06

    My dear, you have 2 main functions in it, and you can only have one main! What do you want to achieve? And it's best to enclose {} when the function has multiple lines.

  4. Anonymous users2024-02-05

    It's equivalent to you writing a program, and then compiling and running it will generate an exe file, and Windows is such a similar thing, which can be simply regarded as a machine language (meaning that the computer can run it directly). Then the program you write is only a high-level language, which will not be understood by the machine, and will have to be compiled before it can be run. You can try to put the compiled and running exe file on a computer that does not have C++ or other platforms installed.

    Hope it works.

  5. Anonymous users2024-02-04

    Written C programs need to be compiled and linked before they can be run.

    Compilation requires a compiler, and the operating system itself does not have an integrated compiler.

    The installed operating system is compiled. You don't need a compiler to execute a program that's already compiled.

  6. Anonymous users2024-02-03

    Windows is just a system that is the platform on which the program runs. C or C++ is a high-level language, which cannot be executed, and needs to be compiled by compiling software before it can be executed.

  7. Anonymous users2024-02-02

    I think this is due to the nature of C C++, which is a high-level language, which does not correspond one-to-one to machine language, and must be compiled into machine language to run.

  8. Anonymous users2024-02-01

    In fact, you are confusing business issues with technical issues.

    First of all, Windows is not written in pure C language, it should be said that it is written in C-like language.

    Second, it's not that you can't run programs in C, and it's not that you don't have a compiler. Instead, running a custom C or C++ program is a feature, and the development cost of implementing this function is very high, and it is relatively small to sell.

    So in fact, C and C++ compilers are much more expensive than Windows. If the compiler cost is allocated to Windows, it will increase the ** of Windows.

    These are actually business strategies that take a long time to understand.

  9. Anonymous users2024-01-31

    The correct answer to this question should be option B.

    Option C is an incorrect answer.

    The reasons are as follows: 1. The compiler simply converts the source program written in the source language into the target program.

    2. Compilation is to turn a high-level language into a binary language that can be recognized by a computer.

    3. The compiler translates a source program into a target program The work process is divided into five stages: lexical analysis; grammatical analysis; semantic checking and intermediate generation; **Optimize; Target generation.

    Obviously, there is no step to run the output of the program during the compilation process, and the result of the compilation is to generate the object file (**).

    Therefore, option C is the wrong answer and option B is the correct answer.

    The compiled schematic is as follows:

Related questions
4 answers2024-04-18

Novice makeup first moisten**, first apply the foundation evenly to the face with your hands, then apply the BB cream to the face, then apply the double eyelid patch, choose your favorite color for the eyeshadow part, then apply blush, and finally set the makeup with loose powder. >>>More

7 answers2024-04-18

oral English More practice can achieve obvious results in a short period of time But once you stop, go back methods:Talk more Watch more English movies Cultivate language sense and English thinking Think about how to say a sentence in English Start with the simple.

18 answers2024-04-18

First of all, the defender, if a beginner has figured out their own positioning, then they can train with a purpose, and they can improve faster. The type of guard generally focuses on the ball control training of the left and right hands and the layup of the left and right hands, and the general training method is as follows: (the daily training time is not much, about an hour and a half can be completed, but the focus is on persistence, not how hard the training is). >>>More

15 answers2024-04-18

See below for learning methods:

When learning the basics, you can apply for some financial management courses, or you can learn the basics in the app of investor education. There are many ways to manage money: wealth management products, treasury bonds, time deposits, and investors can choose the right products according to their own circumstances. >>>More

11 answers2024-04-18

Don't take their word for it, the Johnson JD16 is the brand's problem model, you should know that the thinner the panel, the better the tone, okay? In order to improve the tone, Johnson produced a batch of problems with thin faces, which would bulge the top due to the pull of the strings over time, and there was a possibility of cracks ......So whether it's a physical store or **JD16, it's quite cheap. >>>More