43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for subith86

Hi friends, I was understanding the concept of friend functions. I read in my book that there are two possible ways of "making friendship":cool: 1. Make a class a friend. 2. Make the method in a class a friend. I am able to write a code for the first point. …

Software Development c++
Member Avatar for jonsca
0
2K
Member Avatar for kitjo

I have two radio btuttons which link me to another form but they have failed to likk me to the forms i directhem to link me to. i dont know if ther is any problem with my code this is the code. some one to help me [CODE] Dim one …

Software Development vb.net
Member Avatar for kitjo
0
122
Member Avatar for scarlettmoon

Hello, I would really appreciate if someone could tell me what is wrong with this function. When I execute the program it returns the memory address and not the calculated average. I have not included the entire program, there is a sort function and scores are entered by the user …

Software Development c++
Member Avatar for mike_2000_17
0
381
Member Avatar for Sturdy

Hi again.. i'm looking for how to running notepad from vb6.. please help me. any help will be appreciated.

Software Development visual-basic
Member Avatar for Sturdy
0
723
Member Avatar for subith86

Hi friends, One of my class member function is supposed to return an array of integers. Here's the function. [CODE]int* MyClass::getallVars() { int* a = new int; int b[] = { GetparentVar1(), GetparentVar2(), GetchildVar1(), GetchildVar2(), }; a=b; return a; }[/CODE] Is there anyway I can do this without the use …

Software Development c++
Member Avatar for subith86
0
177
Member Avatar for swathys

[QUOTE=swathys]Hi, I have a problem to solve this, when the 1st language button clicked it should carry the language that already specified in xml but it seems my code doesn't work in that way. Can you help me please ! Form1 [CODE] Private Sub FlashObj_FSCommand(ByVal sender As Object, ByVal e …

Software Development flash vb.net xml
Member Avatar for swathys
0
145
Member Avatar for newwbee

my assignment is to figure out the output but im bot sure i got it right here is the Q A variable x globally defined in your program is assigned the integer value 3. A variable x defined in a function named f_name is assigned the integer value 5. Answer …

Software Development c++
Member Avatar for jonsca
0
195
Member Avatar for swathys

Hi, I have create an application in vb.net and ms sql 2005 as database storage. How do i create an installer that can be included in a CD. What i mean is if i want to install it in the virgin PC the Installer CD would be able to run …

Software Development storage vb.net
Member Avatar for swathys
0
142
Member Avatar for sciprog1

Hello Members, I have a program with a lot of MouseListeners. The issue I am having is the program is ending even before I click. I tried using sleep and flags to pause the program without much success. Just wondering if there is way to get the program to pause, …

Software Development java
Member Avatar for sciprog1
0
157
Member Avatar for efronefron

There is a problem I am having inside the AddToEnd function. At this line: [QUOTE]*ptrL->ptrNext = ptrInput;[/QUOTE] it gives this error: [QUOTE]lab8.c: In function ‘AddToEnd’: lab8.c:105: error: request for member ‘ptrNext’ in something not a structure or union [/QUOTE] Can anybody tell me why? P.S. I realized that I do …

Software Development c
Member Avatar for efronefron
0
189
Member Avatar for rookanga

I need to make an application that can calculate the items the user chooses from There is 7 different items the user can choose from Small Coffee $4.95 Medium Coffee $6.87 Large Coffee $8.52 Bagel $2.99 Cream $0.71 Sugar $0.50 Lid $0.99 Total the coffee order (subtotal + tax at …

Software Development vb.net
Member Avatar for rookanga
0
160
Member Avatar for jackmaverick1

Hi! I read the clearing input buffer article on the top of the c++ forum but I don't really get it, and it doesn't work. This is my problem, I know that cin is just like a file in that it has a buffer (correct me if I'm wrong, I …

Software Development c++ legal
Member Avatar for jackmaverick1
0
206
Member Avatar for G_S

Hello I'm trying to make a verb conjugator for Spanish. The problem is that I need to get the last two characters in the verb to be able to determine the verb group to which it belongs. In Spanish, conjugation depends on the verb ending, among other factors. Verbs end …

Software Development python
Member Avatar for G_S
0
23K
Member Avatar for sdr001

Hello, I am trying to test my binary tree, but I am getting errors: The error occurs when I try to call a template function. For example: tree.insertNode(inp);. I get this error: request for member âinsertNodeâ in âtreeâ, which is of non-class type âmain()::binaryTree ()()â . I have defined my …

Software Development c++
Member Avatar for sdr001
0
117
Member Avatar for @Kui

Hi i have a program in which i want the main form to get information either from the login form or from the sign up form depending on which one is used. Here is the code below. The information does not seem to appear although there is no error. Please …

Software Development open-source vb.net
Member Avatar for Unhnd_Exception
0
268
Member Avatar for trume

Hello, How can I do it on a recursive way? (Function ''plus'' needs to call itself) [CODE]#!/bin/bash function plus { let GLOBAL=$GLOBAL+$1 } GLOBAL=0 n=$1 for ((i=1; i<=n; i++)) do plus $i done echo Answer: $GLOBAL[/CODE] Any help is welcome! Regards, trume

Software Development shell-scripting
Member Avatar for griswolf
0
89
Member Avatar for jkoske

I am having problems accessing the members of the base class in my derived class. Is there anything wrong with the way I defined my base class as in: template <class T> class Stack : private Llist<T> Is there anything wrong with that? I am getting errors from gcc in …

Software Development c++
Member Avatar for jkoske
0
214
Member Avatar for pythonbegin

Hi All Hope everyones doing good. I have two \t files with 3 columns, file1 contains 600050 rows and file2 contains 11221133 rows. I am comparing file2 with file1 to match common entries in first two columns, if file1[0:2] in file2[0:2 ,] write file2[0:2]+column 3 else fil1[0:2] + 5. I …

Software Development python
Member Avatar for griswolf
0
1K
Member Avatar for Nevillelajru

I have a datetimepicker which reads a date as dd-mm-yyyy. the sql im using(sql server 2008) is only reading mm-dd-yyyy. i am having a problem with changing the format of how the date is saved. i put a catch to the code and this came up System.Data.OleDb.OleDbException: Conversion failed when …

Software Development
Member Avatar for Mitja Bonca
0
1K
Member Avatar for Vega_Knight

Hi masters,, how can i count how many words in sentences using pascal? thanks before and best regards.

Software Development pascal
Member Avatar for Vega_Knight
0
1K
Member Avatar for Kirielson

Thanks for helping me out with my coding last time. Now I have an error with a class not found for my servlet. In the log, the following shows up: [CODE]SEVERE: Error loading WebappClassLoader delegate: false repositories: /WEB-INF/classes/ ----------> Parent Classloader: org.apache.catalina.loader.StandardClassLoader@1c0e45a cart.CartServlet java.lang.ClassNotFoundException: cart.CartServlet[/CODE] I've compiled all of the …

Software Development apache java
Member Avatar for Kirielson
0
136
Member Avatar for benjybob

hi, i have a small problem with the rand operator. at first i tried using it without srand but gave me the same value each time. i have inserted srand(time(0)); but my compiler throws me up these errors: 1>c:\users\ben\documents\university work\year 2\c++\code\myc++\spritelab\asteroidsgame.cpp(17): error C4430: missing type specifier - int assumed. Note: …

Software Development c++ gaming visual-studio
Member Avatar for benjybob
0
425
Member Avatar for a.muqeet khan

hello ppl i am a new member of the programming club it been a week since i begin to program and i am doing it persnaly so i am sorry if what i posted is stupid but i want u u guys to have a look and tell me whats …

Software Development c++
Member Avatar for a.muqeet khan
0
115
Member Avatar for cdn88

Hello, I am having trouble understanding why I'm getting these errors. a4.c:106: error: expected expression before ‘int’ a4.c:106: error: too few arguments to function ‘ass_average’ a4.c:109: error: expected expression before ‘int’ a4.c:109: error: too few arguments to function ‘ass_min’ a4.c:112: error: expected expression before ‘int’ a4.c:112: error: too few arguments …

Software Development c perl
Member Avatar for Ancient Dragon
0
224
Member Avatar for Wakesta

What free C++ programming tools do people recommend? And just to check I would be able to run my programme from this tool?

Software Development c++
Member Avatar for Ancient Dragon
0
247
Member Avatar for asif49

In my class there are 2 objects, I have to get the one which has the smallest size with a method that begins with [CODE]public String smallest()[/CODE] so what I've been trying to do is roughly the following... [CODE]if (object1.getSize() < object2.getSize) { return object1.getName; } } if (object2.getSize() < …

Software Development java
Member Avatar for sj5536
0
94
Member Avatar for Sturdy

hi all.. how i can check there are palindrome in textbox. e.g : i input "daniweb a bewinad" thanks and please help.

Software Development mathematics visual-basic
Member Avatar for Sturdy
0
819
Member Avatar for vb2learn

Hello Coders Need help I want to remove the lines that contain specific text. (Whole Line) Eg: Textbox1.Text = [code]learn lines dani knows everything web knows lines lines knows daniweb everything dani everything lines [/code] So textbox1.text will become and remove whole line that contains the word "daniweb" [code]learn lines …

Software Development vb.net
Member Avatar for vb2learn
0
2K
Member Avatar for xxmp

Is there any way to overload the assigment operator or it is not possible in java? Thank you very much

Software Development java
Member Avatar for JamesCherrill
0
116
Member Avatar for pseudorandom21

I have a DataGridView on a form that updates the datagridview automatically and will allow the user to manually edit the information. I need to save the information in the DataGridView somehow. I don't know what the best option would be. I could of course use a file to store …

Software Development
Member Avatar for pseudorandom21
0
112
Member Avatar for anu07

Is it possible to do that? If so,can anyone give a theory or something? Thanks :) By the way I am using turbo compiler 3.0

Software Development c++
Member Avatar for anu07
0
178
Member Avatar for zack654

I would really want some advanced C++ programmer to answer me this question, so please help me I really need this answer. How can I really start programming with C++? Of course, I still have a lot to lean. I just learned classes and SOME of inheritance features, I write …

Software Development c++ gui
Member Avatar for zack654
0
150
Member Avatar for SeePlusPlus2

Not really understanding the concept, why did they use "Person *pPerson = new Person("Susan Wu", 32);" and where did ".length();" come from? Also when "Rectangle *pRect" is put into a parameter, pRect is pointing at the address of the object rect, right? [CODE] #include <iostream> #include <string> using namespace std; …

Software Development c++
Member Avatar for rubberman
0
129
Member Avatar for crankyslap

Hey guys, I got this code to upload an FTP file which works great, but what do I do when I wnat to upload the contents of an entire folder? I mean, I could make a for-each but that would mean disconnecting and reconnecting to the FTP server alot of …

Software Development file-stream vb.net visual-basic
Member Avatar for crankyslap
0
2K
Member Avatar for Doughnuts

I am trying to add two numerical char arrays such as: [CODE]"124" and "589"[/CODE] I wrote functions to reverse the string and add the strings, and it works for strings like "123" and "456", but when the last digits are greater than 10, I don't know how to carry it, …

Software Development c++
Member Avatar for Doughnuts
0
353
Member Avatar for iamcreasy

What happens when I set the value of an integer to NULL? I print it out / debug it, i get the value zero. Even I can use the NULL assigned integer to initiate another integer. Well, then what is the point of being NULL? Why set it to zero? …

Software Development c++
Member Avatar for template<>
0
19K
Member Avatar for NewOrder

i created a class that i want to serialize each time a move is made on the chessboard. [CODE] class ClassMoveToSerialize { int[] StartPosition; int[] EndPosition; Dictionary<int[], int[]> serialized; public void DataToSerialize(int rowStartSerialize, int columnStartSerialize, int rowEndSerialize, int columnEndSerialize) { MessageBox.Show("" + (number = int rowEndSerialize+columnEndSerialize)); //it isnt finished, i …

Software Development
Member Avatar for NewOrder
0
153
Member Avatar for Mitchell VB 6

Hello, I have a form in my VB 6 program which has 6 labels; which are.. Unit 7 Mark: Unit 8 Mark: Unit 9 Mark: Unit 10 Mark: Unit 13 Mark: Unit 14 Mark: To the right of them I have 6 text boxes where the user enters a mark …

Software Development visual-basic
Member Avatar for debasisdas
0
83
Member Avatar for poloblue

Good Afternoon, I'm having trouble with a school assignment. The assignment entails: Write the implementation of the function subsequence for the orderedArrayListType class. Also write a program to test your function. Prototype: bool orderedArrayListType::subSequence (orderedArrayListType &S,orderedArrayListType &L); Definition: subsequence returns true if S is a subsequence of L, false otherwise. …

Software Development c++
Member Avatar for poloblue
0
159
Member Avatar for sarge66

I'm new to programing and any help would not only be appreciated but would probably help me pass this class. Exercise 1: Implement a Resistor Class Objective: Create a C++ console application that utilizes the core concepts of designing and creating classes, objects, properties and methods. Overview: Create and test …

Software Development c++ objective-c
Member Avatar for pseudorandom21
0
936
Member Avatar for MWE_QUE

I'm getting errors, and I'm not sure why. Any help would be appreciated. I'm working on this program and when I put the ActionListener for the comboBox it blows up. I chose a topic from the comboBox that will pick a file to be read. When I comment out lines …

Software Development gui java java-swing
Member Avatar for MWE_QUE
0
145
Member Avatar for rwarlord

I am having a hard time deciding whether to use pointers or not in my nested data structures. Memory and CPU efficiencies are important as I am dealing with data files of sizes on the order of gigabytes. I have decided to use several classes that are nested in a …

Software Development c++ visual-studio
Member Avatar for rwarlord
0
408
Member Avatar for pseudorandom21

First of all, what is a "data source", the kind that can be attached to a "DataGridView", what are they used for, and how can I use one?

Software Development
Member Avatar for Momerath
0
329
Member Avatar for asif49

My question is based on class relationships. I've written code for 2 classes, one of the "public int..." bits in 1 class has a variable which holds the cost of something. In the other class a variable holds the weight of something. I want to multiply the weight with the …

Software Development java
Member Avatar for DarkLightning7
0
91
Member Avatar for forhacksf

I need a little help please,here is my question: How can I get the current index in a jComboBox? I searched it on google and i cant seem to find any answer. I need to get the index of the item that I select from a Combobox. Please help

Software Development java
Member Avatar for JamesCherrill
0
253
Member Avatar for markdean.expres

Guys how do I save settings of a form like its background color, fonstyle, sontsize etc. I cannot save them as string or text into my access database.

Software Development vb.net
Member Avatar for PdotWang
0
196
Member Avatar for Wolxhound90

Hey all, I am trying to make a form that is blank and will add in 2 comboboxes, a textbox, 2 buttons and a checkbox next to each other in a row. I want the controls to be part of an array, so that all controls on a row are …

Software Development vb.net visual-basic
Member Avatar for PdotWang
0
192
Member Avatar for PM312

i have just installed VB2008 EXPRESS EDITION. i have added com component msflexgrid ,Getting error with this component An error occurred creating the form. See Exception.InnerException for details. The error is: Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)) how to resolve this.

Software Development vb.net
0
52
Member Avatar for turt2live

Hello, I recently took up a challenge to make a full screen pong game in java. So far it is full screen, it does the basics (bouncing off floor/roof/paddles) with a minor point system. I also added support for every 20 seconds it speeds up the ball by 1pixel per …

Software Development java
Member Avatar for turt2live
0
314
Member Avatar for Sky Diploma

Hey Guys, I am developing an APP using WxWidgets and some other cross platform frameworks. Then there is a new need into the project to use Bluetooth as a transmitter of Data between 2 devices. I have been using the Mingw compiler all along for developing my app and suddenly …

Software Development api c++
Member Avatar for jonsca
0
768

The End.