I m a beginner at C, and I copied a program that couldn t have been easier

Updated on technology 2024-02-09
13 answers
  1. Anonymous users2024-02-05

    There are no bugs in this program It may be that you are not proficient in using your programming software. Did you use it? If so, you can create a new text document.

    Change the suffix txt to . cpp directly click to open, enter this program into it and it can run.

  2. Anonymous users2024-02-04

    Namespace is missing.

    Changed to. #include

    void main ()

    std::cout <<"hello, world!";

    Or. #include

    using namespace std ;

    void main ()

    cout <<"hello, world!";

    If it doesn't work, change it.

    #include

    using namespace std ;

    int main ()

    cout <<"hello, world!";

    return 0 ;

  3. Anonymous users2024-02-03

    The file name suffix is. cpp you are not done. c up?? What compiler do you use?

  4. Anonymous users2024-02-02

    After learning the basics of C++, you can do some small projects, and when you are doing projects, you will find that you often do not learn enough, and you will encounter all kinds of problems, and find ways to solve them.

  5. Anonymous users2024-02-01

    Go to the Internet to find some practical projects and try to write your own programs.

  6. Anonymous users2024-01-31

    《c++primer》

    There is an "encyclopedia of C++", which is a must-have for C++ programmers. The description of grammar and semantics is very detailed and rigorous, suitable for C and C++ programmers with certain experience to use as a reference book and theoretical guide, but because it has a certain depth and no advanced chapter arrangement, it is not suitable for beginners to use as a textbook, ** slightly higher.

    essential c++》

    A work by Lippman for beginners. After he had written the latter primer, why did he write such a thin and shallow book? In fact, Primer is too cumbersome for beginners, but this book explains the language from different aspects - the essence and organizational structure of C++, which can help beginners have a general understanding of the language, but the scope of knowledge is not very comprehensive, it is not suitable for systematic learning, and readers need some programming knowledge.

  7. Anonymous users2024-01-30

    The book is a C++ tutorial edited by Tan Haoqiang.

  8. Anonymous users2024-01-29

    C++Primer C++ Programming Principles and Practices These two are good.

  9. Anonymous users2024-01-28

    I have an electronic version of the C++ books for each stage, the primary C++ primer is good, the content is detailed and complete, and the systematic explanation of C++ grammar knowledge, and then "C++ Meditations" and "C++ High-quality Programming" is a qualitative improvement, this is the grammar mystery stage of the book, after reading these C++ has a solid foundation, if you want, give me an email and I will send it to you.

  10. Anonymous users2024-01-27

    Yes, go find the C++ tutorial edited by Tan Haoqiang.

  11. Anonymous users2024-01-26

    There are many C++ tutorials on the market, but for beginners, most of them are not suitable as teaching materials, but more like a reference book, and generally foreign books are better than those written in China. Here, I recommend a Chinese translation, "Principles and Practice of C++ Programming" written by Bjarne Stroustrup, the father of C++, Huazhang Books, Machinery Industry Press, if you can't find it, it is recommended to buy a copy online.

    If you emphasize that you are a beginner, then you should read this book even more.

  12. Anonymous users2024-01-25

    As a person who has come before, it is strongly recommended not to use domestic books, but to use good foreign books. The book list accumulated in the process of using it is mainly divided into basic C++ introduction, language skills, low-level, STL, boost, design patterns, and algorithms; Applications for Windows, Linux Unix. These books go from basic to difficult, you choose to read them.

    Remember, be sure to type on the ** on the book while reading.

  13. Anonymous users2024-01-24

    Start with the basics, Tan Haoqiang's C++ is good, good books must not be read only once, at least more than 3 times, C++ is better learned, you can learn MFC, there are a lot of this things, you can refer to Sun Xin's visual C++ video to see, he explained the MFC operation process in detail. In fact, I personally think that if you know the C++ syntax, you should spend more time learning algorithms and data structures, which are the soul of the program, which is also a reflection of the level of the programmer, and you can master the syntax by writing more programs.

Related questions
16 answers2024-02-09

I advise you not to buy one or two hundred practice pianos, my experience tells me that kind of guitar can hinder people's practice and will also make your interest wane. >>>More

7 answers2024-02-09

Hehe, I'm playing guard and small front.

I don't know what position you're going to play. >>>More

3 answers2024-02-09

Your first one is not a loop statement.

private sub form_click()if i = 0 then >>>More

5 answers2024-02-09

For beginners, you can use liquid eyeliner with a hard nib, and then switch to a soft nib when you are proficient. >>>More

7 answers2024-02-09

Badminton Teaching Expert Pulse 15 - Full Court Movement Footwork.