132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for srk619

im looking for a python mud game example which i could see the coding and make my own mud, the thing is that im very new to mud if i was able to see an example of a game working then i would be able to understand what coding classes …

Software Development python
Member Avatar for ultimatebuster
0
799
Member Avatar for spacemandan

For my CS1 class we have to write a simple battleship game. I'm having trouble even knowing where to begin. After I get a basic skeleton of functions and classes I think I will know where to begin. We have to use the Zelle graphics.py module ANY help would be …

Software Development python
Member Avatar for ultimatebuster
0
89
Member Avatar for jnthn205

Hey guys. I have a tic tac toe game that plots random X's and O's on a 2d matrix array called theBoard[row][col]. I want to check to see if one X is placed on 1 spot, and if another point is plotted in the same spot, to check if it …

Software Development java
Member Avatar for jnthn205
0
4K
Member Avatar for Nicholas_Roge

[ ] I've got a working bootloader. Now I need to learn how to pass control from that bootloader to... Well, I'm really not sure how to do that. [ ] Once I have passed control out of the bootloader. How do I access the graphics driver? [ ] How …

Software Development assembly
Member Avatar for NotNull
0
159
Member Avatar for mjacqu3

I am taking a class on assembly language for intel based computers and for our final project we need to develop a simple game in assembly. For my project I need to make the console window bigger. I looked in the textbook and i cant find anything about resizing the …

Software Development assembly
Member Avatar for NotNull
0
89
Member Avatar for xfrolox

Well i want to make my prog more pro so is boardless and it has custom buttons like close - minimize and option btn i made that option btn so it appears another form boardless with options but you can see completely the first form. i want like when i …

Software Development html-css image vb.net
Member Avatar for xfrolox
0
135
Member Avatar for Privoxy

Morning People I seem to be having a pretty big issue with a buffer I have that is reading a text file and acting upon the results of the file, As of now, the buffer reads each token in the file, and stores each token into a variable, this is …

Software Development java java-swing open-source
Member Avatar for BestJewSinceJC
0
100
Member Avatar for BuhRock

I have to create a program that makes a lottery like game. My teacher wants me to use the constructor to initialize all the fields but I can't seem to get it to do that. Everytime I put the fields in the constructor initialized, I get compile errors. So right …

Software Development java
Member Avatar for BestJewSinceJC
0
195
Member Avatar for JavaGyrl

Hello! I am having a bit of difficulty calling a function in my class Image. The point of the class is to generate a 2D array of Color instances, then do various things with it. Within my test code, my editor simply will not allow me to call any methods …

Software Development java
Member Avatar for JavaGyrl
0
198
Member Avatar for thriek

ok I'm confused... my class is empty, apart from an inclusion file, but has alot of errors that i cant understand.... Here's the .h file: [CODE] #ifndef creator #define creator #include "stdafx.h" class creator { public: creator(); ~creator(); } #endif [/CODE] And here's the cpp file: [CODE] #include "creator.h" creator::creator() …

Software Development c++ visual-studio
Member Avatar for Nick Evan
0
12K
Member Avatar for Excizted

Hello :) I've got this resource (as in files on the pc) management system, that had been tested but now seems to be malfunctioning. I've been debugging for way too long now, and I can't figure out the issue. I'm going to post some of my code first, and then …

Software Development c++
Member Avatar for Excizted
0
719
Member Avatar for carrzkiss

Hello All; I would like to start off by saying hello, and that this is actually my first post to the group, even though I have been a member for many years. I am a ASP Classic Programmer, professionally for a little over a year, I have developed some rather …

Member Avatar for carrzkiss
0
725
Member Avatar for mmnewbee

Hi I,ve recently joined daniweb and was wondering if you guys might help me in writing a shellscript that automatically detects whether a flashdrive has been inserted into a usb port and recursively searches all folders deleting any .exe files it encounters. Thanx.

Software Development shell-scripting
Member Avatar for mmnewbee
0
73
Member Avatar for severman

hi all i'm trying to draw an oval/ellipse over an existing square the problem is that the oval is drawn behind the rectangle how do i fix this? here is my form's code [code] using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; …

Software Development image
Member Avatar for severman
0
172
Member Avatar for d3hartm1

Hello, I am looking for some code that would help me understand how to use SPSS in C#. Basically, what I need to do is open an SPSS file and save it in another format. If anyone could help me out with this, I'd greatly appreciate it. Thanks,

Software Development c#
Member Avatar for ddanbe
0
119
Member Avatar for FreddieMerqury

I am writing here, asking you for a little help. I have assignment in Java for my class in programming. I should create Java Applet and make animation. The animation should consist of several bouncing figures (balls, triangles, squares etc.) and when clicking on them different events should happen. One …

Software Development java
Member Avatar for Ezzaral
0
142
Member Avatar for ben1

The group has now been divided, my problem scenario is the following: There are 2 packing machines, which can pack any type of food, however this needs to be done one at a time. Each food type takes 10 secs to pack. The packing machines get the food from the …

Software Development java queue
Member Avatar for ben1
0
127
Member Avatar for sana zafar

Hey, I have to write a program using vectors that will input a list of positive integers terminated by a negative integer and output the unique numbers in the list in ascending order? Can anyone help me get started?

Software Development c++
Member Avatar for Excizted
0
152
Member Avatar for fantum

hello, [B]I have an assignment for my one class at school where I am supposed to write a program that creates lists of people who have met. Each line of input is a space-separated list of the names of people who have met. If a person is in a group …

Software Development c++
Member Avatar for Fbody
0
137
Member Avatar for jcao219

I personally prefer the 3 syntax over 2, but I notice most of the code snippets in this forum are for Python 2. Is it because we are still in a steady transition from 2 to 3, or is it something else?

Software Development python
Member Avatar for hondros
0
209
Member Avatar for riccardo-m

Hi, I have a circuit that charges a capacitor and discharges it. The length of the discharge pulse is supposed to be determined by the ADC value from a POT. The pot is wired as a voltage divider and I have tested that the voltage to the pic pin varies …

Software Development assembly
Member Avatar for riccardo-m
0
125
Member Avatar for Soren Werk

I'm getting started with Django on Windows. And the tutorial [URL="http://docs.djangoproject.com/en/dev/intro/tutorial01/"]http://docs.djangoproject.com/en/dev/intro/tutorial01/[/URL] has me running "python manage.py <command>" from a command promt all the time. But I'm wondering: Couldn't I run the manage.py commands from PythonWin or IDLE?

Software Development python python-django
Member Avatar for TrustyTony
0
117
Member Avatar for geekgirl2011

I am so lost in this programming assignment. Here is what I am suppose to do: A. Define a struct that represents a CAT as follows: A CAT has a weight, name, and a neutered flag, i.e., those are the components of the struct. Use a typedef. B. Declare a …

Software Development c
Member Avatar for jephthah
0
202
Member Avatar for fullyarmed

I have this Lab for a class that I am taking.. It works as it suppose to... The problem I am having is that if I enter more than 11 char it goes all crazy.. I don't want it to do that... [CODE] #include <iostream> #include <cstring> using namespace std; …

Software Development c c# c++
Member Avatar for fullyarmed
0
209
Member Avatar for lotrsimp12345

Here's my code. [CODE] (define L ()) (define (union L1 L2) ;continue until one list is empty (do() ((or (null? L1) (null? L2))) (cond ((<(car L1)(car L2)) (attach(car L1)(cdr L1)L2)) ((eq?(car L1)(car L2)) (attach(car L1)(cdr L1)(cdr L2))) (else(>(car L1)(car L2)) (attach(car L2)L1(cdr L2))) ) ) ;after which you continue to …

Software Development
0
71
Member Avatar for sana zafar

Hi all, I have to write a program that will input a string and convert the string to an integer value. The program should then output the integer value multiplied by 2. Also im not supposed to use any built in functions.Can anyone help me? Thanks a million! Sana Zafar

Software Development c++
Member Avatar for sana zafar
0
189
Member Avatar for riahc3

Hey I rather not use conio.h for cross compatibility so is there any way to make my own "conio.h" and just include it in my compilation. Thanks.

Software Development c
Member Avatar for jephthah
0
1K
Member Avatar for jeffrey o

I KEEP GETTING THESE TWO ERRORS: 1. error C2011: 'vehicle' : 'class' type redefinition 2.see declaration of 'vehicle' [CODE=c] #include <iostream> #include <string> #include "vehicle_imp.h" //IMPLEMENTATION vehicle::vehicle() { x = 0; y = 0; speed = 0; facing = 0; } void vehicle::turn(int facing) { facing=facing+90; if(facing==360) { facing=0; } …

Software Development c++
Member Avatar for Fbody
0
145
Member Avatar for LostnC

Hello everyone, I am trying to understand composition versus inheritance in C++. I have looked at many web pages, but I haven't found anything that makes sense to me. Can someone please tell me where I can find some examples of programs that might make sense to me? I am …

Software Development c c# c++
Member Avatar for mrnutty
0
206
Member Avatar for Jeronim

I saw few treads referring to this subject but I just can't get this working includs.cpp [CODE]#include <iostream> using namespace std;[/CODE] main.cpp [CODE]#include "includs.cpp" #include "ispis2.cpp" int main() { ispis(); system("pause"); }[/CODE] ispis2.cpp [CODE]void ispis(){ cout<<"tets file"<<endl; }[/CODE] After compiling this I always get the flowing error [CODE]error C2065: 'cout' …

Software Development c++
Member Avatar for corby
0
100
Member Avatar for jdpjtp910

Ok, I have a class project to basically design a program that handles classes and vehicles. What I have so far is far from the ending product. I have made 3 classes, car, vehicle, and motorcycle. Car and motorcycle are dervied from vehicle. The car class has a set const …

Software Development c++
Member Avatar for corby
0
123
Member Avatar for ippeb

Let's say "a" is a char and "b" a string. Why does it take longer to compute b+a than a+b? Strange, isn't it?

Software Development c++
Member Avatar for syd919
0
64
Member Avatar for ereruh

Hey. I'm pretty new to C# and programming overall. I'm trying to make a Hangman game. Let's say the user want to make a guess at the letter "t". Then he should just have to press "t" on his keyboard and the form should recognize it. I currently can't even …

Software Development
Member Avatar for ereruh
0
139
Member Avatar for bbrradd

I need to capitalize the first word of each sentence from a text file and make the rest lowercase. the text file looks like this: April 7, 2010! here is some TEST data to see if THE prOGRAm will work. "what do you know!" wiLL IT? anything with '.' '!' …

Software Development c++
Member Avatar for corby
0
1K
Member Avatar for teomurgi

Hi all, in a piece of code like this: [CODE] void Logger::logMsg( int msgLevel,const char* msg) { char input[strlen(msg)]; ... } [/CODE] is the input array dynamically allocated? In this case, do I have to use the delete [] in order not to have a memory leak? thank you!

Software Development c c# c++ motherboards-cpu-ram
Member Avatar for vmanes
0
342
Member Avatar for loadload

[CODE]#include <cstdlib> #include <iostream> using namespace std; int main(int argc, char *argv[]) { char a_char; int cu = 1; while (cu != -1) { cin>>a_char; cout<<"Is a digit!" << a_char << endl; } system("PAUSE"); return EXIT_SUCCESS; }[/CODE] When I input a132, the output is: [B]Is a digit!a Is a digit!1 …

Software Development c++
Member Avatar for tetron
0
123
Member Avatar for ITgirl2010

[code=syntax] #calculate the amout of tax due to the tax given income def calTax( income ): tax = 0 if income <25000: tax = income * 0.25 elif income > 25000 and income < 50000: tax = 25000 * 0.25 + (income - 25000) * 0.33 elif income > 50000: …

Software Development python
Member Avatar for JasonHippy
0
1K
Member Avatar for FinalDecap

This is probably a really stupid thing to ask considering the development I'm doing (effectivly creating a virus scanner), but how do I link classes/cpp files? I have 3 applications/sections that I can compile/combine with a makefile, that's fine, but I need them to run 1, 2, 3 once the …

Software Development c c# c++
Member Avatar for FinalDecap
0
221
Member Avatar for BillyMagnum

I'm new in the vb world(and these forums so please excuse me if i'm posting in the wrong area) and I've done some minor java stuff but I'm just not sure at all on arrays. I have to have the user input or select a flight number and my txtBoxes …

Software Development vb.net
Member Avatar for y2_sub
0
104
Member Avatar for hkBattousai

This sample code is from [URL="http://msdn.microsoft.com/en-us/library/aa287786%28VS.71%29.aspx"]MSDN[/URL]. [CODE]private string name; public string Name { get { return name; } set { name = value; } }[/CODE] I looked several examples, and they are the same. Why do we keep two different properties to store the name, namely "name" and "Name". I …

Software Development c c# c++
Member Avatar for hkBattousai
0
426
Member Avatar for thuyson

i have a combobox ,three textbox and one button.when user choose one item in combobox, textboxes and press button,i want to filter corresponding data and show on datagridview! Please help me! Thank u so much!

Software Development
Member Avatar for thuyson
0
85
Member Avatar for spetsnaz26

For example if I have this int type variable X that increment from 1 at the beginning to 10 when the program ends, how to open and write to 10 different files (data1.txt,data2.txt,data3.txt....) everytime X increments? I've tried with the following but it didn't work: [CODE]string filename ("data"); int X; …

Software Development c++
Member Avatar for spetsnaz26
0
255
Member Avatar for WeberGer

I need a good book to learn CAsyncSocket and Csocket. I want to explain in greater detail the functions and the author is an expert in the field. What do you recommend? thanks

Software Development c++ socket-programming
Member Avatar for WeberGer
0
152
Member Avatar for nitin2010

When I am going to modify hashtable data it is giving me the exception.`"Collection was modified; enumeration operation may not execute"` Here is the code.. foreach (DictionaryEntry Item in hashtable) { switch(Item.key.ToString()) { case "Color": { hashtable["Color"]="ffffff"; break; } case "Width": { hashtable["Width"]="40"; break; } } } My qustion is …

Software Development
Member Avatar for privatevoid
0
170
Member Avatar for cindy s

Hello guys......Cindy here I am trying to get my program working and I am getting really frustrated. I am writing this program to familiarise myself with arrays, methods & loops so i can improve my Java skills. Im not lazy guys and have tried searching yahoo ,answers, forums and google …

Software Development java
Member Avatar for Katana24
0
121
Member Avatar for lewashby

I'M reading the book "Beginning C# Game Programming by Ron Penton". The book is instucting me to create a small framework for a game, the problem is, the book was written for VS 2002 and I'M using VCs 2008 express. I'M instructed to add references to the project, two of …

Software Development assembly c c# c++ visual-studio
Member Avatar for Gospp
0
318
Member Avatar for macpac

Can someone help me with this please. [CODE]import java.util.Scanner; import java.text.NumberFormat; public class ChargeAccount { private int additional_charges; public int balance; private double min_payment; private int interest; private double new_balance; //initialise Charge Account public ChargeAccount(int previous_balance, int add_charges); { balance = previous_balance; additional_charges = add_charges; Scanner scan = new Scanner …

Software Development java
Member Avatar for moutanna
0
104
Member Avatar for Zat

I'm trying to write a program and am having some major issues. I've written a decent program but people are complaining about some of the cosmetic issues. I have very little experience with code (maybe 10 days of frustrating Internet research). Here A few issues that i have that keep …

Software Development microsoft-office vb.net
Member Avatar for vodkasoda
0
137
Member Avatar for Bold Eagle

I have two comboboxes the first one is for order #, the second one is for the amount of order payments, there could be 1, 2, 3... payments for this order. I would like to get all payments to show in the second combobox that relate to the order # …

Software Development vb.net
Member Avatar for Bold Eagle
0
216
Member Avatar for softdev

Hi Guys, I've noted that when using Netbeans, .jar file is created when you build your application. if i want executable jar file of my application, can i just take the same generated jar file, or should i create my own .jar via the command prompt. I mean whats the …

Software Development file-system java
Member Avatar for softdev
0
115

The End.