2018 on the IEC computer high-level language (C) job 1th time Job

Source: Internet
Author: User

One, 1. After these weeks of study, summed up the learning experience and experience.

After these weeks of study, I feel that C language is not very easy to learn, because I just touch the computer language so in the teacher's lectures when the listening is not too understanding. Then I will go through the course of learning materials and online to find information to learn what the teacher said in class, I found that when I seriously to learn the language, it is not as I have just begun to contact it as difficult to learn, I began to understand the teacher in the classroom knowledge, I began to slowly like the computer language.

Second, study and work encountered problems and solve the process.

Question 1: I don't understand the meaning of%f and%d at first.

Solution: By asking the teacher and reading the material yourself understand that%f is a class number that represents float in floating-point numbers, its valid number is 6 bits, and%d represents a type of double, and its valid number is 15 bits.

Question 2: Just started listening to the teacher to give a count of the time I did not understand

Solution: After class by asking the teacher after the teacher for me to explain the number of 59%10 to get 9, through the teacher's explanation let me suddenly enlightened.

Issue 3: There was a problem writing a program in class

Solution: Through the teacher's careful looking for errors, finally found that the original is my int main's main hit wrong, I was very impressed with the matter.

Third, PTA operations

1 #include <stdio.h>


int main ()
{
int a,b,c;
scanf ("%d%d", &a,&b);
C=a;
A=b;
B=c;
printf ("a=%d b=%d\n", A, b);
return 0;
}

.

2. #include <stdio.h>


int main ()
{
int A, b, c,sum;
scanf ("%d%d%d", &a, &b, &c);
sum = a + B + C;
printf ("sum=%d\n", sum);
return 0;
}

3#include <stdio.h>

int main ()

{
int D;
scanf ("%d", &d);
if ((d >= 1) && (d <= 5))
{
D = d+2;
printf ("%d", d);
}else if (d>5 && d<=6)
{
D = 1;
printf ("%d", d);
}else if (d=7)
{
D= (d+2)%7;
printf ("%d", d);
}
return 0;
} ideas using if else the day after tomorrow is today plus two days

Four. Additional content

2018 on the IEC Computer Advanced language (C) job 1th time job

Related Article

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.