27 lines
565 B
C
27 lines
565 B
C
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
#include <string.h>
|
|
#include <stdbool.h>
|
|
|
|
#define swap(type, a, b) do {type tmp = a; a = b; b = tmp;} while(0)
|
|
typedef struct Teacher{
|
|
char name[100];
|
|
int age;
|
|
int gender; //0 male, 1 female
|
|
} Teacher;
|
|
|
|
int main(){
|
|
int n, m;
|
|
scanf("%d %d", &n, &m);
|
|
|
|
printf("You've typed %d, %d !\n", n, m);
|
|
printf("Now lets Swap Those Two \n");
|
|
swap(int, n, m);
|
|
printf("n = %d, m = %d \n", n, m);
|
|
printf("Now lets Swap Those Two \n");
|
|
swap(int, n, m);
|
|
printf("n = %d, m = %d \n", n, m);
|
|
vector<int>
|
|
return 0;
|
|
}
|