代码搜索结果

找到约 10,000 项符合 S 的代码

counter.js

function s_rep(s, o, n) { var i = s.indexOf(o), l = n.length > 0 ? n.length : 1; while (s && i >= 0) { s = s.substring(0, i) + n + s.substring(i + o.length);

counter.js

function s_rep(s, o, n) { var i = s.indexOf(o), l = n.length > 0 ? n.length : 1; while (s && i >= 0) { s = s.substring(0, i) + n + s.substring(i + o.length);

missionariesandcannibals.java

public class MissionariesAndCannibals { static boolean already[][][] = new boolean[4][][]; static State pred[][][] = new State[4][][]; static int d[][][] = new int[4][][]; static int inf

gpscontroller.cpp

// // Copyright (c) Microsoft Corporation. All rights reserved. // // // Use of this sample source code is subject to the terms of the Microsoft // license agreement under which you licensed thi

halvol.lst

C51 COMPILER V8.01 HALVOL 04/17/2008 09:46:20 PAGE 1 C51 COMPILER V8.01, COMPILATION OF MODULE HALVOL OBJECT MODULE PLACED IN

1374.cpp

#include #include void main() { double x1,y1,x2,y2,x3,y3; while(scanf("%lf%lf%lf%lf%lf%lf",&x1,&y1,&x2,&y2,&x3,&y3)==6){ double a=sqrt((x1-x2)*(x1-x2)+(y1-y2)*(y1-

string_add.cpp

/* * This file contains code from "C++ Primer, Fourth Edition", by Stanley B. * Lippman, Jose Lajoie, and Barbara E. Moo, and is covered under the * copyright and warranty notices given in that

string_add.cpp

/* * This file contains code from "C++ Primer, Fourth Edition", by Stanley B. * Lippman, Jose Lajoie, and Barbara E. Moo, and is covered under the * copyright and warranty notices given in that