c課程描述
⑴ 求課程描述英文翻譯——程序設計(C++)
C + + is an efficient and practical programming language, it can process change program design, can also be carried out in the face of the object program design, and easier to learn than C (such as I/O flow, annotation, quote, heavy ty, etc.), and object-oriented part more emphasis on the support of senior abstract. Through this course, students are required to master c + + program design language of the basic knowledge, in the face of the object the basic concept, the program design of the basic methods and ideas, including data types, expression, all kinds of basic statement, molarized program design, algorithms, and can comprehensive application of these knowledge to solve practical problems of simple, and at the same time, raises the student good programming ability and rigorous logic thinking ability.
⑵ c語言的課程有什麼,具體
基本數據類型和基本運算
函數,數組,字元串,指針
預處理命令
結構體,枚舉
文件操作,內存操作
⑶ c語言課程的總結
多讀多積累,對學習語言課程會有幫助。多寫多說,也會有好的學習效果。總之,要多下功夫。要敢於開口多說,不要不好意思。當有人指出自己的不足之處時,要虛心接受,這樣有利於不斷提高語言能力。
⑷ c語言課程設計的介紹
《c語言課程設計》是清華大學出版社2009-7-1出版的圖書,作者是王新,孫雷。本書是一本實踐型教材,書中從實用的角度出發,結合具體的應用實例,將c語言程序設計中使用的基本數據結構、演算法和技巧進行了綜合,並對如何運用C語言進行繪圖做了介紹,有助於進一步提高學生程序設計能力。全書共分三個部分:基本數據結構應用,綜合應用,圖形界面部分;共有12個訓練題目。
⑸ c語言課程設計理念
這是什麼題目?怎麼回答呢,han
⑹ C語言課程設計大綱
有些復雜
⑺ 英語形容課程的形容詞(以c開頭)
cool/courful/creative/cute/common/complementary/changeable//changingchallenging/competitive/charming
酷/有聲有色/創造性/可愛/普通/令補的/經常變動/經常變動/富挑戰性/比賽的/迷人的
挑挑看吧
⑻ C++,編寫一個類描述課程(課程編號、名稱、學時、學分)。要求實現課程類的構造函
#if defined(UNICODE) || defined(_UNICODE)
#define TEXT(n) L##n
#else
#define TEXT(n) n
#endif
class Course
{
private:
int m_nID;//編號
int m_nHour;//學時
int m_nCredit;//學分
string m_strName;//名稱
public:
Course(int = -1,int = 0,int = 0,string = TEXT(""));
Course(const Course&);
public:
Course& operator=(Course&);
friend bool operator==(const Course&,const Course&);
friend bool operator<(const Course&,const Course&);
friend bool operator>(const Course&,const Course&);
friend istream& operator<<(istream&,Course&);
friend ostream& operator>>(ostream&,Course&);
public:
/*其他方法*/
};
Course::Course(int nID,int nHour,int nCredit,string strName):/
m_nID(nID),m_nHour(nHour),m_nCredit(nCredit),m_strName(strName)
{
}
Course::Course(const Course& course)
:m_nID(course.m_nID),m_nHour(course.m_nHour)
,m_nCredit(course.m_nCredit),m_strName(course.m_strName)
{
}
Course& Course::operator=(Course& course)
:m_nID(course.m_nID),m_nHour(course.m_nHour)
,m_nCredit(course.m_nCredit),m_strName(course.m_strName)
{
return *this;
}
bool operator==(const Course& course1,const Course& course2)
{
return course1.m_nHour == course2.m_nHour;
}
bool operator<(const Course& course1,const Course& course2)
{
return course1.m_nHour < course2.m_nHour;
}
bool operator>(const Course& course1,const Course& course2)
{
return course1.m_nHour > course2.m_nHour;
}
istream& operator<<(istream& input,Course& course)
{
input<<TEXT("編號")<<course.m_nID;
input<<TEXT("學時")<<course.m_nHour;
input<<TEXT("學分")<<course.m_nCredit;
input<<TEXT("名稱")<<course.m_strName;
input<<endl;
return input;
}
ostream& operator>>(ostream& output,Course& course)
{
output>>TEXT("編號")>>course.m_nID;
output>>TEXT("學時")>>course.m_nHour;
output>>TEXT("學分")>>course.m_nCredit;
output>>TEXT("名稱")>>course.m_strName;
output>>endl;
return output;
}
⑼ C語言課程
#include <stdio.h>
int fweekDay(); //尋找日期是星期幾
void weekDay(); //輸出星期幾,功能1
void printMon(int j); //列印月日歷,功能2
void printYear(); //列印年日歷,功能3
int mDays(int year,int mon); //求xxxx年xx月的天數
int y,m,d; //分別代表年,月,日
void main()
{
int choose=1,i;
char ch;
while(choose!=4 || 'Y'!=ch)
{
ch='n';
printf("******************************\n");
printf(" 1.查詢某年某月某日是星期幾\n");
printf(" 2.列印某年的某月的全月日歷\n");
printf(" 3.列印某年的全年日歷\n");
printf(" 4.退出\n");
printf("******************************\n");
printf("請選擇(1~5):");
scanf("%d",&choose);
switch(choose)
{
case 1:
weekDay();
break;
case 2:
printMon(1);
break;
case 3:
printYear();
break;
default:
printf("是否真的要退出?(Y/N)");
fflush(stdin);
scanf("%c",&ch);
fflush(stdin);
break;
}
}
}
void weekDay()
{
int week;
char ch='y';
while('Y'==ch || 'y'==ch)
{
printf("請輸入年月日(xxxx.xx.xx)\n");
scanf("%d.%d.%d",&y,&m,&d);
if(1==m)
{
m=13;
y=y-1;
}
if(2==m)
{
m=14;
y=y-1;
}
week=(d+2*m+3*(m+1)/5+y+y/4-y/100+y/400)%7;
switch(week)
{
case 0:
printf("星期一 ");
break;
case 1:
printf("星期二 ");
break;
case 2:
printf("星期三 ");
break;
case 3:
printf("星期四 ");
break;
case 4:
printf("星期五 ");
break;
case 5:
printf("星期六 ");
break;
case 6:
printf("星期日 ");
break;
default:
break;
}
printf("\n是否繼續?(輸入y/Y繼續):");
fflush(stdin);
scanf("%c",&ch);
fflush(stdin);
}
printf("\n");
}
void printMon(int judge)
{
int i,j,num;
int week;
int days; //天數
char ch='y';
while(('Y'==ch || 'y'==ch))
{
if(1==judge)
{
printf("請輸入要列印的年月(xxxx.xx)\n");
scanf("%d.%d",&y,&m);
}
printf("SUN\tMON\tTUE\tWED\tTHU\tFRI\tSAT\n");
d=1;
week=fweekDay();
days=mDays(y,m);
if(6==week)
week=-1;
for(j=0;j<=week;j++)
printf("\t");
for(i=0;i<days;i++)
{
printf("%d\t",i+1);
if((i+2+week)%7==0)
printf("\n");
}
if(1==judge)
{
printf("\n是否繼續?(輸入y/Y繼續):");
fflush(stdin);
scanf("%c",&ch);
fflush(stdin);
}
else
ch='N';
}
printf("\n");
}
int mDays(int year,int mon)
{
int days=0;
switch(mon)
{
case 1:
case 3:
case 5:
case 7:
case 8:
case 10:
case 12:
days=31;
break;
case 4:
case 6:
case 9:
case 11:
days=30;
break;
case 2:
if(year%400==0 || (year%4==0 && year%100!=0))
days=29;
else
days=28;
break;
default:
break;
}
return days;
}
int fweekDay()
{
int week,tm=m,ty=y;
if(1==m)
{
m=13;
y=y-1;
}
if(2==m)
{
m=14;
y=y-1;
}
week=(d+2*m+3*(m+1)/5+y+y/4-y/100+y/400)%7;
y=ty;
m=tm;
return week;
}
void printYear()
{
int i;
char ch='y';
while('Y'==ch || 'y'==ch)
{
printf("請輸入要列印的年月(xxxx)\n");
scanf("%d",&y);
for(i=1;i<13;i++)
{
m=i;
printf("第%d個月:\n",i);
printMon(0);
}
printf("\n是否繼續?(輸入y/Y繼續):");
fflush(stdin);
scanf("%c",&ch);
fflush(stdin);
}
}