132,725 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for DJPlayer

problem is a little harder than I expected maybe b/c of the specifications of the problem. Help would be appreciated because I've turned this into a mess. Input is a command line argument representing int between 0 and 255 Output: convert string to binary and output as array of numbers …

Software Development algorithm c++
Member Avatar for cikara21
0
157
Member Avatar for jireh

I want to make a usercontrol which is a combobox but the dropdown will be a grid. So far this is my code and my problem is that the grid wont show. [code] Namespace myComboBox Public Class popUpComboBox Inherits System.Windows.Forms.ComboBox Protected Overrides Sub OnDropDown(ByVal e As System.EventArgs) Dim grid As …

Software Development vb.net
Member Avatar for Pgmer
0
363
Member Avatar for clutchkiller

When [code] using namespace std; [/code] are you able to overwrite it for a specific line e.g ios::app while using the fstream header? or does that mean i have to use std:: on everything else? thanks

Software Development c++ ios
Member Avatar for clutchkiller
0
82
Member Avatar for MrDiaz

Hello, I'm creating a subclass from an already defined class. Let's say I have a class called Student and it has a default constructor. Now I want to create a child class of Student, but when I create it, it seems that it's taking the constructor instead of the actual …

Software Development java
Member Avatar for MrDiaz
0
92
Member Avatar for murderotica

Hello there, I'm currently studying a bit of mail data manipulation and I am having trouble with the concept to importing mail data to windows forms. As what I research right now, FileContents and FileGroupDescriptor could be used. I've been googling this topic already and I haven't found any good …

Software Development
Member Avatar for murderotica
0
146
Member Avatar for ecullenlvr

Hi everyone. I am new to DaniWeb, so I hope I am doing this right. I need to make a few programs for one of my classes. I understand the concepts, but there are a few points I do not understand. My questions are below, and I will bold what …

Software Development c++
Member Avatar for vmanes
0
140
Member Avatar for scjohnny

i am a newbie someone know where can download C++ installer? can send me the website?

Software Development c++
Member Avatar for scjohnny
0
109
Member Avatar for k2k

I had a similar script in solaris and it had no problem. I wrote this one in freeBSD and it gave me strange output. Can anyone please tell me why? thanks a lot [code] #!/bin/sh #This is a shell script that checks file system capacity mounted on /home directory #If …

Software Development shell-scripting
Member Avatar for eggi
0
104
Member Avatar for atman

Hey guys., i wrote a little program to calculate the foreign exchange of canadian dollar to french frank. but when i validate an input(it has to be between 1 and a 1000), i get a problem even though it makes user to reenter the number, still the very first number …

Software Development c
Member Avatar for bionicseraph
0
159
Member Avatar for asilter

I did not care on warnings. But they put me in trouble lately. When compiler comes to the statement below it gives the warning. [code] /* void ** vpSec00 comes as an argument */ int hSec = 0; size_t nbytes; *vpSec00 = bitio_o_close(hSec0, &nbytes); [/code] it says: warning: assignment makes …

Software Development c
Member Avatar for SphinCorp
0
301
Member Avatar for myself2211

Hi, just beginning to learn Python, and am trying to create a script that will output matches from a text file to a user's input, I have managed that so far, the problem I have is trying to have something returned if the user puts in a string of text …

Software Development python
Member Avatar for myself2211
0
238
Member Avatar for jagr200

I have a project for school and I cant figure out what to do. I need all the help I can get. Its due tonight and I am stumped. I have spent 7hrs on it today already and Im stumped 100%. Here is the assignment. We use Netbeans to write. …

Software Development java java-netbeans
Member Avatar for VernonDozier
0
150
Member Avatar for a.self

*Note: its not a fully functional hashTable for technical purposes My priority is to get it to store the strings properly. I approached this a different yet similar way to my other post and I have gotten much farther! The problem now is that my output prints duplicates each and …

Software Development c++ open-source
Member Avatar for a.self
0
161
Member Avatar for espm1000

Hello everyone, I am new to computer science, and thus far this semester I have not needed any help in writing a program even though I am stuck with a professor who struggles to get a clear point across. He is a great guy and tries to make sure we …

Software Development c++
Member Avatar for VernonDozier
0
329
Member Avatar for saneeha

I am converting a code from c++ to c#. The code uses the function findFirstFile() to return the first file of the directory.. Is this function present in c#, or there are any modifications to the function..The function uses a header windows.h. What is its replacement in c#? MSDN has …

Software Development c#
Member Avatar for bmdeveloper
0
2K
Member Avatar for chunalt787

This is for a frequency table that will eventually allow me to build a Huffman coding tree. I want the class FrequencyTable to simply hold a vector of the type FrequencyNode however I keep getting an error about ISO forbiding the creation of the vector. Any ideas why? Error: [CODE]FrequencyTable.h:11: …

Software Development c++
Member Avatar for chunalt787
0
121
Member Avatar for clutchkiller

What would be the difference between something like int func1 = "This is my function" and string func = "This is my function" (sorry if syntax is off) The only thing ive been able to find in research, is that c++ offers a specific header to handle string i/o etc... …

Software Development c++
Member Avatar for clutchkiller
0
128
Member Avatar for evilsithgirl

hello everybody. I am trying to write a game of rock paper scissors where the user plays against the computer. The computer picks a random number and the user makes his/her own selection. then the selections are compaired and the winner is selected. I need to write the following in …

Software Development c++
Member Avatar for ddanbe
0
2K
Member Avatar for inumbris

I'm working with existing code, where I've found that I have to modify some #include preprocessor directives. For example, to change [code]#include "myhdr.h" [/code] to [code] #include "..\hfiles\myhdr.h"[/code] I include the original line in a comment just above the changed line: [code] /* #include "myhdr.h" original */ #include "..\hfiles\myhdr.h" [/code] …

Software Development c++
Member Avatar for ArkM
0
257
Member Avatar for cproud21

I wrote the code for the following 2 combo boxes which display a drop-down list of dorm buildings and meal plans for a college student. The code works, and both boxes are displayed. I have completed what I have to do, but want to find a way to get the …

Software Development java java-swing
Member Avatar for peter_budo
0
138
Member Avatar for darren2005

I'm very new at C++ and would like to know how I would change a directory via user input? This will be a Win32 Project and [U]not [/U]a Win32 application. I know I can use (as standard - and without user input) the [U][B]chdir("\\dir");[/B][/U] - but how do I use …

Software Development c++
Member Avatar for darren2005
0
2K
Member Avatar for mrboolf

Hi all there. I was given the task to write a simple Complex Number class as an exercise for a class I'm taking. I already met my professor and all went well (:)) but I'm left with a question which I forgot to ask her: how should I handle any …

Software Development c++
Member Avatar for mrboolf
0
122
Member Avatar for localp

[icode] struct entry { int key; } entry[TABLE_SIZE]; [/icode] i declared a struc like this... but i no that u cant declare it in this way, if i write it in the correct way i am getting errors. Y is this, can some one modify this code please .. i …

Software Development c++
Member Avatar for vmanes
0
167
Member Avatar for cbickle

i am in a first semester programming class and this probably might seem like a dumb questino to everyone here but i have been working on this for along time and cant seem to come up with anything. i am stuck on 2 programs. the first is to ask for …

Software Development java java-swing
Member Avatar for cbickle
0
111
Member Avatar for 3Dees

Hi, i have bieng trying to write a method which takes a listbox index (1D array) and find the corresponding 2D index. I did this code with some help which get the 1D index of a 2D array. Now i need to do the reverse from listbox index (1D) and …

Software Development vb.net
0
113
Member Avatar for atnshun

My code is the following: [code] # include <stdio.h> # include <sys/types.h> # include <sys/ipc.h> # include <sys/sem.h> # include <unistd.h> # include <stdlib.h> # include <time.h> # define NS 3 union semun { int val; struct semid_ds *buf; ushort *array; }; int main(void) { int sem_id, sem_value, i; key_t …

Software Development c++ storage
Member Avatar for atnshun
0
214
Member Avatar for localp

[icode] struct value { char c[29]; }; char toLower(char na) { char c; char str[29]; int i=0; while (na[i]) { c=word[i]; str= (char)(tolower(c)); i++; } return (str); } [B][U][COLOR="Red"]in the main program[/COLOR][/U][/B] cout<<"Enter The your name: "<<endl; cin>>v.c; toLower(v.c); [/icode] This is what i wrote to convert the insert text …

Software Development c++
Member Avatar for ArkM
0
130
Member Avatar for Liszt

Why does I encounter a compileerror when doing this. Compile error says. 'Form3' : undeclared identifier 'Form4' : undeclared identifier Inside of Form4.h: [code] #include "Form3.h" Form3 ^form3 = gcnew Form3; form3->ShowDialog(); [/code] Inside of Form3.h: [code] #include "Form4.h" Form4 ^form4 = gcnew Form4; form4->ShowDialog(); [/code]

Software Development c++
Member Avatar for Liszt
0
119
Member Avatar for daletonge

I have generated some SQL code SELECT Invoice.InvoiceID, Invoice.CustomerID, Invoice.RouteNumber, Invoice.TreatmentType, Invoice.Information, Invoice.StreetAddress, Invoice.Postcode, Invoice.Invoicecost, Invoice.InvoiceDate FROM (Invoice INNER JOIN Customer ON Invoice.CustomerID = Customer.CustomerID) WHERE (Customer.CustomerID = '?') When i test it in the query generator everything works. However when i add the following code to my vb form …

Software Development vb.net
Member Avatar for gunso4050
0
149
Member Avatar for friendklay

I have got xampp-linux-1.6.7 and xampp-linux-devel-1.6.8a installed on Ubuntu 8.10. I am trying to install mod_wsgi-2.3 and was able to sucesfully run ./configure on it. But when I run make, it gave me a bunch of errors. I am pasting a snipped of it here. [code]mod_wsgi.c:3886: error: expected ‘;’ before …

Software Development c ubuntu
Member Avatar for friendklay
0
121
Member Avatar for gil_mo

Hi, I've been experiencing problems when attempting to add resources to a DLL using UpdateResource. I'm adding many images to the DLL, and as soon as the overall image size reaches ~16MB, the DLL loses other resources that previously existed. Any ideas? Thanks, Gil Moses.

Software Development c++
Member Avatar for gil_mo
0
139
Member Avatar for janamrob

How can I override a method in a base class without using the @Override sign? For example the class Human below overrides some methods in the class Mammal. Do print the output correctly without @ signs in objects. Convert them correctly before outputting. [code]import java.util.*; public abstract class Human extends …

Software Development java
Member Avatar for destin
0
121
Member Avatar for SubProf

Hi everyone, I have four forms. Form1 is the main form and needs to be kept open and visible at all times but cannot be clicked while the other forms are open. For example, the main form is open and after a certain amount of time the second form opens …

Software Development
Member Avatar for SubProf
0
130
Member Avatar for squidd

First off let me say if this is in the wrong forum i sincerely apologize. Since most people move from VB6 to Delphi, I figured this would be the proper place to put this question. The code I did in delphi works without any problems whatsoever. Because I want to …

Software Development delphi pascal
Member Avatar for LizR
0
153
Member Avatar for AKJo

..bescause it is not a design time package" is shown first time I try to load a project that contains a TTable. I have to let system remove my declaration of TTable. Then I can create a new TTable, with the same name and my application works. Next time I …

Software Development pascal
Member Avatar for LizR
0
237
Member Avatar for RohitSahni

001 00002 0000003 00004 000005 6 000007 008009 ------------------------------------------------------------------------------------------------------ GBL UTG.L 0692861 DCGB 000000 0 205750 826UTG GBL UU.L 0646233 DCGB 000000 0 722501 -371UU. I have the above data line by line each and coloumn has fixed width then in those i want to assign 9 coloumns to variables …

Software Development c++
Member Avatar for ArkM
0
393
Member Avatar for msundastud

once again teaching myself to write using C, damn I miss C++ the question is to write a program that can calculate the first, second, and third quartiles for a set of data. I need to declare 2 arrays, each having 3 columns. The quartiles will be calculated for only …

Software Development c
Member Avatar for msundastud
0
109
Member Avatar for cproud21

I created a combo box for the selection of a dorm.... I need to create another combo box for the selection of a meal plan... Should I write that in another class, or can I add it to this class? I need to display the total of the costs of …

Software Development java java-swing
Member Avatar for puneetkay
0
182
Member Avatar for ddanbe

I thought it was a simple task at first. Don't ask me why, but I wanted to display a number in it's binary form. Manipulating bits in C# seems a bit(no pun...) harsh. The best I could come up with was : [CODE=csharp]static void Displaybinary( uint i) { const byte …

Software Development display
Member Avatar for ddanbe
0
340
Member Avatar for Cali45

I am fairly new to Python and trying towork on this problem. I want to split the file which contains two seuqence of letters by the blank line that separates them then 'compare' them: What you need to do: Text file genesequences.txt contains two gene sequences, separated from each other …

Software Development python
Member Avatar for jlm699
0
96
Member Avatar for jayjaysam0441

Hello, I am trying to write a program that allows the user to enter a letter and using seven different methods to print out the letters. This display should look like this CCCCCCCCCC CCCCCCCCCC CCCCCCCCCC CCC CCC CCC CCCCCCCCCC CCCCCCCCCC CCCCCCCCCC The method printBlock should accept a character and two …

Software Development java
Member Avatar for Alex Edwards
0
207
Member Avatar for Achupa

Hi, I had posted this question before and I did appreciate the response I got. However I still need some little help as: [B]1.In the addMovieGoers method check that every member of the collection is a human and that they are old enough to watch the movie, if not throw …

Software Development java
Member Avatar for sillyboy
0
186
Member Avatar for flexy82rpq

i've wrote a program with a header file and a cpp file. when i try to compile i am getting errors that i can't fix, (i'm just a beginner). Code Below: [B][U]the .H file[/U][/B] [code=cplusplus] //Flexie Muirhead #: 26075046 //Assignment #2 #include <iostream>//allows program to output data to the screen …

Software Development c++
Member Avatar for kux
0
121
Member Avatar for jaasaria

hi.. i would like to save every word in the sentence separating by space " "... any idea on it?? thxx

Software Development visual-basic
Member Avatar for Bob Jacobs
0
84
Member Avatar for adam291086

Hello, I am reading this turorial [url]http://diveintopython.org/soap_web_services/introspection.html[/url] and i am trying to echo out all my wsdl method. I am trying to do this on my external web hosting server. I have got the modules installed but i am getting an internal server error [url]http://adamplowman.com/cgi-bin/test_xml.py[/url] here is the code [CODE] …

Software Development python web-server
0
88
Member Avatar for zawpai

Hi, Could anyone pls give me some suggestions how to do the [COLOR="Red"]encryption [/COLOR]and [COLOR="Red"]decryption[/COLOR] for text? Best reagards, zawpai

Software Development encryption visual-basic
Member Avatar for Teropod
0
90
Member Avatar for Te'DDy

Hi , I lke to write the angram game. But I dont know how to sort the words in random Ex:the words gonna be lke this ..J H R E I O M C I want to let the user to type the meaningful words to choose among from that …

Software Development java
Member Avatar for stultuske
0
793
Member Avatar for kent01981

Hi, I am doing a doorbell using P16F84A chip. I have programmed in asm in MPLAB 8.10,but the code is not working at all. no any errors show up, but just not working. please help me out. #include P16F84A.inc __CONFIG _CP_OFF & _WDT_OFF & _PWRTE_ON & _RC_OSC errorlevel -302 org …

Software Development assembly
0
167
Member Avatar for faisaly

Considering the given code as an algorithm calculate the time complexity of this code. #include<iostream> #include<stdlib.h> using namespace std; int main(){ int i, j, n; for(i=0;i<n; i++){ for(j=0; j<n; j++){ cout<<"my time complexity is = "<<i*j<<endl; } cout<<"complexity is increasing"<<j<<endl; } system("pause"); return 0; }

Software Development algorithm c++
Member Avatar for Freaky_Chris
0
136
Member Avatar for asifjavaid

Hi, I working on COM Components in VC++.NET 2005, [CODE]HRESULT hr = spCrypt.CoCreateInstance(__uuidof(Cryptographer::TMMPlayerHelper), 0); if( FAILED(hr) ) spCrypt = 0;[/CODE] I am facing an error here. I debug the code and found that "CoCreateInstance()" is returning a message "Class is not registered" an my program gets crash. How can I …

Software Development c++
Member Avatar for asifjavaid
0
175

The End.