401 Topics
![]() | |
Hey, I'm writing a wheel of fortune game and trying to figure out how to make the game update what players turn it is. It is assumed that there is only three players, and the variable "int players = 1" is defined globally, so if I change it in the … | |
Hi all, I'm new to programming and I am currently taking an intro class that is requiring me to create Wheel of Fortune in c ++. I've made some decent head-way (I think), but I'm still far from getting this right. Here's what I have so far: *NOTE* The function … | |
Hey i'm doing a project, and i'm at the part where the user must enter a phrase or sentence and it must be compared to the phrase or sentence already imput to the computer via file. I'm asking a user to enter the sentence / phrase using cin.getline, but when … | |
Hello. I am making a wheel of fortune game and am getting stuck. This loop keeps repeating the first line "Incorrect input. You can only pick a vowel." Also, I can't get the phrase to read the vowel and say, "Sorry, this vowel was already revealed." If the vowel was … | |
I'm creating a Wheel of Fortune program, and I have just started. Currently I'm just trying to take a word from a file and transfer it into an array, and with that create an array with the same size, but full of asterisks (*'s). My class is making me use … | |
![]() | "A starved man wanders into the depths of a foreboding wilderness in the dark of the night with a shotgun. The only light is that which shines from the full moon casting shadows on the forest floor. Just as the young man crosses an opening in the foliage he sees … ![]() |
Hello to all, I have a question, I want to make something like puzzle pieces connecting together in a sequence and when all are in the right place the game will end. [img]http://img94.imageshack.us/img94/1557/36927129.png[/img] I want to use this image. The problem is that the space that the next piece must … | |
![]() | Hi everyone, Actually i'm learning C#, and i have an assignment, to program a 3x3 puzzle, that where you have 8 pieces and 1 free slot, so you can move the pieces and solve it. Our teacher told us it must be done with picture boxes. I've been doing some … ![]() |
I'm trying to read some input from a file and print it. I have three files: Main.cpp Sudoku.cpp Sudoku.h. For some reason the program will not print anything unless it's in the main function. If I print anything in one of the functions of Sudoku.cpp file and the use that … | |
Hi everybody. I decided to make an account here because I could use some help writing some code. This is what I need to do: Write a C program that will read in two lines of data. The first data line contains an integer N and the second data line … | |
Hi, well I need to do a program in Java that shows the solution of the famous game 8 puzzle (the object of the game is to place the tiles in their place with the less possible movements) So using the class Astar Given by our teacher we are asked … | |
I've posted this problem on several forums and no one has come up with the correct answer, but anyway here it goes: I've tried stringifying and querystring'ing the parameter but the Response error continues to be {"Message":"Object reference not set to an instance of an object.","StackTrace":" at ProvaReportLocale._Default.GetColumns() in \\ProvaReportLocale\\Default.aspx.cs:line … | |
Hi, Friends! I am doing my last year term project that needs me to use C and write a sudoku game. However, I don't know how to write the check part, can some of you help me a bit? Here is my code: [CODE]#include<stdio.h> #include<stdlib.h> #include<time.h> int x,y; int matrix[9][9], … | |
I'm trying to put a 2 dimensional array in a queue... How could I do that? #include<iostream> #include<queue> using namespace std; struct state { int puzzle[2][2]; }; int main() { state p; p.puzzle[0][0]=1; p.puzzle[0][1]=2; p.puzzle[0][2]=3; p.puzzle[1][0]=8; p.puzzle[1][1]=0; p.puzzle[1][2]=4; p.puzzle[2][0]=7; p.puzzle[2][1]=6; p.puzzle[2][2]=5; queue<int> Queue; Queue[front] = p; while(!Queue.empty()) { cout<<" "<<Queue.front()<<endl; … | |
Something that puzzles me in the following simple program: [CODE] #include <iostream> using namespace std; int main() { int row; cout << "enter row: "; cin >> row; int K[row], m[row][5]; cout << "Enter all the " << row << " K values:\n"; for (int i=0;i<row;i++) cin >> K[i]; cin.ignore(10,'\n'); … | |
Hi, I'm trying to make my own sokoban game in java. Sokoban is a top down 2D puzzle game where you move around a level trying to push boxes to the goal area in the least possible moves. I'm already pretty stuck at an early stage. My first objective it … | |
[CODE] 1. /* 2. * Program: Chapter 3 Lab 1 - Programming Project 8 on page 164 3. * 4. * This program caculates the solution to the cryptarithmetic 5. * puzzle TOO + TOO + TOO + TOO = GOOD where each letter represents 6. * a single digit … | |
Hello. I'm running Norton Internet Security 2009 on WinXp with SP3. Two days ago, I checked my Intrusion Prevention log on Norton and found the following enrty: An intrusion attempt by PAULSHP was blocked. Application path \DEVICE\HARDDISKVOLUME2\PROGRAM FILES\MOZILLA FIREFOX\FIREFOX.EXE Risk Name: HTTP Misleading Application Download Request Attacking Computer: PAULSHP (192.168.1.2,1219) … | |
I'm trying to solve a cryptarithmetic puzzle TOO + TOO + TOO + TOO = GOOD using a program. My solution to this, is to use a nested loop for each unique letter (in this case T, O, G, D). The loops would systematically assign the digits from 0-9 to … | |
hello, i need to do 15 puzzle algorithm in C as a part of my assignment.Can i please get help for this?? thanku, lucy. | |
Hi, I have abstract base class with some kids deriving from it. I want its kids to be concrete classes But I don't want to implement the all methods of the class. I'm trying to find a trick to go around doing this and I'm running out of thought on … | |
Okay, this puzzle the hell out of me. I've got 2 different sets of code, one which works, one which doesn't. They are both very similar, and I can't see what is causing the problem. Code that works: [CODE] public static void main(String[] args) { PropertyConfigurator.configure("log4j.properties"); new Settings().globalSettings(args[0]); logger.info("Read settings … | |
go0d day every0ne.. ..Can you please help me create a 'Picture Puzzle' using GUI.. its just like playing a picture puzzle like we d0, it just like this.. it has a pieces of scrambled pictures that you will arrange it.. it has a 0ne empty block to be able for … | |
hello every One.. ..can any0ne help me create a 'picture puzzle' using GUI.. OOP'. ..ur answerz r highLy apPrecited.. thankz have a nice day ahead' | |
Do you consider yourself to be fairly familiar with the [URL="http://www.debian.org"]Debian[/URL] Linux distribution? I thought I was familiar with it enough to know its origin and history, how its name was derived and that Richard Stallman, the Father of the [URL="http://www.fsf.org"]Free Software[/URL] movement, uses a Debian derivative ([URL="http://www.gnewsense.org/"]gNewSense[/URL]) for his … | |
| |
I started to do some reading about template, found interesting example [code] template <class T1, class T2> bool GetItUP (T1 a, T2 b) { return (a>b?a:b); } [/code] And the way to use it: [code] int _tmain(int argc, _TCHAR* argv[]) { int a = 20; float b = 23.90; GetItUP<int,float>(a,b); … | |
I am new to programming but when I took my class on Visual Basic it seemed so easy and I learned it so fast. It seemed like a giant puzzle. Now I am taking a introduction course to C++ and I cannot seem to grasp the material at all. When … | |
So, I'm working on a project for my Intro to Software Development course; it's a sudoku puzzle program. So far, I've encountered two big bugs: 1.) When I wrote the code in Visual C++, the display worked fine(it showed up on the screen as a normal puzzle), but when I … | |
Hi, am trying to Write a C++ program to create a data file with several attributes. Accept n person’s information and display the same. So far this is what I have tried to do. My chaalenge is how to read the command line ipnut from the user to the file … | |
im a final year degree student in IT field... So i have to finish up my final year project... im interested do research on HCI and do research on games application... will u suggest me the issues or titles ??? | |
So im trying to write a code within an iframe that will hide the address bars page address. Example: [url]http://example.com/[/url] will be the ONLY thing in the address bar that shows regardless of page they are on. So if someone clicks to0 example.com/about.php it will only show example.com in the … | |
See the link ([URL="http://norvig.com/sudoku.html"]Solve Every Sudoku Puzzle[/URL] for fine description of logic of the code) I attach the top95.txt file of tough problems and the sudoku claimed toughest of all time by Finnish mathematician Arto Inkala ([URL="http://www.kristanix.com/sudokuepic/worlds-hardest-sudoku.php"]The Worlds Hardest Sudoku Puzzle[/URL]) Solving this was piece of cake for the code, … | |
Hi every Body ! I'm so happy that become members Daniweb and thanks for usefull subject's friends May be help me ?!! I want program code 8 puzzle with greedy search algorithm with Java Thanks[code][/code] | |
This is the error: [COLOR="Red"]Error1 Inconsistent accessibility: field type 'drag_and_lock_grid.Puzzlepiece[]' is less accessible than field 'drag_and_lock_grid.Game1.pieces' [/COLOR] This line is states the error: public Puzzlepiece[] pieces; This is my puzzle piece class: [CODE] class Puzzlepiece { private int id; private Vector2 position; private Vector2 previousPosition; private Boolean dragging; private Vector2 … | |
[I]Now, I may have bitten off a bit more than I can chew with this promised program for my pops, but I am confident, with time, I can puzzle out a solution with some help! Background Info: My father is a doctor responsible for monthly schedules, usually penciled painstakingly on … | |
Hello, This is my first post on DaniWeb and will probably not be the last so I hope I'm doing this right: I'm currently working on a Sudoku Solver that allows the user to type in the name of a Sudoku text file that looks like this: 6 8 . … | |
greetings,mates my first post...[a leetle nurvous ;) ] 4th sem is over, summer hols started, and so has the headache of summer homework. for the in-house summer training we have to do build some simple good userfriendly and useful application written in whatever language we may like, and the time … | |
ALl i need to find is the sum of digits of a given number until the sum becomes a single digit. (e.g. 12345=>1+2+3+4+5=15=>1+5=6).I have coded with some logic and i could able to find the sum til this part 12345=>1+2+3+4+5=15 but i couldn able to carry on after that plz … | |
Hello, I'm working at a 8 puzzle ([url]http://www.permadi.com/java/puzzle8/[/url]) i want to compare two arrays. after that I want to get a true or a false and then I want to implement a algorithm. my question is: why can I not use 2 different variables and display the interger values of … | |
Ok so, I'm new to allegro, and I'm trying to write my first Allegro problem. It's supposed to be one of those sliding puzzles with the one missing piece and you make the picture. My program worked fine when I was just outputting the background and the picture of the … | |
This is the last lab I have to deal with before the end of the semester and I'm stuck beyond reason it really is interesting though but...so many exams and I just can't figure it out 1.The program begins by displaying the following picture in a window labeled "Original Picture". … | |
Hi, I would just like to start off saying that I probably don't know enough to be even asking this question but I am pretty good at taking examples and working with them to produce the results I am looking for. So, here is a little bit of information about … | |
I"m trying to make a [URL="en.wikipedia.org/wiki/Sudoku"]sudoku[/URL] puzzle generator (or at least the basics of one) for my project. I'm approaching this by dividing the sudoku grid into 9 rows. Each of the rows will be represented by a list and each list will have 9 elements to represent the nine … | |
Hi, I have to do a project on Sudoku. I am finished generating the complete board. Now my major task is to generate a puzzle out of the complete board with the difficulty level. Can some one give me clue to remove the elements randomly from the board. Later on … | |
![]() | Hey, guys, to begin with, I'm a complete newbie to C and I'm writing a Knight Tour program. The idea of my program is to check every possible way (it is necessary for the assignment), so I start with x + 1 & y + 2 and so on. If … |
how would i get the file below to display the number of moves by adding an output statement after the call to move() in main() to display the value of moveNumber, which will be the number of the last move. Thanks! [code] #include <iostream> #include <iomanip> #include "timer.h" using namespace … | |
Name: Sabrina Nickname: Sæd (Danish for semen (wont explain)) Height: 164 cm Weight: 45kg Hair: Brown/black Eyes: Brown Location: Denmark (Aarhus) / UAE (Dubai) Age: 19 Hobbies: Listening to music, drawing, working out, studying, spending time on my motorbike, building robots, ect. Relationship Status: Single / It's compliated Fav Music: … | |
hi i have a program here the 15 puzzle my problem is that im having a hard time makeing a random function the right way and also thinking of a way to make so that the program will not go out of the bounderies here my code [CODE]#include <stdio.h> void … | |
Hello everyone, I have to do programming to make a small, straightforward game operating over a LAN network. I think I should use Visual C++ and MFC libraries from Microsoft, because it's easy to learn and use. Dealing with some network programming concepts such as TCP, UDP and some Socket … |
The End.