132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Labdabeta

A friend of mine recently asked me to help debug some code. I looked through it and it was riddled all over with goto statements. I know why he uses them (he used to program mainly in assembly and batch) and I tried to explain why he should try to …

Software Development assembly c++
Member Avatar for Labdabeta
0
421
Member Avatar for subith86

Hi, I have overloaded assignment operator like below and it worked perfectly fine. [CODE]void Test::operator = (Test& obj) { this->a = obj.a; this->b = obj.b; } [/CODE] But when I googled more about this, I could see all of the examples used a different prototype like this [CODE]Test& Test::operator = …

Software Development c++
Member Avatar for subith86
0
135
Member Avatar for dantinkakkar

I'm currently developing a program that has a lot of different, say, components to it that have to be linked together in some sort of manner. Now, what I wanted to ask is, is it viable to create all of the components as separate executables and access them programmatically?

Software Development java
Member Avatar for JamesCherrill
0
121
Member Avatar for ickyrr

Hey guys, i want to create a card game in java. The game is called Tong-its.,i'm having a really hard time doing it.where do i start?Im wondering if i would use applet or jframe.

Software Development java
Member Avatar for JamesCherrill
0
230
Member Avatar for gatechie

i have a problem that i have been working on. i'm in need of some desperate help for someone can show me how to make this program work. [CODE] import java.util.Scanner; import java.io.*; public class LettersCounter { public static void main(String[] args) throws IOExceptions { //needed for scanner class Scanner …

Software Development java
Member Avatar for dantinkakkar
0
1K
Member Avatar for Johan__

[CODE]using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; namespace Booking { public partial class MainForm : Form { private double revenue = 0.0; private const int totalNumOfSeats = 240; private int numOfReservedSeats = 0; public MainForm() { InitializeComponent(); InitializeGUI(); } private void …

Software Development
Member Avatar for ddanbe
0
153
Member Avatar for koricha

lets say i enter this Array : [0 0 1 2 3 4 5 0 0 0] what should be the output of sparse array ? thank you

Software Development c++
Member Avatar for histrungalot
0
94
Member Avatar for lxXTaCoXxl

Okay basically I have a class that manages sound and it's volume is a floating point value with 1.00f being 100% and 0.00f being 0%. So the math is done in low values. Allowing more precise calculations. Anyways, I'm adding and subtracting from the value by 0.05f as per the …

Software Development
Member Avatar for skatamatic
0
172
Member Avatar for Sarwat Zodiac

Hi In VB6, I have a Combo Command, and I made meny steps iside it, it is about 48,000 characters, and I need more !! but I got this msg: "Proceduer is too large" !! so, what can I do to complete my steps !? Thanks.. Sarwat.

Software Development visual-basic
Member Avatar for Sarwat Zodiac
0
230
Member Avatar for marcmanlin2

how can i avoid data duplicate in the database? i mean if i add in the fields that has been already save it will still save. i don't know how to query or filter not to add the same info. i have the code below but it still save if …

Software Development vb.net visual-studio
Member Avatar for marcmanlin2
0
162
Member Avatar for rizzi143

Create a program to construct a binary search tree consisting of nodes that each stores an integer in Java, avoid duplication of values when inserting nodes in the tree. When a new leaf node is created list all the nodes in the path from the newly added leaf node to …

Software Development data-structure java seo
Member Avatar for ejosiah
0
262
Member Avatar for FelineHazard

Hi all, I want to know if there is a smart way in c++ to test if my variable (or pointer) was already initialized? For example, I have a linked list, and I want to add an item to that list. If would like to do some thing [CODE] if …

Software Development c++ linked-list
Member Avatar for Ancient Dragon
0
7K
Member Avatar for selman555

Hi all, I have question about sessions in web services (VB). I created a function that allows me to login to my web service. I created a session here and added some values I retrieved from a stored procedure. The code will explain more :) [code=vb] <WebMethod(EnableSession:=True)> _ Public Function …

Software Development session vb.net visual-basic
Member Avatar for thines01
0
280
Member Avatar for Eragah

[B]Ok so i have two classes a tester class and a class that has the variable of drawing an ellipse. The program prints out 4 faces with 4 different colors. I want to store the users choice of one of the four choices in an array. Can someone help me …

Software Development java java-swing
Member Avatar for thines01
0
336
Member Avatar for PutingPanday

HELP I NEED TO GENERATE A RANDOM ID FOR MY EXAM... NEED TO GET THE FIRST 3 LETTERS OF THE FIRST NAME....How do I do this?been searching for hours.. help greatly appreciated

Software Development vb.net
Member Avatar for thines01
0
135
Member Avatar for cheekangteh

Hi, i am facing a weir error.. bellow are the code that give by 32feet.net, it is (Bluetooth chatting sample) [CODE]Imports System.Net Imports System.IO Imports System.Net.Sockets Imports InTheHand.Net.Sockets Imports InTheHand.Net.Bluetooth Imports InTheHand.Net Public Class ChatForm Inherits System.Windows.Forms.Form Friend WithEvents MainMenu1 As System.Windows.Forms.MainMenu Const MAX_MESSAGE_SIZE As Integer = 128 Const MAX_TRIES …

Software Development vb.net
Member Avatar for thines01
0
218
Member Avatar for kristen237

Which command reads one character even if that character is a blank space? :?:

Software Development c++
Member Avatar for PrimePackster
0
209
Member Avatar for rithish

what is the use of malloc,calloc,realloc ?? i studied i didnt get proper knowledge .why instead of this why cant we use array???

Software Development c
Member Avatar for deceptikon
0
122
Member Avatar for DelphiGuy

Hello, basically I am making a program which uses OOP to draw objects onto a canvas and they constantly move, I am making a feature which will save the position variables as the objects move each time and then once a file is outputted it can be read again and …

Software Development oop pascal
Member Avatar for pritaeas
0
152
Member Avatar for Hitman Mania

Hey, I'm almost done my long program that I've been working on all week, but I'm stuck on this tiny problem where I can't seem to add more than one shape component inside a frame at the same time. [CODE]final Rectangle recComp = new Rectangle(); final Ellipse ellipseComp = new …

Software Development java
Member Avatar for ejosiah
0
157
Member Avatar for sujan.dasmahapa

I am trying to create a toolbar on my dialog, so I am creating it in the OnInitDialog() function, but the toolbar is not coming. please help me finding whats going wrong in this. Thanks Sujan [code] BOOL CDlgsViewDlg::OnInitDialog() { CDialog::OnInitDialog(); CToolBar m_FirstToolBar; if(!m_FirstToolBar.CreateEx(this, TBSTYLE_FLAT, WS_CHILD | WS_VISIBLE | CBRS_TOP …

Software Development c++
Member Avatar for sujan.dasmahapa
0
100
Member Avatar for MrAppleseed

I'm currently working on a dictionary library in C and would like to start using struct's for easy assignment. Now, I have several functions that need to be a member in said struct's. I have it working well using pointers, but my only problem is that I would like to …

Software Development c
Member Avatar for L7Sqr
0
112
Member Avatar for Zumie

Greetings everyone! im having my final project. My program is all about retrieve data from Excel Worksheet then show/calculate it in VB6. The problem im having here is i keep getting compile error "Procedure too large". I understand that VB6 procedure max is 64k and to make it small is …

Software Development visual-basic
Member Avatar for Sarwat Zodiac
0
1K
Member Avatar for uva1102

HI All, Whenever user clicked the check box and used the things... its should be updated the current column. Here is table table 1 2 table 2(current value) 1 = becaused one of the items been used for work. Could anyone please give me some example..

Software Development
Member Avatar for Mitja Bonca
0
120
Member Avatar for ceteris

im new in vb and i just create a simple calculation if i click the button for compute it will display the error please help me [CODE]Dim price As Decimal = txtprice.Text Dim quantity As Integer = txtquantity.Text Dim totalprice As Decimal = txttotal.Text totalprice = quantity * price[/CODE] [COLOR="Red"][B]working …

Software Development vb.net
Member Avatar for Reverend Jim
0
2K
Member Avatar for h0427

Hi, I'm working on a project and I am stuck on the AccountTest.java right at where the program is supposed to process the transaction-code within a while-loop. Below is the pseudocode for that was written for this particular assignment. This is my first post so I hope that I've formated …

Software Development data-structure gui java
Member Avatar for dantinkakkar
0
4K
Member Avatar for jaimin4829

[CODE] I m trying to make totaly disable mdi child form1 when another data entry form2 opened. Bcz by mistak on clicking frm1 frm2 go to back that i dont want to do. Me.enabled=false and frm1.sendto back. can't solve the problem. [/CODE]

Software Development vb.net
Member Avatar for M.Waqas Aslam
0
145
Member Avatar for choosechrist

i've come across many methods online to create a datetime picker within a datagrid view, but i haven't got a proper solution. i have a DGV which takes in truck no and date of arrival. i want the second column to appear as a datetime picker so the users can …

Software Development vb.net
Member Avatar for choosechrist
0
198
Member Avatar for irre

hi there im wondering about the difference between: int nr; if(!((nr--)%5)){...} if(!((nr--)%5)){...} and: int nr; if(!(--nr)%5)){...} if(!(--nr)%5)){...} is it right that in case 1 nr will be decremented after true/false comparison and in case 2 in advance? assuming nr=123456; in case 1 it would be true for second if.... and …

Software Development c
Member Avatar for WaltP
0
153
Member Avatar for marcmanlin2

please i need help on making data report which the database is access 2007 with accdb format. what connection will i use and how and sample codes. thanks a lot in advance.

Software Development microsoft-access visual-basic
Member Avatar for marcmanlin2
0
591
Member Avatar for Susmita_Sikder

hi all, when i run the program in console when i want to enter value the emp_name,basic are skipping and hra,da,gross,net are not calculating,pls give me solution where i am wrong? thank you in advance. the programme is : #include <iostream> #include<stdio.h> using namespace std; class Employee { protected: char …

Software Development c++
Member Avatar for zeroliken
0
161
Member Avatar for DelphiGuy

I'm having trouble getting GDI sample codes to work, I've seen the external packages and downloaded them but I couldn't get the same code to work and I believe it's because I don't know how to install the GDI packages properly, can anyone help me?

Software Development pascal
Member Avatar for DelphiGuy
0
209
Member Avatar for razamughal67

Hello everyone i want to get all file in a folder to a listbox using visual basic 6.0 example: i have many files in a foldre mp3,dat,mpg etc file in D:\musicfolder and we use a listbox and a timer or command botton when i click on command botton then listbox …

Software Development visual-basic
Member Avatar for razamughal67
0
5K
Member Avatar for bigzos

I am able to save the datagridview as an excel sheet but everytime i do it,the previously saved file gets replaced which i do not want..i want the file to be saved with a new name everytime [CODE]Private Sub Button4_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button4.Click Dim …

Software Development vb.net
Member Avatar for bigzos
0
2K
Member Avatar for Navlag

My code(below) displays only one "message" at a time and then prompts the user to delete the message in order to create a new one. How can I make it so that the user can constantly add new messages without having to delete the previous message? [CODE]import java.security.SecureRandom; import java.util.Iterator; …

Software Development api google-api java
Member Avatar for stultuske
0
341
Member Avatar for choosechrist

In my application, i have put a question on form closing if the user wants to save the changes?. But right now, i have just put it in default whether they make changes or not. I thought of prompting it on text change.. but the text automatically changes on load …

Software Development vb.net
Member Avatar for pROKO
0
454
Member Avatar for rayden150

first i tried with system.out.. then i tried this: [CODE]import javax.swing.*; import java.awt.*; public class Ejer1 { public static void main(String [] args){ JTextArea graphs = new JTextArea(); String [] graph1 = {"*********"}; String [] graph2 = {"%s\n%s\n%s\n%s\n%s\n", "* *","* *","* *", "* *", "* *","*", "* *","* *","* *","* …

Software Development java java-swing
Member Avatar for Xeno999
0
190
Member Avatar for pwnerboy

What we are to do is pretty much mentioned in the comments of the code. I have to make a class ARRAY, which searches a list etc... Right now I can't compile this and I'm so stuck. Please help :) Array.h [CODE] // Put comments about the class here. #ifndef …

Software Development algorithm c++
Member Avatar for mike_2000_17
0
894
Member Avatar for jnewman3

So I have a matrix class that must run on a unix/linux server. The main is a test file that is provided by the instructor. When I compile my code in visual studio it works fine except for test 8 because I can't figure out how to return a print …

Software Development c++ matrix-multiplication unix
Member Avatar for jnewman3
0
1K
Member Avatar for TrickyT

hi, all ... very new to java, but plugging along somehow ... however, i have an assignment that wants me to find the value of all of the inventory of a product and i have the entire code, but the method that i created to calculate the value ... calculateTotInvent() …

Software Development java
Member Avatar for TrickyT
0
191
Member Avatar for bivashkumar41

i m working on a project and i want to implement a java code such that if user enters a number say 5 then after submitting on the next frame 5 textboxes should be displayed?? please help me!!

Software Development gui java
Member Avatar for bivashkumar41
0
119
Member Avatar for jackmaverick1

[CODE] #include <vector> #include "Rab.h" class Envo { vector<Rab> items; };[/CODE] the error is: [ICODE]error: 'vector' does not name a type[/ICODE] I can't find ANYTHING that's wrong. Is someone else able to find it? BTW, Rab.h contains the class 'Rab'. Jack

Software Development c++
Member Avatar for jackmaverick1
0
86
Member Avatar for codedude

I have a Windows aplication where i want to click a link in a website automatically after an automatic login.Now i am done with automatic log in.but unable to click the link which is enclosed inside <a> tag eg: <a>to be clicked link</a> any help will be appriciated

Software Development seo vb.net web-browser
Member Avatar for markjames2012
0
2K
Member Avatar for dennysimon

hello all how to put more than one JLabel in a vertical direction,and right align by computing the length of each of JLabel.Text so the appearance like below Name: Position: age: thank you denny

Software Development java
Member Avatar for zeroliken
0
71
Member Avatar for bluealein56

I know alot of you guys get the same posts over and over about intro JavaII Classes, but I have tried to refrain from asking something that has already been solved and try learning on my own, but Im stumped. Im having trouble with this program, specifically at my calculation …

Software Development gui java java-swing oracle
Member Avatar for zeroliken
0
811
Member Avatar for knitex

I have recently started using VIM for writing java code so I'm still getting use to the things i can do with it. I'm having trouble compelling the file directly in vim. I would like to have it so i can use :compile to compile the programs and then it …

Software Development java
0
166
Member Avatar for HoneyBadger

Guys I have this string: [CODE]mystring = 'blue, pink, red, red, red, white, long, short, blonde, blonde'[/CODE] I want to: 1.) Split it into a list, 2.) Erase all duplicates 3.) Sort it out alphabetically so I did this: [CODE]mystring = list(set(mystring.split(', '))).sort()[/CODE] But why when I go to call …

Software Development python
Member Avatar for HoneyBadger
0
124
Member Avatar for Snow_Fox

I need to take in a sentence and break it up based on the individual words. I've been googling for probably 30+ minutes to 60 ish and I feel it's time I get some help on this one.. Ideally, there should be a way to break up a string possible …

Software Development c++
Member Avatar for Snow_Fox
0
250
Member Avatar for chuyauchi

I have problem on my program. Can anyone help me to fix it and explain to me a little bit? [CODE] #include <iostream> #include <iomanip> using namespace std; void displayResult(); void welcomeMessage(); void game(); int main() { welcomeMessage(); displayResult(); displayResult(frequency, expected, intRepeats); } // end main void welcomemessage { cout …

Software Development c++
Member Avatar for Ab000dy_85
0
122
Member Avatar for Contagious98

I cant seem to login into my crystal report viewer. It wants me to login with the user name and the password. I've already provided the UN and the PW during the crystal report database connection. I really do not know why it fails. I only have these codes. [CODE] …

Software Development vb.net visual-basic visual-studio
Member Avatar for Contagious98
0
215

The End.