Data structure 2-24/06/52

วันอังคารที่ 30 มิถุนายน พ.ศ. 2552

Array and record
ประโยชน์ที่ได้รับจากการเรียนวิชาโครงสร้างข้อมูลครั้งที่ 2
1.ทราบความหมายของ Array การทำงานของ Array และวิธีการ
2.ทราบถึงการส่งการทำงานของ Array โดยฟังก์ชั่นและ โปรแกรม
3.ทราบถึงวิธีการประกาศฟังก์ชั่นของ Array ในรูปแบบ โครงสร้าง
4.วิธีการดำเนินการของ Array มิติเดียวและ Array หลายมิติ
5.ทราบถึงความสัมพันธ์ระหว่าง Array และ Record ชนิดโครงสร้าง

ตัวอย่าง ของ Structure เกี่ยวกับประวัติของนักศึกษา
#include"stdio.h"
main()
{
struct number
{
int i;
int a;
}num;
struct date
{
int day;
int month;
int year;
};
struct student
{
long id;
char name[40];
char lastname[40];
int age;
struct date birthday;
float score;
}std;

{
printf("Enter number of studnet: ");
scanf("%d",&num.a);

for(num.i=0;num.i<num.a;num.i++)
{
printf("Student Data\n",num.i+1);
printf("ID = ");
scanf("%d",&std.id);
printf("Enter your name : ");
scanf("%s",&std.name);
printf("Enter your lastname : ");
scanf("%s",&std.lastname);
printf("Enter your age : ");
scanf("%d",&std.age);
printf("Date of birth : ");
scanf("%d",&std.birthday.day);
printf("month of birth : ");
scanf("%d",&std.birthday.month);
printf("Year of birht : ");
scanf("%d",&std.birthday.year);
printf("Enter your Score : ");
scanf("%f",&std.score);

printf("Display Data of student \n");
printf("ID : %.d\n",std.id);
printf("Name : %s\n",std.name);
printf("Lastname : %s\n",std.lastname);
printf("Age : %d\n",std.age);
printf("birthday : %d-%d-%d\n",std.birthday.day,std.birthday.month,std.birthday.year);
printf("Score : %.2f\n",std.score);
}
}
}

Data structure 1-17/06/52


Introduction
ประโยชน์ที่ได้รับจากการเรียนวิชาโครงสร้างข้อมูลครั้งที่ 1
1.ได้ทราบถึงความหมายของ Data structure
2.ได้ทราบถึงประเภทของ Data structure
3.สามารถนำข้อมูลไปแทนในหน่วยความจำหลักได้
4.ได้ทราบขั้นตอนวิธีการทำอัลกอลิทึม


ประวัติส่วนตัว

วันจันทร์ที่ 29 มิถุนายน พ.ศ. 2552