代码搜索:SWAP
找到约 10,000 项符合「SWAP」的源代码
代码结果 10,000
www.eeworm.com/read/124283/14581815
c swap.c
#include
#include
#include
#include
#define BASE_GSL_COMPLEX_LONG
#include "templates_on.h"
#include "swap_source.c"
#include "templ
www.eeworm.com/read/123847/14609987
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/221695/14728103
c swap.c
/*
* linux/mm/swap.c
*
* Copyright (C) 1991, 1992 Linus Torvalds
*/
/*
* This file should contain most things doing the swapping from/to disk.
* Started 18.12.91
*/
#include
www.eeworm.com/read/221571/14737283
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/220596/14795809
c swap.c
www.eeworm.com/read/220439/14800863
cpp swap.cpp
// Swap
// Demonstrates passing references to alter argument variables
#include
using namespace std;
void badSwap(int x, int y);
void goodSwap(int& x, int& y);
int main()
{
www.eeworm.com/read/120385/14804275
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/117921/14897241
h swap.h
/*
$Id: swap.h,v 1.1 1996/04/08 09:12:36 matt Exp $
Generic swapper function.
(c) Feb 1995 Matt Phillips.
*/
#ifndef _SWAP_H
#define _SWAP_H
template
inline void swap (T &e1, T &
www.eeworm.com/read/117121/14939541
h swap.h
template
inline void swap(Elem A[], int i, int j) {
Elem temp = A[i];
A[i] = A[j];
A[j] = temp;
}
www.eeworm.com/read/212047/15167905
c swap.c
#include
#include
#include
#define BASE_GSL_COMPLEX_LONG
#include "templates_on.h"
#include "swap_source.c"
#include "templates_off.h"
#undef BASE_GSL