码迷,mamicode.com
首页 > 编程语言 > 详细

c语言作业

时间:2017-03-22 17:57:36      阅读:196      评论:0      收藏:0      [点我收藏+]

标签:stdio.h   com   .com   get   span   div   image   wap   技术分享   

#include<stdio.h>
#include<conio.h>
void swap(int *a,int *b)
{
    int t;
    t=*a;
    *a=*b;
    *b=t;
 }
 main()
 {
 void swap(int *a,int *b);
    int m,n;
    scanf("%d,%d",&m,&n);
    int *p1;
    int *p2;
    p1=&m;
    p2=&n;
    swap(p1,p2);
    printf("%d,%d",m,n);
    getch();

 


 }技术分享

c语言作业

标签:stdio.h   com   .com   get   span   div   image   wap   技术分享   

原文地址:http://www.cnblogs.com/lemonfk/p/6600988.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!