摘要: getsgets、scanf和getchar之间的区别1、 gets函数读取数据时,接受的数据包括数据和回车符。即:读取数据后输入流没有输入 操作动作。2、 scanf函数读取数据时,接受的数据只有数据,不包括回车符。即:读取数据后输入流 还存在回车符操作动作。3、 getchar函数读取一个字符数... 阅读全文
posted @ 2015-06-05 18:16 Vmetrio 阅读(4062) 评论(0) 推荐(0)
摘要: 1 #define MAXSIZE 100 //MAXSIZE 为线性表可能的最大长度 2 #include 3 #include 4 using namespace std; 5 typedef int ElemType; 6 typedef struct 7 8 { 9 ElemType data[MAXSIZE]; 10 ... 阅读全文
posted @ 2015-06-05 18:05 Vmetrio 阅读(183) 评论(0) 推荐(0)
摘要: C语言字符串函数大全函数名: stpcpy功 能: 拷贝一个字符串到另一个用 法: char *stpcpy(char *destin, char *source);程序例: 1 #include 2 3 #include 4 5 6 7 int main(void) 8 9 {10... 阅读全文
posted @ 2015-06-05 18:02 Vmetrio 阅读(487) 评论(0) 推荐(0)
摘要: Problem DescriptionEddy usually writes articles ,but he likes mixing the English letter uses, for example "computer science" is written frequently "co... 阅读全文
posted @ 2015-06-05 17:38 Vmetrio 阅读(509) 评论(0) 推荐(0)
摘要: DescriptionIgnatius likes to write words in reverse way. Given a single line of text which is written by Ignatius, you should reverse all the words an... 阅读全文
posted @ 2015-06-05 17:32 Vmetrio 阅读(206) 评论(0) 推荐(0)