I learned the C ++ history (2)

xiaoxiao2021-03-06  32

Another week has passed, my C learning has encountered a nail, a very simple function is realized, but I have to spend an afternoon, there is a problem everywhere. I feel that the compiler seems to have a hatred, as long as it is My code, don't change so ten times, I don't want to run. I see my mistakes in the forum, but I can't find it. I'm quietly thinking, I have no knowledge points that I have seen before I haven't digest it. , Cycle, pointer, self-thinking, can really be a semi-solving, I think so, this continues reading, thinking will become more and more chaotic, so I focus on consolidating the application of control statements this week. No, don't want to go, don't want to write beautiful code. In addition, the lack of mathematical knowledge is also exposed. In general, although the foundation is simple, but must not look at it, so mine C retract 50 sheets, back to the second time, and also went to the bookstore to buy this domestic C tutorial, although it is not as good as the authority of foreign books, but it is good, the focus is through the procedural knowledge point, and combination Look, learn this language, I think the problem is still going to discover, like learning mathematics, don't do the exercise, don't want to learn well, these are my experience, the following post, I have a question code, I have a problem code. Mainly to practice the control statement, and finally discuss two main ideas implementations .1. Require input an integer to do the upper bound, then list all the numbers within its scope (only 1 and itself), with two for Cycling completion. # Include using namespace std; int S, i, n; void main () {cout << "please tell me Your end" << Endl; CIN >> S; for (n = 1; N using namespace std; int S, i, n; void main () {cout << "please tell me your end" << Endl; CIN >> S; for n = 2; n #include #include void main () {int S; std :: COUT << "" plete tell me your end "<< std :: endl; std :: cin >> s; if (s <2) {std :: cout <<" nothing "; return;} std :: cout << "2"; for (int N = 3; n <= s;

转载请注明原文地址:https://www.9cbs.com/read-55184.html

New Post(0)