132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for stevthym

Hi! I am working into the development of a C++ related Phone Management System where the request is to: 1. Input information of new subscriber: The program should input a line of data from the keyboard in the following format: <surname> <name> ! <telephone1> <mode> ! <telephone2> <mode> ! ...! …

Software Development c++ data-structure
Member Avatar for WaltP
0
257
Member Avatar for bo0ga

I'm very new to programming, so sorry if this is a dumb question. Is it possible to write a program that can view the source of a webpage and extract and re-write a certain part of the code? For example, I would want the program to view the source of …

Software Development java
Member Avatar for bo0ga
0
2K
Member Avatar for selfuser

**does anyone here know what is binaryformatter database? and how it works? Thank you friends**

Software Development
Member Avatar for selfuser
0
51
Member Avatar for Tackey

Please help me with my database connection. It says that I have an error with my Insert Statement. Imports System.Data.OleDb Public Class Form1 Private Sub btnAdd_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnAdd.Click Dim connection As OleDb.OleDbConnection Dim mydb, mystr As String Dim dateFiled = Date.Today Dim user …

Software Development open-source visual-basic
Member Avatar for QVeen72
0
212
Member Avatar for asadarun

Hi, I need a perl function that will check the following in a file, modify if only the first two columns match , and if not found in the file, insert the values. The file is like below **lookup.txt** InstanceName1::DomainName1::Server1 InstanceName1::DomainName2::Server2 InstanceName2::DomainName3::Server3 InstanceName2::DomainName4::Server3 ... ... The perl function needs to …

Software Development file-system perl
Member Avatar for asadarun
0
1K
Member Avatar for jaymayne

Its an exam question that wants to modify code so that the following output is generated 1 2 3 4 5 2 3 4 5 3 4 5 4 5 5 **This was the original code** #include<stdio.h> void main() { int i,j; for(i=1;i<5;i++) { for(j=1;j<=5;j++) { printf("%d",i); } printf("\n"); } …

Software Development c
Member Avatar for jaymayne
0
170
Member Avatar for oscargrower11

I just can't help but feel that there's a more efficient way to do this than with multiple calls to the string[i] operator. I've tried storing the results of string[i], but that leaves me with a char, which I'm evidently unable to compare. I know that I can compare a …

Software Development c++
Member Avatar for oscargrower11
0
183
Member Avatar for Z33shan

hello :) i'm looking for an algo to find out all possible combinations of a 2d array entries, wich are (Tasks x Processors). i.e, i have to find out all possible schedules to schedule tasks against processors. numbers of tasks and processors are variable. Suppose : ............P1.......P2.......P3 .................................... T1........3 ........6..........4 …

Software Development c++ motherboards-cpu-ram
Member Avatar for raptr_dflo
0
298
Member Avatar for jwill222

The language i'm trying to do this in is c++ let's say i have a number 123456 , i want to divide this up into partitions of two so i would have: 12,34,and 56. I want to add the partitions up and it would equal 102. How can this be …

Software Development algorithm c++
Member Avatar for raptr_dflo
0
2K
Member Avatar for HASHMI007

> My code Not working Why ???? there is some processor fault Error

Software Development c++
Member Avatar for raptr_dflo
0
142
Member Avatar for thinkerman

Purpose: Create a C++ class; use operators, overloading, member functions, friend functions, constructors and private data. • Make the data members private. (This means that the non-member functions below will have to be friends of the Data). • Create a member function called ‘set’ with the same arguments, and return …

Software Development c++
Member Avatar for raptr_dflo
0
105
Member Avatar for joankim

Learning Java, I have never used the keyword "this". So I am wondering when it is smart to use it. I know that it does prevent name conflicts: public class test { int x; int y; public test(int x, int y) { this.x = x; this.y = y; } } …

Software Development java
Member Avatar for devninja
0
282
Member Avatar for SgtMe

Hi all, I have a simple OpenGL program (learnt from NeHe of course) and I've tried to implement GLSL shaders into my program. Currently, its meant to draw a cube with a shader and quit on escape. However, at the line **`GLenum program = glCreateProgramObjectARB();`** it stops responding and closes. …

Software Development c++ image opengl
Member Avatar for TTTHXC
0
250
Member Avatar for minimee120

Problem 2. tttCheckMove() Write a function named tttCheckMove() that checks whether or not a TicTacMove is on an empty space on a TTT board. Input (two parameters): · Parameter 1: A string of 9 characters denoting the state of a TTT board. Each character in the string indicates the state …

Software Development python
Member Avatar for minimee120
0
183
Member Avatar for sonicx2218

So my java class is a joke, and we're expected to learn how to do our assignments via the web...I'm a hard worker, but I'm just not good at this. [Assignment pic](http://oi50.tinypic.com/aw3zx2.jpg) There's the assignment image. I think i got how to do the first part with the adding random …

Software Development java linked-list programming-construct
Member Avatar for sonicx2218
0
550
Member Avatar for swagen

package gui; import javax.swing.*; Import java.awt.event.*; import java.applet.Applet; public class FE extends Applet implements ActionListener { private JLabel lb = new JLabel("Enter text :"); private JTextField jtf1 = new JTextField(10); private JButton jb = new JButton("ENTER"); private JLabel lb2 = new JLabel(" "); public void init() { add(lb); add(jtf1); add(jb); …

Software Development gui java java-swing
Member Avatar for devninja
0
3K
Member Avatar for nuclear

Maybe I'm just missing something but I was thinking what do you call something like a Windows Form Application in Visual Studio where you can drag and drop and stuff like that. Do you call that an API or SDK or GUI or something else? By the way, as I …

Member Avatar for mike_2000_17
0
246
Member Avatar for yamigx

hi.. i am trying want to solve this Write a complete program that reads 11 integers from a file called ‘file.txt’ and stores them in an array. Your program should then remove the duplicated numbers, find and print the sum of all the even numbers in the array as well …

Software Development c
Member Avatar for TrustyTony
0
278
Member Avatar for pattmorter

I'm going over a practice exam right now and I've come across something I can't figure out. I understand what incrementing is but I just don't know why the answer is 0. //What is the value of a after the following code is run (int a=12). a += a -= …

Software Development c++ first-post
Member Avatar for VernonDozier
0
168
Member Avatar for vijaybrar

hi There please help me in these program because the character only moves 1 time but it must be like this input: abcd output: dabc then when i click forward again output cdab output: bcda output: abcd like this and also it must be in backward to when i click …

Software Development vb.net
Member Avatar for Reverend Jim
0
157
Member Avatar for bettybarnes

Hi I have a program in java that outputs 1000 hello world without using iterators (for, do while etc).. I tried to translate my code into vb.net and here's my code: `Module Module1 Sub Main() printToThousand(1) End Sub Public Function printToThousand(ByVal i As Integer) Dim r As Boolean Console.WriteLine("Hello World") …

Software Development vb.net
Member Avatar for Reverend Jim
0
86
Member Avatar for TrustyTony

Here slightly edited code from one of my earliest posts to DaniWeb. Limitted by recursion limit of Python as it uses recursion, but interesting for me.

Software Development python
Member Avatar for TrustyTony
0
1K
Member Avatar for FUTURECompEng

The output of the following line of code is: Not Done End boolean notDone = false; if (notDone = true) System.out.print("Not "); if( notDone = false) System.out.print("Done "); System.out.println("End"); The answer is false but I am having a hard time understanding why. Aren't the if statements setting notDone equal to …

Software Development java
Member Avatar for FUTURECompEng
0
271
Member Avatar for Valiantangel

Hi, how do i output a list,1-5 of the following factorial? #include <stdio.h> #include <stdlib.h> #define fact 5 int main(void) { int i,result=1; for (i=fact;i>=1;i--) result*=i; printf("factorial of (%d) = %d\n", fact, result); return(EXIT_SUCCESS); }

Software Development c
Member Avatar for TrustyTony
0
92
Member Avatar for NeoSyn

I'm not entirely sure how function work, and ive been trying different combos for a while.. Main: import pygame, motherWhale, scoreBoard pygame.init() def main(): global motherWhale global seaWorld global scoreBoard screen = pygame.display.set_mode((640, 480)) pygame.display.set_caption("Bubble Battle") background = pygame.Surface(screen.get_size()) background = background.convert() background.fill((255, 255, 255)) screen.blit(background, (0, 0)) motherwhale = …

Software Development python
Member Avatar for NeoSyn
0
737
Member Avatar for falek.marcin

I came across a problem that I can't solve and it's associated with multiprocessing and use it inside the decorator. When I'm calling the method **run_in_parallels** using multiprocessing I 'm getting the error: `Can't pickle <function run_testcase at 0x00000000027789C8>: it's not found as __main__.run_testcase` The call takes place inside the …

Software Development python
Member Avatar for falek.marcin
0
1K
Member Avatar for HungMob

I keep getting an error with the "ButtonListener." I don't know what it is that's causing it, but help would be appreciated. import javax.swing.JButton; import javax.swing.JFrame; import javax.swing.JPanel; import java.awt.*; import java.awt.event.*; import javax.swing.*; public class MovingCarPanel extends JPanel { private int delay = 2; private Car car; private Timer …

Software Development gui java java-swing
Member Avatar for DavidKroukamp
0
190
Member Avatar for khuzdaar

I made a program, hangman. And I am trying to complete it. I have succesfully been able to compare the input letter by all the characters of the word to be guessed (which is saved in an char array) and display it. But now, I can not figure out how …

Software Development c c# c++
Member Avatar for rubberman
0
523
Member Avatar for c#_fem

Hi, I have to create several services that have to use some sort of registry, to store and get data from. Also, services should have to communicate with each other, in order to exchange data, using the previously mentioned registry. Each service should be able to connect to the registry …

Software Development
Member Avatar for c#_fem
0
511
Member Avatar for khuzdaar

I have my project due of hangman and it is worrying me lately. I need to make a hangman game. I have studied arrays, functions, loops, if else statements. That is about it. I haven't done 2d arrays. Will do it now, because someone told me it is not possible …

Software Development c++
Member Avatar for khuzdaar
0
324
Member Avatar for Baduizm

I Have This Workers List: private List<Worker> buildWorkerList( Producer producer ) { List<Worker> workerList = new ArrayList<Worker>( 11 ); workerList.add( new WorkerImpl( "Garnett", producer ) ); workerList.add( new WorkerImpl( "Durant", producer ) ); workerList.add( new WorkerImpl( "Xavier", producer ) ); workerList.add( new WorkerImpl( "Daniel", producer ) ); workerList.add( new WorkerImpl( …

Software Development java
0
179
Member Avatar for mehnihma

I need Subversion server for eclipse and client which works on Mac, I need something free or a 30 day trial Do you have some idea? Thanks

Software Development client-server java
Member Avatar for ~s.o.s~
0
118
Member Avatar for RanbirSandhu

Hey frenz , I just made a console application in C#.NET as: using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ConsoleApplication2 { class Program { static void Main(string[] args) { List<int> rand = new List<int>(); rand = abc(); for (int i = 0; i < 10; i++) { Console.WriteLine(rand[i]); …

Software Development
Member Avatar for RanbirSandhu
0
156
Member Avatar for sahitya12

can any one help to create an dynamic (2*10) two dimensional array using new and delete? which ask user to enter the value and fill both row and column? I am able to create one dimensional but unable to create 2-D.

Software Development c++
Member Avatar for sahitya12
0
181
Member Avatar for king03

Hi there guys I need your suggestions. Do you know any system or game that is not that hard to program, like something that can be done for less than 3 weeks because I need it for my term project. thank you for those who will help out.

Software Development c c# c++
Member Avatar for thines01
0
118
Member Avatar for Afropuff01

So I'm using OpenGL for a game in java, but I'm stuck on an extremely confusing problem. Class: private class TitleBuilding { private double x1, y1, x2, y2; private double percentage, randValue=1; private byte windowType, numBuildings; private Random random2; private byte index; public TitleBuilding(double percentage,byte numBuildings,byte index) { this.percentage=percentage*.01; this.numBuildings=numBuildings; …

Software Development java opengl
Member Avatar for NormR1
0
154
Member Avatar for jhamill

Hey so this is my code for checking for palindromes...it compiles fine, the problem is it doesnt work. Basically I converted the four sentences into strings without spaces or other characters and added them to a new string called newstr....i used the newstr to check for a palindrome in the …

Software Development java mathematics
Member Avatar for NormR1
0
313
Member Avatar for DEAD TERMINATOR

I'm trying to write a method that displays the contents of a hashmap on screen. This hashmap contains Strings and an array of int for every String. I've put the String aspects of the hashmap into an arraylist and I'm trying to use another method to print the arrays for …

Software Development java programming-construct
Member Avatar for JamesCherrill
0
314
Member Avatar for trektrak

Ok, to be frank... I've just started java yesterday... after few months playing with web application programming (php/js) ... today... I'm building the most simple programming using java .. which is .. login system... username and password... Ok, to make it more usefull... eventho it is simple... I would like …

Software Development java
Member Avatar for trektrak
0
150
Member Avatar for dwlniles

// This is the error message I'm getting..C:\Program Files\Java\jdk1.6.0_25\bin>javac c:\java\Grade1.java // c:\java\Grade1.java:49: variable grades might not have been initialized // switch(grades) // ^ import java.util.Scanner; import java.text.*; import javax.swing.*; import java.util.*; import java.io.*; public class Grade1 { public static void main (String[] args) { String str, lgrade, studentName, courseName; int …

Software Development java java-swing
Member Avatar for zeroliken
0
257
Member Avatar for Gus_19

My textboxes and labels are fine in design view, but when I switch over to Debug or Build, a couple of the textboxes are pushed together and the labels aren't in their original spots. Haven't seen this before and was wondering if anyone has any suggestions as to why and …

Software Development vb.net
Member Avatar for Mitja Bonca
0
232
Member Avatar for TrustyTony

I would like to take string argument for class BalancedTrinary intializer, but the string type of argument is processed before it enters the init function. I guess I must override any class method which deals with those for int/long? def val(number_sequence, base): """ produce integer value of number_sequence as base …

Software Development oop python
Member Avatar for Gribouillis
0
277
Member Avatar for charmcity04

I am creating an program that allows a user to register for a conference. When I press the "Run" button in Netbeans I get a message saying "Build Successful," but the program does not show up on the screen. What am I missing in my code? I am new to …

Member Avatar for NormR1
0
2K
Member Avatar for choosenalpha

Greetings All, I have a brain fart. I am trying to print the first and second number in the array which is [0] and [1]. I have the for loop going through each element in the array integersCount[] so I can find those positions. But do I need an if …

Software Development java
Member Avatar for choosenalpha
0
209
Member Avatar for lfmconsummates

I currently have this login form in my python program with a submit button: <input type="text" class="input-small" placeholder="Email"> <input type="password" class="input-small" placeholder="Password"> and I have an sql database that has emails/logins/etc. How do I make it so the after pushing the submit button, the email/password is verified with the database …

Software Development python sql
Member Avatar for lfmconsummates
0
126
Member Avatar for Gus_19

Is there a way to check the x and y coordinates of a label in debug view?

Software Development vb.net
Member Avatar for adam_k
0
64
Member Avatar for jwill222

#include<iostream> using namespace std; int main() { int Partnumber[15] = {112,130,156,173,197,150,166,113,123,143,167,189,193,117,176}; int Quantitynumber[15] = {12,30,56,17,19,50,66,13,12,14,16,18,19,11,76}; int hashTable[19][2]; int collisions = 0; int index = 0; for(int i = 0; i<15;i++) { index = (Partnumber[i] % 19); hashTable[index] = Partnumber[i]; if (hashTable[index] != 0) { do{ index++ }while(hashTable[index]!=0) } if(index >= …

Software Development algorithm c++
Member Avatar for jwill222
0
614
Member Avatar for ManafShabbir

I am making a project for my final year, asp.net with vb.net ( Beginner ). i upload the file using the fileupload control of asp.net on the server. Now how will the client be able to download that file? Would appreciate help.

Software Development client-server vb.net
Member Avatar for ManafShabbir
0
107
Member Avatar for iPanda

I got this simple code: #include "stdio.h" #include "stdlib.h" #include "windows.h" int main(int argc, CHAR* argv[]) { HANDLE hFile = NULL; HANDLE hMapFile = NULL; LPBYTE fileView; hFile = CreateFile(argv[1],GENERIC_READ,FILE_SHARE_READ,NULL,OPEN_EXISTING,FILE_ATTRIBUTE_NORMAL,NULL); if(hFile == INVALID_HANDLE_VALUE) { printf("CreateFile function failed\n"); goto clean; } ***** hMapFile = (LPBYTE)CreateFileMapping(hFile,NULL,PAGE_READONLY,0,256,NULL);***** if(hMapFile == NULL) { printf("CreateFileMapping function …

Software Development c
Member Avatar for BobS0327
0
1K
Member Avatar for NickPatton

I've written a Rational Class that takes fractions and can add, subtract, multiply, divide etc. I'm trying to keep my fractions reduced but for some reason, some but not all of my fractions are being reduced. I've posted my code below. I commented the fractions that aren't being reduced as …

Software Development c++ mathematics
Member Avatar for NickPatton
0
1K

The End.