199,132 Archived Topics
Remove Filter ![]() | |
[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: … | |
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 … | |
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 … | |
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 | |
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 … | |
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 … | |
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 … | |
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 … | |
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. | |
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); … | |
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 … | |
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 … | |
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 … | |
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 | |
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; … | |
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 | |
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 … | |
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 … | |
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 … | |
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 … | |
[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 = … | |
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 … | |
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 … | |
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? | |
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) … | |
Hi, i want to accept data from user in messagebox using a variable. and later i want to use that variable. please help me. | |
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] … | |
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) … | |
how to show word,rtf,pdf file in asp.net plz give me code thnks in advance | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
How to show image in image control from ms access database. | |
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 … | |
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 | |
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 … | |
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 … | |
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 … | |
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 | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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] … | |
Is it possible to create operator overloads for non-objects (like typedef-ed arrays)? | |
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 = … | |
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 = ""; … |
The End.