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);
}
}