C-Language Questionnaire survey

Source: Internet
Author: User

1 What is your plan for your future? What preparations have been made?

Game industry or entrepreneurship, learn about IT industry knowledge

2 What do you think is learning? What's the use of learning? What is the motivation for learning now? Why?

Learning is absorbing new knowledge to enrich yourself. The role of learning is to increase knowledge to understand more things. Now learn the motivation of interest, because can meet their interests and hobbies.

3 Do you feel that you are doing something more successful? What's your experience?

4 What do you think of software engineering as a major? What kind of expectations do you have for yourself in studying this profession?

Learning software Development Learning Code Knowledge Understanding IT industry. Ability to master C language

5 How did you learn C language? (Homework, experiment, textbook, others), so far estimate how many lines of code have you written? 、

After class, review and buy textbooks to do exercises

What are the experiences and lessons of 6 C language learning?

7 Where did programming help you in addition to exams and experiments?

Fun

8 learned C language, you divide the array pointer, pointer array, function pointer, pointer function these concepts?

1. An array pointer is a constant pointer. 2. An array of pointers represents an irregular array. 3. The function pointer indicates that the return value of the function is an address. The 4 pointer function represents the address of the function.

9 learned C language, do you understand the difference between the file and the stream and contact? How do I differentiate between text files and binaries? How do I programmatically manipulate these two files?

A file is a direct read in a file without input, and a stream means that we are going to do the input on the keyboard. The distinction does not know. Use the fopen function to fight the corresponding file corresponding to the Operation table operation.

10 learned C language, do you know what is process-oriented? What is the way it solves the problem?

In Set order

11 What is a module in C language? Have you ever written a program for multiple source files?

function, now 10 several.

12 learned C language, do you know what is "high cohesion, low coupling"? How does this principle apply to high-quality programming?

Don't understand

13 learned C, how do you copy the contents of array A into array B? How do I find the integer array A in 5? How do I sort an integer array a (small to large, from large to small)? Write the appropriate program.

The contents of array A are copied into array b

void Cpy (DataType a[], DataType b[]) {

if (sizeof (a)/sizeof (DataType) >sizeof (a)/sizeof (DataType)) {

Pinrtf ("B array has insufficient capacity, press any key to return");

GetChar ();

return;

}//IF the short program to determine if the B array is smaller than the A array

int n=sizeof (a)/sizeof (DataType);

for (int i=0;i<n/2;i++) {

B[i]=a[i];

B[N-I-1] = a[n-i-1];

}

B[i] = a[i];//This sentence array is an odd number of large hours 2/n+1 the problem of no value.

}//cpy

Integer array A has no 5 (binary lookup)

void Find (DataType a[]) {

int bj=0;

int n=sizeof (a)/sizeof (DataType);

for (int i=0;i<n/2;i++) {

if (a[i]==5) {

Bj=1;

Brack

}

if (a[n-1-i]==5) {

Bj=1;

Brack

}

if (I==N/2) {

if (a[i++]==5) {

Bj=1;brack;

}

        

}//if

}

if (bj==1)

printf ("OK");

Else

printf ("no");

}

Merge sort

void Merge (DataType a[],int p,int q,int r) {

int n1,n2,i,j,k=0;

DataType l[q-p+2],r[r-q+1];

N1=q-p+1;n2=r-q,

for (i=0;i<n1;i++)

L[i]=a[p+i];

for (i=0;i<n2;i++)

R[I]=A[Q+I+1];

l[n1]=10000; r[n2]=10000;

j=0;i=0;

for (k=p;k<=r;k++) {

if (L[i]<=r[j]) {

A[k]=l[i];

i++;

}//if

else{

A[K]=R[J];

j + +;

}//esle

}//for

 

 
}

void Merge_sort (int a[],int p,int r) {

int q;

if (p<r) {

q= (P+R)/2;

Merge_sort (A,P,Q);

Merge_sort (A,Q+1,R);

Merge (A,p,q,r);
}

}

14 Do you know what a breakpoint is? Give an example of your own debug program.

int x=1;

x=~x;//to set the symbol for a breakpoint

Execute the program at this time. The program pauses to x=~x and displays the X value in the Dubug window.

15 Do you have any problems or puzzles in your current study of C language or other professional courses?

Data structures and algorithms

C-Language Questionnaire survey

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.