132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for JConnor135

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
Member Avatar for Alex Edwards
0
279
Member Avatar for aecsant

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++
Member Avatar for Prabakar
0
261
Member Avatar for Christian2011

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 …

Software Development c++ legal
Member Avatar for Christian2011
0
2K
Member Avatar for Moth126

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
Member Avatar for sciwizeh
0
79
Member Avatar for Jennifer84

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++
Member Avatar for Jennifer84
0
224
Member Avatar for cam875

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++
Member Avatar for cam875
0
102
Member Avatar for shaynicb25

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
Member Avatar for Alex Edwards
0
2K
Member Avatar for xyzt

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++
Member Avatar for Ancient Dragon
0
134
Member Avatar for Gromnie

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++
Member Avatar for Duoas
0
100
Member Avatar for henpecked1

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 …

Software Development abuse c++
Member Avatar for Duoas
0
134
Member Avatar for sddproject

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
Member Avatar for Bill Purkins
0
237
Member Avatar for ruchika beddy

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
Member Avatar for ruchika beddy
0
116
Member Avatar for ruchika beddy

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 …

Software Development listview vb.net
Member Avatar for ruchika beddy
0
148
Member Avatar for Bill Purkins

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
Member Avatar for Bill Purkins
0
178
Member Avatar for chaoticabyss99

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++
Member Avatar for chaoticabyss99
0
255
Member Avatar for Shadoninja

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++
Member Avatar for Shadoninja
0
88
Member Avatar for TheBeast32

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++
Member Avatar for aminit
0
80
Member Avatar for almon

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 …

Software Development c c# c++ mysql sql
Member Avatar for Ramy Mahrous
0
104
Member Avatar for mirainc

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
Member Avatar for manas91
0
123
Member Avatar for adarshcu

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
Member Avatar for adarshcu
0
131
Member Avatar for shariff089

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 …

Software Development c c# c++
Member Avatar for VernonDozier
0
128
Member Avatar for JConnor135

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
Member Avatar for JConnor135
0
273
Member Avatar for mayapower

[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
Member Avatar for tomleo
0
74
Member Avatar for Jennifer84

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++
Member Avatar for Jennifer84
0
336
Member Avatar for KillerOfDN

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
Member Avatar for KillerOfDN
0
83
Member Avatar for gReaen

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
Member Avatar for gReaen
0
110
Member Avatar for hell_tej

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
Member Avatar for debasisdas
0
249
Member Avatar for matmox

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
Member Avatar for matmox
0
96
Member Avatar for apuamy

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
Member Avatar for apuamy
0
83
Member Avatar for ypdev

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 …

Software Development session vb.net
Member Avatar for ypdev
0
901
Member Avatar for fedderico10

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++
Member Avatar for ArkM
0
104
Member Avatar for prabhuraj

i need samples coding for MouseUp, MouseDown, MouseLeave,MouseEnter events which suitable for web application. thanks,

Software Development
Member Avatar for prabhuraj
0
54
Member Avatar for kavithabhaskar

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
Member Avatar for cutepinkbunnies
0
75
Member Avatar for Emerald214

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++
Member Avatar for ArkM
0
178
Member Avatar for 11silversurfer1

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, …

Software Development c c# c++
Member Avatar for 11silversurfer1
0
474
Member Avatar for asad12

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++
Member Avatar for ArkM
0
109
Member Avatar for mrityunjay22

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
Member Avatar for tuphng
0
966
Member Avatar for Dannyo329

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++
Member Avatar for Duoas
0
4K
Member Avatar for flecture

hi cld anybody explain me the concepts of continue,break,return statement with an example using c program

Software Development c
Member Avatar for Ancient Dragon
0
247
Member Avatar for MikeyFTW

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
Member Avatar for MikeyFTW
0
10K
Member Avatar for Texpert

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
Member Avatar for JakeDB
0
883
Member Avatar for SHWOO

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
0
71
Member Avatar for greyghost86

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++
Member Avatar for Duoas
0
119
Member Avatar for carlos_lopez_m

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 …

Software Development c c# c++
Member Avatar for carlos_lopez_m
0
160
Member Avatar for hiddendragon

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++
Member Avatar for hiddendragon
0
147
Member Avatar for Code Shark

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++
Member Avatar for VernonDozier
0
151
Member Avatar for MikeyFTW

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
Member Avatar for Scuppery
0
630
Member Avatar for sinkingships7

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
Member Avatar for sinkingships7
0
121
Member Avatar for Alex Edwards

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 …

Software Development algorithm c++
Member Avatar for invisal
0
174
Member Avatar for wtf???

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++
Member Avatar for ctrl-alt-del
0
94

The End.