代码搜索:QUEENS
找到约 276 项符合「QUEENS」的源代码
代码结果 276
www.eeworm.com/read/361386/10055476
queens
/* A program to solve the 8-queens problem */
let
var N := 8
type intArray = array of int
var row := intArray [ N ] of 0
var col := intArray [ N ] of 0
var diag1 := intArray [N+
www.eeworm.com/read/190618/8440309
c queens.c
/*************************************************************
* This is a version of the queens benchmark that uses text graphics
* to display the solutions.
*/
#include "stdio.h"
#include "ter
www.eeworm.com/read/384854/8837228
exe queens.exe
www.eeworm.com/read/384854/8837254
c queens.c
www.eeworm.com/read/180383/9310639
cpp queens.cpp
#include
using namespace std;
class ChessBoard {
public:
ChessBoard(); // 8 x 8 chessboard;
ChessBoard(int); // n x n chessboard;
void findSolutions();
private:
www.eeworm.com/read/373028/9477595
java queens.java
import java.io.*;
class Queens {
final boolean available = true;
final int squares = 5, norm = squares - 1;
int[] positionInRow = new int[squares];
boolean[] column = new boolea
www.eeworm.com/read/166935/9988569
h queens.h
// Queen.h: interface for the CQueen class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_QUEEN_H__2BEA81EB_A554_43DF_94E5_44007FD1B7FB__INCLUDED_)
#
www.eeworm.com/read/166935/9988572
cpp queens.cpp
// Queen.cpp: implementation of the CQueen class.
//
//////////////////////////////////////////////////////////////////////
#include "stdafx.h"
#include
#include "stdlib.h"
#include
www.eeworm.com/read/361386/10055435
tig queens.tig
/* A program to solve the 8-queens problem */
let
var N := 8
type intArray = array of int
var row := intArray [ N ] of 0
var col := intArray [ N ] of 0
var diag1 := intArray [N+
www.eeworm.com/read/360848/10075294
java queens.java
import java.io.*;
class Queens {
private final boolean available = true;
private final int squares = 5, norm = squares - 1;
private int[] positionInRow = new int[squares];
priva