代码搜索:SWAP
找到约 10,000 项符合「SWAP」的源代码
代码结果 10,000
www.eeworm.com/read/197407/7998303
h swap.h
#ifndef Swap_
#define Swap_
template
inline void Swap(T& a, T& b)
{// Swap a and b.
T temp = a; a = b; b = temp;
}
#endif
www.eeworm.com/read/296805/8076340
htm swap.htm
/* swap.c */
#include <stdio.h>
void swap(int* x, int* y) {
int temp = *x;
*x = *y;
*y = temp;
}
int main() {
int i = 1, j = 2;
swap
www.eeworm.com/read/296805/8076352
c swap.c
/* swap.c */
#include
void swap(int* x, int* y)
{
int temp = *x;
*x = *y;
*y = temp;
}
int main()
{
int i = 1, j = 2;
swap(&i, &j);
printf("i == %d, j
www.eeworm.com/read/396882/8085342
cpp swap.cpp
// swap() does not swap the value of the arguments!
void swap( int v1, int v2 ) {
int tmp = v2;
v2 = v1;
v1 = tmp;
}
www.eeworm.com/read/396170/8121009
cpp swap.cpp
// swap() does not swap the value of the arguments!
void swap( int v1, int v2 ) {
int tmp = v2;
v2 = v1;
v1 = tmp;
}
www.eeworm.com/read/195697/8134959
vhd swap.vhd
www.eeworm.com/read/195697/8135020
vhd swap.vhd
www.eeworm.com/read/246674/12713563