-
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.
-
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 ;
-
The file name suffix is. cpp you are not done. c up?? What compiler do you use?
-
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.
-
Go to the Internet to find some practical projects and try to write your own programs.
-
《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.
-
The book is a C++ tutorial edited by Tan Haoqiang.
-
C++Primer C++ Programming Principles and Practices These two are good.
-
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.
-
Yes, go find the C++ tutorial edited by Tan Haoqiang.
-
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.
-
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.
-
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.
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
Hehe, I'm playing guard and small front.
I don't know what position you're going to play. >>>More
Your first one is not a loop statement.
private sub form_click()if i = 0 then >>>More
For beginners, you can use liquid eyeliner with a hard nib, and then switch to a soft nib when you are proficient. >>>More
Badminton Teaching Expert Pulse 15 - Full Court Movement Footwork.