代码搜索:SWAP
找到约 10,000 项符合「SWAP」的源代码
代码结果 10,000
www.eeworm.com/read/374163/9418599
h swap.h
#define SWAP_FLAG_PREFER 0x8000 /* set if swap priority specified */
#define SWAP_FLAG_PRIO_MASK 0x7fff
#define SWAP_FLAG_PRIO_SHIFT 0
#define MAX_SWAPFILES 8
www.eeworm.com/read/177003/9477047
vhd swap.vhd
www.eeworm.com/read/177003/9477087
vhd swap.vhd
www.eeworm.com/read/176838/9482636
vhd swap.vhd
www.eeworm.com/read/372721/9496014
vhd swap.vhd
www.eeworm.com/read/372507/9507177
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/372507/9507216
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/372507/9507300
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/365319/9869808
m swap.m
function [out1, out2] = swap(in1,in2);
% SWAP swaps 2 variables.
%
% [a,b] = swap(a,b);
% cannot do it by reference ??
% See also DEAL, ...
% $Revision: 1.3 $ $Date: 2001/03/16 13:47:07 $
% Be