132,725 Archived Topics
Remove Filter ![]() | |
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 … | |
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 | |
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 | |
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 | |
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 | |
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++ | |
i am a newbie someone know where can download C++ installer? can send me the website? Software Development c++ | |
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 | |
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 | |
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 | |
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 | |
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 | |
*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 | |
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++ | |
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# | |
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++ | |
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++ | |
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++ | |
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++ | |
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 | |
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++ | |
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++ | |
[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++ | |
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 | |
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 | |
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 … | |
[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++ | |
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++ | |
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 | |
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 … | |
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++ | |
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 | |
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 | |
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 … | |
..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 | |
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++ | |
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 | |
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 | |
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 | |
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 | |
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 | |
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 | |
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++ | |
hi.. i would like to save every word in the sentence separating by space " "... any idea on it?? thxx Software Development visual-basic | |
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 | |
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 | |
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 | |
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 | |
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; } | |
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++ |
The End.