- 博客(3)
- 收藏
- 关注
原创 传址和传值 没看懂 :(
void swap(int *a,int *b) 没看懂 :(#include <iostream>using namespace std;void swap(int *a,int *b){ int *t; t = a; a = b; b = t;}int main(){ int x=3,y=5; int *p=&x,*q=&y; swap(x,y); // 5 3 5 3 //swap(p,q);// 3 5 3 5 //swap..
2021-11-05 16:39:56
129
1
原创 C语言文件操作
fp=fopen("result.dat","w");//写的方式打开fprintf(fp,"%d=%d+%d\n",a,b,c);//写入result.datfclose(fp);
2021-10-31 16:56:20
243
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人