199,114 Archived Topics

Remove Filter
Member Avatar for
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 = …

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?

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.

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 …

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 …

Member Avatar for ddanbe
0
153
Member Avatar for munitjsr2

have got this update script updating certain columns [CODE]update oppar set oppar_run_mode = 0, oppar_run_time = 0, oppar_interval_ind = 'N' , oppar_destination = '', oppar_run_date ='', oppar_run_interval='' where ( oppar_job_name, oppar_job_rec ) in ( ('CSCLM' , 'XYZ') , ('ARCLEVEXT' , 'LMN'));[/CODE] But there are cases where there is no record …

Member Avatar for seslie
0
173
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

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 …

Member Avatar for skatamatic
0
172
Member Avatar for riadh13

please i need to do a table in a form in wich a customer input his values and operations are calculated automatically (see picture), i am bad in javascript, can anyone help me. [IMG]http://img11.hostingpics.net/pics/920763plan.jpg[/IMG] [url]http://img11.hostingpics.net/pics/920763plan.jpg[/url] the customer input the 5 first values: monthly income, number for the 1st year, the …

Member Avatar for riadh13
0
129
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.

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 …

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 …

Member Avatar for ejosiah
0
262
Member Avatar for Ritesh_4

Hello, I need advise on the software to use to write a mini program which can be used to monitor the CPU temperature of a computer. The program to be written will also need to control the fan speed whenever needed. Which among the following can be used to interact …

Member Avatar for tungnk1993
0
170
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 …

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 …

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 …

Member Avatar for thines01
0
336
Member Avatar for BaxterWoofus

In Visual Studio 2010, I have a windows forms application frmMain.cs with a ComboBox. From the form itself I can access its value with cmbxYear.SelectedValue. I also have a DataSet.xsd file to bind to an rdlc report to a TableAdapter to present view data. The TableAdapter has a SelectCommand that …

Member Avatar for BaxterWoofus
0
229
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

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 …

Member Avatar for thines01
0
218
Member Avatar for kristen237

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

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???

Member Avatar for deceptikon
0
122
Member Avatar for scarcella

Hi, i am new to programming and have self taut myself PHP. I am very comfortable with PHP and know the gist of things. But my real set back is the terminology and logical or theory side of programming. Where must i begin to learn this, or what websites or …

Member Avatar for deceptikon
0
118
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 …

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 …

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 …

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 …

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 …

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..

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 …

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 …

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]

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 …

Member Avatar for choosechrist
0
198
Member Avatar for Arjun_Sarankulu

I have created Following Function which takes 2 parameter [CODE] CREATE OR REPLACE FUNCTION Inst_Param_Desc(constant_Val IN varchar2(2), display_name1 IN varchar2(40)) RETURN VARCHAR2 IS Front_Display_Name VARCHAR2(40); Enum_Id number(4,0); BEGIN select b.enumeration_id into Enum_Id from xyz b where b.display_name = display_name1; SELECT a.front_end_display_name INTO Front_Display_Name from abc a where a.enumeration_id = Enum_Id …

Member Avatar for Arjun_Sarankulu
0
129
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 …

Member Avatar for WaltP
0
153
Member Avatar for nyancat

Hello, I want to add another receiver to this contact form, he has to be bcc, and not shown as receiver but still receiving the message from the contact form: [code] <?php if(isset($_POST['submit'])) { error_reporting(E_NOTICE); function valid_email($str) { return ( ! preg_match("/^([a-z0-9\+_\-]+)(\.[a-z0-9\+_\-]+)*@([a-z0-9\-]+\.)+[a-z]{2,6}$/ix", $str)) ? FALSE : TRUE; } if($_POST['name']!='' && …

Member Avatar for pritaeas
0
150
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.

Member Avatar for marcmanlin2
0
591
Member Avatar for subrata_ushasi

Hi all, I am creating an cms/admin where I want a drop down consists of list of product and an another drop down consists of list of sub products. On selection a product ,the corresponding lists of sub product will be generated in sub product drop down. using javascript I …

Member Avatar for subrata_ushasi
0
268
Member Avatar for Persi

While displaying the data from the database on a text box, I can access only the first part of the name. For example, if the name is 'Five Star', only the name 'Five' is displayed. Can you help in this? I'm just a beginner. This is the code i've used …

Member Avatar for Persi
0
4K
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 …

Member Avatar for zeroliken
0
161
Member Avatar for arihantphp

In this code to upload multiple images to a different folder each time, it creates a new folder and moves files to it, but the validation part is not working ! if i remove the validation part the files are uploaded correctly!! I have mentioned using comments that in which …

Member Avatar for arihantphp
0
451
Member Avatar for kutchbhi

This is the project I am reading from . [url]https://github.com/sasatomislav/PHP5-OOP-Cart[/url] [CODE] class Cart { <snip> private function __construct() {} /** * Fetch Cart instance * * @return Cart */ public function getInstance() { if (NULL === self::$_instance) { self::$_instance = new self; } return self::$_instance; } } <snip> // initialize …

Member Avatar for pritaeas
0
265
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?

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 …

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 …

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

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 …

Member Avatar for pROKO
0
454
Member Avatar for martymaven

I want to select records from my table which have a date which is older than 200 days. The following code calculates that date and displays it on the page as '2011-08-10': [CODE] $todayDate = date("Y-m-d");// current date echo "Today: ".$todayDate."<br>"; //Subtract 200 days from today $rptdate = strtotime(date("Y-m-d", strtotime($todayDate)) …

Member Avatar for karthik_ppts
0
123
Member Avatar for sushmapotla
Member Avatar for Kognition

This is boggling my mind. I wrote a quick auto-loader and it appears to work like it is supposed to, except that it keeps changing the argument $class from the class name to "self". Here is the code (followed by further information on what I've tried): [CODE] public static function …

Member Avatar for Kognition
0
112
Member Avatar for gopi17

Hello all, Guys need some advise and some help regarding displaying data from database... so, basically this is what i'm trying to do, have a keyword (invoice_no)...i'm suppose to search the database, and the find record...the display the remaining attributes (document_no,pallet_no and so on) invoice.php [CODE] <FORM ACTION=".php" METHOD=get> <h1>Enter …

Member Avatar for gopi17
0
148

The End.