199,132 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for manny23

[CODE]ifndef POLY_H #define POLY_H class Poly { public: Poly() : first(0) { } void addTerm(double coeff, unsigned exponent); // add term (coeff^exponent) to the polynomial; // might just change coefficient of existing term, // or might insert new term; maintains terms // in order from greatest to least exponent private: …

Member Avatar for mrnutty
0
145
Member Avatar for programing

what the wrong for this code : [CODE]if (head==NULL)//1 if the list is embty cout<<"NO element in linked list "; else if { if (head==tail){ ///2- if we have one node delete head ; } [/CODE] how i can write the other case if valid addrese if the addrese in …

Member Avatar for programing
0
119
Member Avatar for missc

I have a C# WinForm application. On my Buttons I use the '&' (in the .Text properties) for Hotkey access. The strange behavior is that the '&' is converted to the appropriate underscore while in design mode BUT DOES NOT appear at Runtime. At runtime the Hotkey functionality works, but …

Member Avatar for missc
0
89
Member Avatar for choboja621

can you tell me what is the equivalent of: [CODE]flushall()[/CODE] in Turbo c++? Thanks! Im having a problem because of that. Or, what is the header file of it? Thanks AGAIN :D

Member Avatar for Narue
0
130
Member Avatar for pavankumarr

Hi, I want sample code to validate the dates that is to be in the format YYYY-MM-DD(2011-04-21). I had created two Textboxes to enter date and one Button Control. The date format to be entered in the Textbox should be exactly like YYYY-MM-DD(2011-04-21). If user enters any other format like …

Member Avatar for pavankumarr
0
2K
Member Avatar for Bar2aYunie

Hello, I've got a MySQL db which contain addresses. I also made a script to easily add new entries to the db with a number of columns. Now, I do know how to make a script to display what's in the db... But I would like to know how to …

Member Avatar for kekkaishi
0
101
Member Avatar for dyingatmidnight

Hi there, I'm having trouble figuring out the setTimer function. Does anyone know for an example of using it in a non-MFC application? I mean something simple like printing 'Hello World!' every 5 seconds or something just so I can get a better idea of how its all supposed to …

Member Avatar for Ancient Dragon
0
388
Member Avatar for King_Alucard

I got a homework problem, I kind of got the idea for the code but I'm getting errors when I compile it, can somebody give me an idea of what I need to fix so I can make this work. The task is to write a program that contains a …

Member Avatar for Akill10
0
256
Member Avatar for penguino138

Hi. I wasbwondering if there was a way to have the user input something to a string and then write that as the filename. Please use my example of the string deckname.

Member Avatar for penguino138
0
280
Member Avatar for Tinee

Hi, I created a member file name "ConverterA" but it keep saying has no member. Please help me in this situation. What does it mean? [CODE]class Resistance { private: string ColorA[9], ColorB[10], ColorC[12], ColorD[12]; int Resistances, Tolerance; public: int SelectedOP2(); int Option(); int ConverterA(string); int ConverterB(string); int ConverterD(string); int Converter(string); …

Member Avatar for Akill10
0
4K
Member Avatar for stupidenator

Hey all. I have been messing around with javascript for a while now and I am not all too good with it. I built a little javascript program that takes the input from a text box and depending on what's in there, it goes to a certain page. I am …

Member Avatar for almostbob
0
3K
Member Avatar for prishe

hi am having problem in saving datagridview data to excel file.. i have import excel namespace into my project but it shows [COLOR="red"] error : Namespace or type specified in the Imports 'class2' doesn't contain any public member or cannot be found. Make sure the namespace or the type is …

Member Avatar for jackbaker
0
491
Member Avatar for satiss7pwr

hey Friends, I want a simple help from you, I want a code that how to catch event of finger put on machine and how to catch the signal(message) from fingerprint machine (Like finger is valid or not) I have a code to connect with fingerprint device as below [CODE]int …

Member Avatar for satiss7pwr
0
415
Member Avatar for vincezed

Hi all, I want to know some details about savefiledialog.... can a form be opened on clicking the save button in savefiledialog... If yes can some one provide the idea or code... Thanks vince

Member Avatar for vincezed
0
127
Member Avatar for supriyabirje

hi.. just started learning ajax.. could you all please help me with this code.. when i execute i get this Resource id #3 I have posted the code below. there are two files.. 1) getvendorname.php 2) sales.htm (containing the javascript function) [CODE]<script type='text/javascript'> function getname() { var vendorID = document.getElementById("idvid").value; …

Member Avatar for urtrivedi
0
2K
Member Avatar for virendra_sharma

Hi , i need code , which is used for sorting in c# i.e. .sort method code., somewhere i read that they use quick sort algorithm , can anyone plz help me by giving the code. Thanks in Advance

Member Avatar for virendra_sharma
0
176
Member Avatar for alexaaxela

Basically im having problems programming an array as double. I have it as ' public arrytotal() as double ', however i keep getting the error messages 1. Error 5 Operator '+' is not defined for types '2-dimensional array of Double' and '2-dimensional array of Double'. C:\Users\Alex\Documents\Cafe Assignment\Cafe Assignmentconverthome\Backup\WindowsApplication2\Form2.vb 115 22 …

Member Avatar for Fungus1487
0
171
Member Avatar for hanvyj

At the moment I am parsing strings to enumerations using this code: [CODE] if (Enum.IsDefined(typeof(Color), input)) { colour = (Color)Enum.Parse(typeof(Color), input); } [/CODE] which has worked fine so-far, but I would like to parse lower case/mixed case, for example someone might input Red, but the enumeration is red or RED …

Member Avatar for abelLazm
0
2K
Member Avatar for cretaros

Here; is my scenario; A prisoner is admitted in a prison at this date:: [B]2011-05-05[/B], he was sentenced for [B]5 years[/B] so how do i calculate date additions so the results give me [B]2016-05-05[/B], as this is the exact date he is to be released from prison. the addition should …

Member Avatar for mKorbel
0
291
Member Avatar for emc22

I'm trying to create a class that calculates for the next possible coordinate for a Bishop Piece for my chess program and I encountered this problem. I used a JOptionPane to test for the results and I can't understand how it got that result. The first JOptionPane shows false because …

Member Avatar for emc22
0
169
Member Avatar for drummershuff

[CODE]import java.awt.*; import java.awt.event.*; import javax.swing.*; import java.util.*; import java.io.*; public class MuseumPanel extends JPanel { private JLabel label; private JPanel buttonPanel; private JButton week, day, hour, output; private Museum museumArray = new Museum(); private int numb; int[] weekArray = new int[3]; int[] dayArray = new int[7]; int[] hourArray = …

Member Avatar for parry_kulk
0
279
Member Avatar for mphst

3) Write a program that reads a 21 by 21 array of characters from a text file. It represents a maze. • Each position can contain either an X or a blank. The borders of the maze are covered by ‘X’ except start and exit points. • Read text file …

Member Avatar for TrustyTony
0
959
Member Avatar for benjaminFowl87

Hi My problem is. I'll break down the problem to make it clear. [CODE] <html> <head> <body> <!-- ajax call that opens a jQuery UI Dialog box --> <a href="#" onclick="$.ajax({beforeSend:function(request){$('#onboarding_accounts').show();}, complete:function(request){$('#onboarding_accounts').hide();}, data:'', dataType:'script', type:'post', url:'/proxy/account/load_create_account?method=get'}); return false;">Create New Account</a> </body> </html> [/CODE] It should be noted that the dialog …

Member Avatar for benjaminFowl87
0
1K
Member Avatar for NewOrder

i know that it puts the bytes into a buffer. But is that buffer is located somewhere in the memory? and doesnt it make the application slow if it uses that adapter?/Stream?

Member Avatar for JamesCherrill
0
108
Member Avatar for Marc.Gauthier9

Hello, Could any one plz tell, where am i going wrong. I am unable to popup msgbox if count=0. It will work only if i use MsgBox(""). I am unable to understand how it has anything to do with msgbox("") Private Sub txtstaffID_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) …

Member Avatar for rajasekar646
0
119
Member Avatar for padmak

Hi, i want to accept data from user in messagebox using a variable. and later i want to use that variable. please help me.

Member Avatar for rajasekar646
0
413
Member Avatar for Farhad.idrees

I have combo box of programme and another is courses.. when i select any programme combo box so courses combobox add courses with respect to programme... the problem is when select another programme so previously programm's course also included in combobox.. i want to remove previously courses..in courses combobox. [CODE] …

Member Avatar for Farhad.idrees
0
5K
Member Avatar for johng123

its probably a simple and rather stupid question, thousands of times asked.... i have a input box (1surf.info,check out link) I would like to replace it with a dropdown , again it would need to list the countries within the table. this is how it is right now, enter state(USA) …

Member Avatar for happytogether
0
154
Member Avatar for pankeel
Member Avatar for jackbaker
0
201
Member Avatar for bharath54321

I have created one Jframe mainframe which size is fit to monitor size. I have created another frame called subframe which size is 300,300 . My problem is when i open the subframe from the mainframe iam not suppose to use mainframe without close the current frame . How can …

Member Avatar for mKorbel
0
108
Member Avatar for Ravi.Srilatha

hi, I am new to these online threads .. i had a question: i am migrating vb6 to vb.net. the ini.file of vb6 has to be converted to app.config file, and we has to use this app.config in our code by removing ini file. how to create app.config for this …

Member Avatar for C#Jaap
0
283
Member Avatar for Cuchara2

I have the function pt_replace: [CODE]function pt_register() { $num_args = func_num_args(); $vars = array(); if ($num_args >= 2) { $method = strtoupper(func_get_arg(0)); if (($method != 'SESSION') && ($method != 'GET') && ($method != 'POST') && ($method != 'SERVER') && ($method != 'COOKIE') && ($method != 'ENV')) { die('The first argument …

Member Avatar for smantscheff
0
149
Member Avatar for Xcelled194

Hi guys, I'm making an Etch A Sketch program in C#. I have two buttons for the "knobs". Right now, I'm handling the mousemove event of the button to evaluate if the user is dragging the mouse up or down, and then updating the etch a sketch appropriatly. This works …

Member Avatar for Rashakil Fol
0
536
Member Avatar for abelLazm

Hey all I have to display organizational hierarchy or my company but it is quite hectic job... Can any one help me out. At this stage I am able to show for only upto 50 nodes but when I start adding nodes dynamically it gives out of bound exception can …

Member Avatar for abelLazm
0
138
Member Avatar for adobe71
Member Avatar for pankeel
0
74
Member Avatar for zebnoon

hye here is my code but it is not working plz help me. [CODE] FRd = txtBCode.Text On Error Resume Next Set Mydb = OpenDatabase("E:\Projects\TS\database\MyDb.mdb") Set Myrs = Mydb.OpenRecordset("SELECT * FROM ItemEntry Where[Barcode]= "&FRd, dbOpenDynaset) ' other data have to retrive. If Not Myrs.EOF = True Then txtINameS.Text = Myrs("ItemNameSize").Value …

Member Avatar for P.manidas
0
140
Member Avatar for anand4886

i am able to add items in listview at runtime ,but not able to add this items and subitems in database pls help me in code

Member Avatar for pankeel
0
94
Member Avatar for bkoper16

I am trying to make my program print out the contents of a vector containing objects of class type Checking i want it to print the balance of each element in the vector but when i try to use [CODE]cout<<checking[1][/CODE] all i get is nonsense characters here is what i …

Member Avatar for Chilton
0
110
Member Avatar for abhay1234

Hello, I am trying this.. [code] Imports System.Data.OleDb Public Class Form1 Dim conn As OleDbConnection Dim cmd As OleDbCommand Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click conn = New OleDbConnection("Provider=Microsoft.Jet.Oledb.4.0; Data Source=c:\nikhil.mdb") conn.Open() Dim row As DataRowView=ComboBox1.SelectedValue Dim row1 As DataRowView = ComboBox2.SelectedValue Dim row2 …

Member Avatar for P.manidas
0
332
Member Avatar for Joshua Kidd

Hello all, I am trying to make this login page for users, but when I go to login it gives me an Error or just does not work. Here is what I am using. [CODE]Imports MySql.Data.MySqlClient Public Class Form1 Public conn As MySqlConnection Private Sub Button1_Click(ByVal sender As System.Object, ByVal …

Member Avatar for Joshua Kidd
0
158
Member Avatar for bia

Need Hellpppppp I want to convert a digit into binary form how can i do this using C# plz help me i kno to convert binary to digit but can't do the reverse please help as soon as possible thanks in advance

Member Avatar for abelLazm
0
82
Member Avatar for gladtoplay5

Just a few days ago I was working on a encrypting program that would take a character and convert it to the corresponding number. while working on it I found that you could input multiple letters and it would loop through all the letters and I can't figure out why …

Member Avatar for gladtoplay5
0
124
Member Avatar for karlamadeus

Hi guys, I am a bit new to OOP in general, and I was just wondering if I am going around what I want to do in the right way. I am making a small game to try to learn OOP and in this game I have several classes for …

Member Avatar for snippsat
0
115
Member Avatar for tubby123

what does int main() return and to what does it return That is, in the code snippet, [code] int main() { int a=0,b=5,c; clrscr(); c=a+b; return c; printf("%d",c); getch(); } [/code] 1)What is the expected output ? 2)I tried compiling this and i dont get anything on the screen 3)In …

Member Avatar for Ancient Dragon
0
151
Member Avatar for RenanLazarotto

Hey guys! I'm going to start learning C/C++ (again), and I want to start with a very simple program. It should ask to the user a number and, if it is right, run a program. Its been a long time that I don't even touch anything from C, but I …

Member Avatar for Ancient Dragon
0
115
Member Avatar for Eric Cute

Hello Everyone, Im needing a bit of help here. First, Im trying to let client download a file from server and save it on client's pc. When client clicks on button "DOWNLOAD", it will call a servlet that will download the file. Expected outcome is that a SAVE AS DIALOG …

0
133
Member Avatar for gambit_1607

hi i'm using a jQuery Inline Modal Window. the code for it can be found here [url]http://www.sohtanaka.com/web-design/inline-modal-window-w-css-and-jquery/[/url] i currently have an array within a function in javascript. when i click on the appropriate link for the inline modal, the inline modal window appears. my function looks something like this [CODE] …

Member Avatar for gambit_1607
0
160
Member Avatar for stkarnivor
Member Avatar for mike_2000_17
0
582
Member Avatar for BEBELINDO

my code plays a midi java sound file , but i want to play it in a loop constantly ! can somebody help me please ! [code]import javax.sound.midi.*; import java.io.IOException; import java.io.InputStream; import java.io.FileInputStream; import java.io.FileNotFoundException; public class MidiPlayer{ public static void main(String[] args) { try { Sequencer sequencer = …

Member Avatar for Walter Scott
0
278
Member Avatar for cretaros

I want to dump or backup a mysql database on button click, i have the following logic, no errors bt it cant execute, can anyone help me in identifying the error. the code as follows: [CODE] try { String dbName = "xxx"; String dbUser = "root"; String dbPass = ""; …

Member Avatar for mKorbel
0
194

The End.