132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for wiggles

I have to write a computer program to play connect 4 against a human player by friday. I have no clue even where to start on this. I have already written the game, i just dont know what to do about the computer player. Please Help me!!! p.s. What is …

Software Development c++ programming-construct
Member Avatar for Narue
0
2K
Member Avatar for skelly16

HI All I have a script which counts how many times a job has failed. For some reason my echo $list wont work in a variable, it works if i dont put it in a variable, but i need this in a variable so i can do a grep -c …

Software Development shell-scripting
Member Avatar for eggi
0
163
Member Avatar for daviddoria

I keep getting this error: this application has failed to start because MFC80.dll was not found. In the past, when I've got this error i've played around with "Runtime library", switching it from /MDd to /MD to /MTd......etc etc then I turn off and on the manifest files then I …

Software Development c++
Member Avatar for daviddoria
0
105
Member Avatar for Impact4ever

Hey I need some with help this... I'm writing a script that will display, "date and time, how much memory and HD is used, plus display the type of processor info and temperature of the CPU". Then redirect the output back into the script. I found everything what the teacher …

Software Development shell-scripting
Member Avatar for eggi
0
63
Member Avatar for msnider9

Here is my code package prg420.week5; //Creates the package import java.util.*; class Grades { //Creates the class for the variables private double grade1; private double grade2; private double grade3; private double grade4; private double grade5; public void setGrade1(double val) { grade1 = val; } public void setGrade2(double val) { grade2 …

Software Development java
Member Avatar for KimJack
0
92
Member Avatar for swaret

Hi all! i write because ive a little problem with a c++ binary tree. I wrote all the cose, and the program runs, but i have a dubt: the destructor and the copy constructor. i wrote in 3 files: nodo.h, albero.h and albero.cpp (nodo means node, albero means tree) [code] …

Software Development c++
Member Avatar for swaret
0
129
Member Avatar for leroi green

hey all, i've got a new issue with a program that allows the user to enter a number and then that number is checked against a random number that the PC chooses. Here's the code: [code] Private Sub xCalcButton_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles xCalcButton.Click 'show the …

Software Development vb.net
Member Avatar for Jx_Man
0
69
Member Avatar for vishwajit

Hi Can anyone help on how to add passwords to already created users non-interactively in shell script. Passwords will be stored in one text file. Script should automatically take passwords from file. Thanks in Advance Vishwajit

Software Development shell-scripting
Member Avatar for eggi
0
92
Member Avatar for Jimbo43

Hey, all. I'm writing a progam that uses Binary search trees to create a game similar to the 20 questions game. Unfortunately, I'm not quite sure how the code works completely. I think it should probably have recursion in it somewhere as we just got done covering that, but I …

Software Development python
Member Avatar for Jimbo43
0
2K
Member Avatar for octavia

what kind of variable is UINT anyway..........? in VC++ Anyone can help me? I still cann't understand it's detail usage. :-/ :icon_question:

Software Development c++
Member Avatar for Narue
0
329
Member Avatar for buvnut

hi there i was wondering if any1 could help me with this problem. i am a beginner at c++ and my coursework is asking me to create a program with a hash function and i am lost! could any1 tell me how to implement this? here is my problem - …

Software Development c++ data-structure linked-list
Member Avatar for Narue
0
110
Member Avatar for KimJack

Hello All, I really hope that someone can provide some assistance. I have read a XML file into my hashtable. Next I created a second hashtable. If a key is located in my first hashtable, I want that key along with its value to be inserted into the second hashtable. …

Software Development java xml
Member Avatar for KimJack
0
103
Member Avatar for farifari

can anyone tell me how to make exe file with VB.net, including i hav excel file linked with VB.net????? PLZ plz plz plz send me the whole process to make exe file in VB.net

Software Development vb.net
Member Avatar for Jx_Man
0
69
Member Avatar for kharri5

Hello again, I posted before about reading values from a delimited text file into a class with string properties, and then jamming that class into a dynamic array. It turns out that reading from the text file (which will be updated and contain about 500 lines to start) is a …

Software Development visual-basic
Member Avatar for yarfangor
0
547
Member Avatar for RatherBeInVegas

I have a program that provides different responses each time it is ran. I created it via an empty project and the output is simple cout statements to the DOS window. Is there a way to convert a C++ program I created into an Windows application that displays output and …

Software Development c++
Member Avatar for William Hemsworth
0
107
Member Avatar for kelvin_b

Hello people, I'm new here and new to java also... My only programming experience is in C, but now I have to do some work in java. First, the problem is: My input is an image file that contains different routes from a source to destination. (I have attached the …

Software Development java
Member Avatar for Ezzaral
0
91
Member Avatar for msnider9

I am not sure how to fix this problem. I am trying to pause the display after the first 15 lines until the array ends. /* Week 4 Individual * Programmer: Melissa Snider * Date: 4/6/2008 * Calculate the mortgage payment for 3 loans with an array */ package prg420.week4; …

Software Development display java
Member Avatar for Ezzaral
0
97
Member Avatar for Adila

Hi, Could someone point out ways on how I could reload the frame? so far, what I've done : [code]int more = JOptionPane.YES_OPTION; more = JOptionPane.showConfirmDialog(null, "BOOOoooM!!! Would you like to play again?", "", JOptionPane.YES_NO_OPTION); if(more == JOptionPane.YES_OPTION){ myFrame.setVisible(true); } else{ myFrame.setVisible(false); } [/code] I'm not sure what I should …

Software Development java
Member Avatar for Ezzaral
0
156
Member Avatar for daviddoria

I seem to be able to write as many characters as I want into "buffer" even though I declare it as length 1 - why is this? [code] string teststring = "teststring"; cout << teststring << endl; char buffer[1]; itoa(34567,buffer,10); teststring.append(buffer); cout << teststring << endl; [/code] Thanks! Dave

Software Development c++
Member Avatar for Narue
0
114
Member Avatar for emilio

hello i am trying to figure out the output of this specific code [CODE]int main() { int i , parent_id , ans ; parent_id = getpid() ; for ( i = 1 ; i <= 5 ; i++ ) { if ( getpid() == parent_id ) { ans = fork() …

Software Development c
Member Avatar for emilio
0
481
Member Avatar for sjgriffiths

Hello char **pOutData; /* Output results */ char *ptoken I have a pointer which contains the following hdjhasdjkhasd;stephenjohnson;647823463;dhasdjhaj I want to work through and get out just stephenjohnson I have the following so far, which does not work....any help? [code=c] for ( size = 0; size < b2b_data_drill_nNoSelect; size++ ) …

Software Development c
Member Avatar for Ancient Dragon
0
147
Member Avatar for alrjr79

I'm trying to create a simple macro that changes header name. Example: header name: vcom#, run macro will change to itemnumber. I want the macro to check the first row for vcom# and change it. The header vcom# will never be in the same cell, it will vary worksheet to …

Software Development visual-basic
Member Avatar for alrjr79
0
288
Member Avatar for timdog345

I need to use a for loop to print out the odd numbers between 25 - 1. program2 1) I also need to use a for loop to prompt user to input two intergers: firstNumber and secondNumber (firstNumber must be less then secondNumber) 2) Outputs all odd numbers between firstNumber …

Software Development c++
Member Avatar for hammerhead
0
126
Member Avatar for Sky Diploma

Hi all, I am currently working on a program which tests whether 2 numbers multiplied produces a PALINDROME. An example of a palindrome is 16461 which can be read same from both ways hence i devised a test. [CODE=cplusplus]#include <iostream> #include <string> using namespace std; char pali(char orig[100]); int main() …

Software Development c++
Member Avatar for Sky Diploma
0
164
Member Avatar for SonxQ7

Hi all, new here so have 1 question... Am wondering this forum has a section for Windows Programming discussions

Software Development api c windows-api
Member Avatar for Ancient Dragon
0
88
Member Avatar for melystar

Hello, I'm still getting the hang of coding (just started a few weeks ago) so this may seem like a daft question. I keep on getting three errors when I run my code: ode_functions.c f:\ode_functions.c(41) : error C2296: '^' : illegal, left operand has type 'double' f:\ode_functions.c(41) : error C2297: …

Software Development c
Member Avatar for Nick Evan
0
183
Member Avatar for SpnIslander

Hi All, Pls help to correct my code below. how the Else statement work? i can't get the correct answer it's alway the IF statement is evaluated.tks. Private Sub txtPrice_Change() Dim intVal As Integer If Val(txtQty.Text) >= 0 Then lblVal.Caption = Val(txtPrice.Text) Else lblVal.Caption = Val(txtQty.Text) * Val(txtPrice.Text) End If …

Software Development visual-basic
Member Avatar for venkatramasamy
0
97
Member Avatar for eng.atia

Hi all, I want a valuable book that illustarte OOP concepts in C#. I hope that the book I'm looking for deep more in OOP concepts.

Software Development c# oop
Member Avatar for seka208
0
80
Member Avatar for allialli

i am having problems with this assignment : Write a program that prints an N by N box on the screen as follows: Please enter a number between 2 and 10: 5 ----- | | | | | | ----- Press any key to continue . . . Note that …

Software Development c++
Member Avatar for WonderWomen204
0
101
Member Avatar for lianaconda

What's the best way to swap two arrays? Would it be better to copy each position into a new array and then assign the array a new name? Or would it be better to use pointers? What would the algorithm be if I were to use pointers or a dynamically …

Software Development algorithm c++
Member Avatar for dougy83
0
117
Member Avatar for DevC++4.9.9.2

Hey, im trying to use pointers with a struct. I am having an issue in the function searchData. I can not get the pointer to compair with the string, it is still just compairing the actual adress or something else. Not sure if i even passed it right. Please help …

Software Development c c# c++
Member Avatar for VernonDozier
0
166
Member Avatar for big_B

I've created simple WindowsApplication project with one additional windwos form named Form2. On default form I added button named button1. And added this code [CODE]using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; using System.Threading; namespace WindowsApplication1 { public partial class Form1 : Form { …

Software Development
Member Avatar for big_B
0
387
Member Avatar for a_iyer20

Hello, After having a list created from objects of a certain Class. I wish to sort the contents. How do I do this? This is my case: _bkgList = new ArrayList(); for(int i = 0; i<10; i++){ BookingResponse bkngRes = new BookingResponse(); bkngRes.setAwbNum(awbNum); bkngRes.setOrigin(origin); _bkgList.add(bkngRes); } As you can see, …

Software Development java
Member Avatar for a_iyer20
0
129
Member Avatar for Divya123

can anyone help me regarding this issue. i have got few textfiles and i need to get all those textfiles displayed in a grid one after the other immediatly when i click a button.. thanks in advance Divya

Software Development vb.net
Member Avatar for Jx_Man
0
71
Member Avatar for binnaman

this is what I have so far. I did most of the work just that my output is screwed [code=cplusplus] #include <iostream> #include <fstream> #include <stack> #include <cmath> #include <cassert> using namespace std; int number(); bool Valid( stack<int> s, int row){// This will find out if there is a valid …

Software Development c++
Member Avatar for Nick Evan
0
146
Member Avatar for null_guy

Elo guys, i have trying to develop a client/server application! i'm new with sockets, so i'm trying to learn from existing source codes. I have come accros a piece of code: public static void main(String args[]) { // validate parameters: if (args.length != 2) { System.err.println("Usage: java GameClient <host> <friend_port>"); …

Software Development client-server java open-source
Member Avatar for null_guy
0
115
Member Avatar for knight fyre

I just finished up the final touches on my C Project (at least I hope that's the last of them). Anyway, it's due Friday (10% of my overall grade) and I'd like to have some quick feedback (constructive criticisms and complements) before I had it in. It was suppose to …

Software Development c
Member Avatar for jephthah
0
122
Member Avatar for allialli

I have another assignment for class that I am having some difficulties with. I seem to be able to write the program, except for the fact that it keeps looping over and over and I'm not quite sure how to stop this. Could anyone please help?? Thanks! This is the …

Software Development c++
Member Avatar for WonderWomen204
0
117
Member Avatar for fredmac

This suppose to be a simple coin toss program that tells when the coin is fliped it reads heads or tails and this is wat i got so far #include <stdio.h> int example (int h,int t ); int main() { int x1, x2; int x; printf(" Enter 5 to run …

Software Development c c# c++
Member Avatar for jephthah
0
203
Member Avatar for msantosh18

can any help me how to create a database and its table in the run time of an application. i need to create new tables also and also specified columns in the table with some record. the application should ask the user to specify the file path also.. help needed …

Software Development visual-basic
Member Avatar for QVeen72
0
544
Member Avatar for andyx181x

hello there, i need some help as my teacher gave us a very vague example on random number code and i'm stuck on doing my assigned homework. the assignment is to have three text boxes, generate random numbers between 1-10, and afterwards both automatically added together. so one text displays …

Software Development visual-basic
Member Avatar for Jx_Man
0
144
Member Avatar for Sh13

I am trying to add values that I read from input file using fscanf. There are 15 float values that were read from .txt file. Im copying some of the code here [code=c] #define MAX 15 for (i = 0; i < MAX; i++) { fscanf(ifp, "%f", array[i].miles); } [/code] …

Software Development c
Member Avatar for Sh13
0
119
Member Avatar for Cbeginner_us

This is a question for all people who know about Digital Communications, coding and decoding. Please I need to know how can I implement a (24,12) Golay Code in C. ( if you cant help me with the Golay code, I need to know about any block codes). Thank you.

Software Development c
Member Avatar for Cbeginner_us
0
203
Member Avatar for JoBe

Hi ladies and gents, Wanted to ask a simple question probably for you guys and the answer will maybe be simple aswell, but, I thought, what the heck, I'll go for it :) It just seems strange that when everyone tells to use <iostream> instead of <iostream.h>, <cstdlib> instead of …

Software Development c++
Member Avatar for Ancient Dragon
0
348
Member Avatar for l2u

Hello I'd like to have a list of ints inside my vector.. I tried to do the following: [CODE]private static Vector<List<int>> getCombMatrix() {[/CODE] But it will give me error: Syntax error on token "int", Dimensions expected after this token However, this works okay: [CODE]private static Vector<int[]> getCombMatrix() {[/CODE] What am …

Software Development java
Member Avatar for bugmenot
0
218
Member Avatar for Shakis

im writing a personal program thats storing scores. The layout is done using Tkinter using labels buttons and entry widgets, however, because there are a lot of entry widgets needing created i just stuck their creation in a loop, [code] for m in range(1,10): self.input_score = Entry(frame,width=6) self.input_score.grid(column=5, row=m) [/code] …

Software Development python tkinter
Member Avatar for Shakis
0
80
Member Avatar for WonderWomen204

Would anyone be able to help me with this assignment. I pretty much almost got it, but I'm still stuck. Here is the assignment: Write a program that asks the user for two integers; call them num1 and num2. Make sure the number is between 1 and 9 (including 1 …

Software Development c++
Member Avatar for Ancient Dragon
0
105
Member Avatar for mikky05v

Ok i need a program that finds the greatest common divisor of two integers. 1) if A/B is 0 then B is the greatest common divisor 2) if A/B is not 0 then plug B into A and the remainder into B 3) repeat the process I have to use …

Software Development c++
Member Avatar for tymk
0
92
Member Avatar for crackers

Im only new to python but im trying to write a code that will allow me to randomly generate a number between 1 & 15, I know that part is import random def main(): number=random.randrange(15) + 1 But im not sure where I need to go to from here to …

Software Development python
Member Avatar for crackers
0
156
Member Avatar for Black Magic

Hi, i was just wondering how i could do this, Say if i made a char array, password, could i change the input to *'s as soon as the user entered them without seeing normal char's Thanks.

Software Development c++
Member Avatar for dougy83
0
83

The End.