
C
水坚石青
CSDN社区博客专家,阿里云社区专家博主,华为云战略合作伙伴,创业者。
擅长数据仓库开发,小系统二次开发,数据分析,熟悉大数据基础知识等。
技术栈:Java+Python+Hadoop+Hive+Oracle+MySQL
展开
-
将数据从文件中读出并排序
#include #include void read();//显示排序之前的文件 void outfile();//输入到数组中 void sort(int a[], int n);//此处为冒泡排序 int main() { read(); outfile(); return 0; } void read() { printf("after of sort:原创 2017-08-24 17:04:28 · 5657 阅读 · 1 评论 -
将数据输入到文件中
#include #include void write();//声明函数 void read(); int main()//主函数 { write();//调用函数 read(); return 0; } void write()//实现函数 { FILE *fp;//文件指针 if((fp = fopen("F:\\Codes\\Codeblocks原创 2017-08-19 11:54:42 · 1175 阅读 · 0 评论 -
读取文件的内容
#include #include int main() { FILE *fp;//文件指针 char ch; if((fp = fopen("F:\\Codes\\Codeblocks\\C\\FileReading\\simple.txt","r"))==NULL)//文件的路径 { printf("Can not open原创 2017-08-13 11:18:10 · 436 阅读 · 1 评论 -
C's HelloWorld
#include //头文件 int main()//主函数 { printf("Hello World!\n");//输出 return 0;//返回值 }原创 2017-01-01 20:13:01 · 340 阅读 · 0 评论