代码搜索:SWAP
找到约 10,000 项符合「SWAP」的源代码
代码结果 10,000
www.eeworm.com/read/416714/11016979
cpp swap.cpp
#include "stlexam.h"
#pragma hdrstop
/**************************************************************************
*
* swap.cpp - Example program of swap algorithm. See Class Reference Section
*
www.eeworm.com/read/466825/7021054
vhd swap.vhd
www.eeworm.com/read/466829/7021095
vhd swap.vhd
www.eeworm.com/read/465928/7048978
class swap.class
www.eeworm.com/read/465928/7048980
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/459616/7270267
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/459616/7270581
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/454938/7381216
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/451715/7457751