C Language Blog Job--one or two-dimensional array

Source: Internet
Author: User

First, the PTA Experiment Assignment 1: The number of occurrences in the integer sequence of the most occurrences of 1. PTA Submission List

2. Design Ideas

3. Code

4. Problems encountered in debugging process and PTA Submission List situation description.
    • In the beginning, I want to determine whether each number in the group is between 0 and 9, if it is, count+1, and then store count in the b[] array, but this is too cumbersome and it is difficult to achieve a comparison after the count of counting into the b[] array, has not been done, Later asked the students thinking, in the array inside the comparison size and calculation will be written quickly.

      Topic 2: Array looping left shifted by 1. PTA Submission List



      2. Design Ideas

      3. Code

      4. Problems encountered in debugging process and PTA Submission List situation description.

    • Beginning to think of the number of the back and the previous number of exchanges, but the exchange of half after the original number of changes in the other half, and then think of the array positioning A[m+n] will be changed to the number of changes to the back, and then normal exchange of the previous number, but the answer is not correct, and finally changed to the simplest output, not change is right.

      Topic 3:1. PTA Submission List
2. Design Ideas 3. Code 4. The debugging process encountered problems and PTA submission list situation. Second, this week's topic set PTA Final ranking. PTA Rankings

Third, peer code peer review 1. Peer evaluation of the names of students
    • Liang Caiyu

      2. My Code, mutual evaluation of the student code
3. Where do I differ from my classmates ' code? What are the advantages? What style of code do you prefer? If the classmate code is wrong, please help to point out where the problem. Iv. Study Summary of the Week 1. What did you learn? How do I store strings in 1.1 C?
    • Use character array, char str[] = "Hello";

      1.2 What is the end flag of a string and why do you want to end the flag?
    • String End flag: ' + '
    • Use end flag ' \ s ' to avoid displaying a bunch of irrelevant characters later

      1.3 What are the methods for string input?
    • Initialize array: char str[80]= "Happy";
    • Assignment method: Char s[80]; S[0]= ' a '; s[1]= ' + ';
    • Input method: Char s[80]; while ((s[]=getchar ())! = ' \ n) '; i++; s[i]= ' + ';

      1.4 Numeric characters How to turn an integer, write a pseudo-code?

      1.5 16 binary, binary string how do I turn 10 binary? Write pseudo-code?

    • 16 Binary conversion to decimal
    • Binary conversion to Decimal

      2. This week's content, you are not what?
    • The use of the array this week is not very good, a variety of sorting method is still very confused not to understand
    • The hexadecimal conversion is messy, because there are letters and numbers that do not understand the numerical size

      3. Midterm Summary 3.1 Why do you think you didn't do well?
    • Programming is still weak, the final programming question score is very low
    • Bit operation is not very, hexadecimal will not, like a question answer is 1e-15, I will only use POW to calculate
    • The timing is not good, the paper has not been finished, there is a problem with programming problems at all. There is a problem in the conversion of the choice to do a quick 10 minutes, although it is done right but after the finish still feel wasted so much time.

      3.2 List the wrong questions.

Please select the question, fill in the blanks, change the wrong question, the programming question to give a question to explain why wrong, how to change?

3.3 How to adjust the C study in the second half semester
    • Multi-programming, troublesome problems or such as the operation of the problem, do not understand that do not want to face, it has been confused! I will slowly correct this mistake, will not be in time to consult the information, to understand it
    • As far as I am concerned, the problem I have done is still to be seen frequently, that is to say, I will properly recite the problem, the question is that the back will remember it.

C Language Blog Job--one or two-dimensional array

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.