132,726 Archived Topics
Remove Filter ![]() | |
For this code to delete an element from a linked list how do I get the head to point to the first element in the list(which is 0)? [ICODE]public class IntNode1 { public int item; public IntNode1 next; public IntNode1 head; //////Constructor/////// public IntNode1(int item1, IntNode1 next1) { next=next1; item=item1; … Software Development java linked-list | |
How can I achieve in c++, like Foo foo = new Foo.SubFoo(); or Foo foo = new Foo().SubFoo(); Where, Foo : class SubFoo: maybe sub class or independent class, but not method. Note: i Don’t want to use "namespace" Software Development c++ | |
Hi Quick questions abour overload constructors. Lets say I have two overload constructors: [code=c++] class MyFileExtractor{ MyfileExtractor(string); MyfileExtractor(string, int); ~MyfileExtractor(); private: string name; int columns; } /*Class implementation*/ MyFileExtractor::MyFileExtractor(string fname,int c):columns(c) { name=fname; } MyFileExtractor::MyFileExtractor(string fname) { #define STD_NUMBER_OF_COLMS 1 //standard number of columns MyFileExtractor::MyFileExtractor(fname, STD_NUMBER_OF_COLMS); } MyFileExtractor::~MyFileExtractor() { cout … | |
I'm having a problem with my assginment. This is the Java Number Guessing Game. It compiles and runs with no errors but when executed it stops with only one user input. You must hit the "Play Again" button to continue. Here is my code: [CODE]import javax.swing.*; import java.awt.*; import java.awt.event.*; … Software Development java java-swing | |
I have started out with tasks that need to communicate between different forms. I need to understand the logic how this works and have problems to find any examples of this. For the 2 codeexamples below, I use these to close the current Form or activate another button on the … Software Development c++ | |
Hello, I am having a small problem because I have to have to have it so the user can enter a number and that number is stored in a variable and that variable becomes the name of the file to be created with the extension .asw. It is going to … Software Development c++ | |
I am working on the following Java application Write a program that allows the user to enter the last names of five candidates in a local election and the votes received by each candidate. The program should then output each candidate’s name, the votes received by that candidate, and the … Software Development java | |
hello, i want to learn if there's memory leak problem in my code...Let me explain: I have a Customer class,that class also have a destructor function. I have a static function in that class which returns n Customer objects. [CODE] static Customer* createCustomers(int n){ //... } [/CODE] [CODE] int main(int … Software Development c++ | |
my 2nd prog, i intend on adding to it next so that it manipulates the data, see what cool things i can make it do....anyways, just looking for some feedback again on my prog, does it suck :) ? Thx in advance [CODE]#include <iostream> #include <fstream> #include <vector> using namespace … Software Development c++ | |
My professor has assigned a lab that we will later be using to learn how to abuse the various types of data structures. In this first lab he asks for the default constructor, a copy constructor, and an overloaded constructor to accept the appropriate data, which you'll see in a … | |
Hi I was wondering if anyone knew how to make a highscore list in VB 2005. This is for my project which is basically a quiz, and I would like the user to be able to click on the highscore button so that they can see their name, ranking and … Software Development vb.net | |
There are two Textboxes & One button on mine form. I save the Textboxes data to the TextFile on Button click. I want the data in the TextFile as : STUDENT RECORD INFORMATION Roll : 1 Name : Ruchi Roll : 2 Name : Ruchika Mine Code is as Under- … Software Development vb.net | |
I have a TextFile that contains Records. On Form Load I m saving those records into the listview. I set the MultiSelect property of the listview to true. I have one button, I want that suppose user Selects multiple items in the listview by using ctrl. & Click on Button,Firts … | |
Using VB 2008. I have a form with a text box and a button on it. The button displays another form with a datagridview from which I want the user to select from to populate the text box. On RowHeaderMouseClick, I populate the text box field from the first form … Software Development vb.net | |
I'm having trouble with an inheritance hierarchy program. I have widdled this program down from a lot of errors to just 1 error. However, I can't seem to figure out how to correct it. Here is the error message I'm receiving: [code]error C2679: binary '<<' : no operator found which … Software Development c++ | |
I know that to make a simple yes or no question I can do this: [code] int Answer; cin >> Answer; if (Answer == 1) { Response } else { Response } [/code] But in the accounting program (In a recent thread), it registered the key before you hit enter. … Software Development c++ | |
Hi, I have been making a program that encrypts files. It works, but it compresses them. It only does it a little bit, but it does. It's weird. Why is it doing this? I have attached a zipped folder with the code, binary, an encrypted file, and the original file. … Software Development c++ | |
I am new to both c#.net and sql server. I am working on a project in which I have to 2-3 users using their application and connecting to common database in lan. I decided to use c# as my programming language. when coming to database i m very confused. microsoft … | |
hey all.. i have a drop down list with 2 data in it..ECC and MIT is it possible to bind the drop down list to 2 gridview? for example, when i click on ECC only the ecc gridview is suppose to show.. the MIT gridview should not be visible.. thanks … Software Development vb.net | |
hi.. i was following the program in d tutorias given in daniweb thread. i typed print " Hello Cu Python!" in the IDLE .. but i get an error as invalid syntax ? can anyone tell me the change to be done?? Software Development python | |
hi every one Im still new to programming i have downloaded borland compiler and was writing the following code: [code]#include<iostream> using namespace std; int main() { for (int x = 0; x < 10000000000; x++ ){ cout<< x << endl; }cin.get(); }[/code] the problem is that when it is done … | |
I am trying to write a program that will delete the nth element from a linked list. Before I was getting a nullpointerexception but I think I cleared that up. Now I just get a repeating error message that I put in the code for when the list goes to … Software Development java linked-list | |
[code=python] class a(object): pass b = a() print id(b) 20441744 [/code] Is it possible to get the instance from this number/address? Software Development python | |
I am writing an interpreter and have come that far that I need to identify or-stataments( || ). Just for fundamental analysis. The code is not a problem. Only the thinking here. My problem is that I am not quite sure how I have to think. I know how it … Software Development c++ | |
Hey guys/girls I am having trouble adding Nodes from a TreeView into a TreeViewCollection My code below: [code] Dim treeNodes As TreeNodeCollection For Each node As TreeNode In TreeView1.Nodes treeNodes.Add(node) Next [/code] I am getting Object Reference not set to an instance of an Object error... There is no Constructor … Software Development vb.net | |
Hello, I know this is a basic question but i didnt get the answer myself. So posting it here. I have a program that spans many files, all are .java. If i have to compile them should all of them be in the bin folder of the JDK? Can i … Software Development java | |
Hi, I m inserting Record in Access using VB6 SQL statement as follows [code]Dim str As String On Error GoTo solve str = "INSERT INTO [compinfo]([cID],[cname],[address],[add2],[city],[Postno],[mob],[phno],[faxno],[email],[workday],[offtime],[saldate],[duedate],[amount],[paytyp],[web],[type],[expdat],[charge]) values (" & "'" & txtcomid.Text & "'" & _ "," & "'" & txtcomnam.Text & "'" & "," & "'" & txtcomadd.Text & … Software Development sql visual-basic | |
Hi........ i'm currently working for an application that requires reports. So i used crystal reports. I did the standard way of connecting database and adding table to the report. However after doing all the necessary part, when i click the "preview report" button it doesn't show required output. Instead it … Software Development vb.net visual-studio | |
i have developed an application which uses TRIM command and MSCOMM command. When i am running the exe file in any other computer, error shows in TRIM command.Error shows some component missing. Then i loaded VB 6.0 in the new computer still error continues. Then i tried my software in … Software Development visual-basic | |
Hi Guys, I've got a code that basically storing data from several controls, one of the control is GridView. when I "Submit" I get all rows from GridView and I need only the selected rows.. I've tried to use: str = GridView1.SelectedRow.Cells(1).Text but it gives me an error when I … | |
Hey! how is everybody! I need help on my little home project. how do i write a for with no limit of iteration? i need it to stop when a value into the for is reached not when i<=n. Software Development c++ | |
i need samples coding for MouseUp, MouseDown, MouseLeave,MouseEnter events which suitable for web application. thanks, Software Development | |
Hi folks: I will need to upload my Access DB and my VB exe file to a server.. Will it be ok if I changed the pathname in the connection string to the path of the server where my DB is located now ? my vb form has to comboboxes … Software Development vb.net | |
I am trying to finish it but there is a problem. The overloaded operator>> doesn’t work in class Circle. Would you please explain to me what wrong thing I did? Thank you so much. [code=C++] #include <iostream> using std::cout; using std::cin; using std::endl; using std::istream; using std::ostream; #include <iomanip> using … Software Development c++ | |
Hi I am having great trouble with making my bitmap fit properly on a 1024x768 full screen window. The length is correct but the vertical is too long. I have searched the net and it has said that the size goes up in squares eg 2, 4, 8, 16, 32, … | |
i am having a problem in my function, i need someone to explain or fix my problem. and r my arrays correct. [code] #include<iostream> #include<iomanip> using namespace std; void display_draw(int mega[12][6], int draw_index); int main() { //int i; const int NUMROWS=12; const int NUMCOLS=6; int draw_index; int val[NUMROWS][NUMCOLS]={ 5,14,16,39,51,34, 1,20,22,29,41,35, … Software Development c++ | |
catalina.bat file is missing error comes when i run jsp page with tomcat 5.5 and netbeans 6.0. i have tried different mirrors for tomcat5.5 but above mentioned error comes always Software Development java | |
Well. I 'm trying to get a program in C++(MS-DOS) to open another .exe file. I thought there might have been a way with the: [CODE]system ("main.exe") ;[/CODE] to call it, but somehow it does not work and its like it skips it completely. I'd appreciate any help. Thankyou. (Sorry … Software Development c++ | |
hi cld anybody explain me the concepts of continue,break,return statement with an example using c program Software Development c | |
Can someone tell me how to create a simple but attractive splash screen to load at the start of my program which will highlight: 1) the program title 2) who the program is for 3) who designed the program and 4) what version of the program it is thanks Software Development python | |
Hi, I need help solving this problem. I have a dataset with four columns col1,col2,col3,col4 and the data could be col1 col2 col3 col4 ===================================== t1 abc a 1 t1 xyz a 2 t1 mnp b 3 t2 abc 1 t2 kkl 2 I want to create a datagrid which … Software Development dataset open-source session vb.net | |
Why isn't the mReadkey macro outputting the string "Please enter...." ? [CODE] TITLE MASM Template (main.asm) ; Program: Chapter 10 Problem 1-5 ; Author: Jon Wayman ; Created Date: July 17th,2008 ; Revision date: INCLUDE Irvine32.inc INCLUDE Macros.inc ;------------------------------- mReadkey MACRO ; ; This macro asks user to press any … Software Development assembly | |
In the code below i can'f figure out how to get the numbers from my inFile that will be reversed then put into my outFile. I left part of the code unfinished. not sure what I am supposed to put in between >> >>. pretty lost on this one. Im … Software Development c++ | |
Hi everyone! I have a program written in C++ which already exports some data to Excel, on the other hand, I have another program written in VBA to analyse the data. I used to run them independent but now I would like to simplify them. Is there a chance to … | |
u ask user for the filename and then u read the the file, display it into an array assume file contain only numbers with that u display data such as total,average,highest number,lowest ect.. my question is how would u determine the size of an array to work with?? given the … Software Development c++ | |
Hey. I am wanting to make this program so that the user can move the position of his characters. I have made a attempt but i am confused about some bits. [CODE=C++]// Code Shark #include <iostream> using namespace std; int main() { char character = 'X', movement; do { system("Cls"); … Software Development c++ | |
hey well this program basically is a mathematics game...try the program out for yourself, it works, but im just wondering how to make an reset option so at the end of the program so the user can play the game again. thanks [ICODE]name = raw_input("\t\t\tPlease Enter Your Name: ") print … Software Development mathematics python | |
I'm having a bit of trouble reversing a string. Here's a code snippet of how I'm currently trying to do it: [code=c] index_s1 = strlen(num_s1); for (index_s2 = 0; index_s2 <= strlen(num_s1); index_s2++){ num_s2[index_s2] = num_s1[index_s1]; index_s1--; } [/code] Software Development c | |
How in the hell do you divide by 7 using nothing but-- ~, ^, >>, <<, &, | -- In a set algorithm. I'm stumped. I've tried mapping out different numbers dividing by each other... it didn't work. I would map out a number subtracting from the other to see … | |
how would i write code so when someone enters 1 charcter it changes it to somthing else for example if someone entered 100 / 5 it would say 100 ÷ 5. Software Development c++ |
The End.