代码搜索:SWAP
找到约 10,000 项符合「SWAP」的源代码
代码结果 10,000
www.eeworm.com/read/148785/12426256
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/250059/12437377
class swap.class
www.eeworm.com/read/250059/12437385
java swap.java
public class Swap
{
public static void main(String[] args)
{
int a=222;
int b=666;
System.out.println("a="+a);
System.out.println("b="+b);
int c
www.eeworm.com/read/132141/14107055
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/132141/14107691
cpp swap.cpp
// exchange values of two elements
#include
#include "swap.h"
void main(void)
{
int a = 2, b = 3;
Swap(a,b);
cout
www.eeworm.com/read/231684/14223546
vhd swap.vhd
www.eeworm.com/read/231684/14223609
vhd swap.vhd
www.eeworm.com/read/129013/14269632
vhd swap.vhd
www.eeworm.com/read/230855/14271768
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;
}