199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for BobTheLob

Hey, so i've looked around online for a bit, and after finding similar, but not exact (as in it doesn't help me), i'm gonna post my problem here :P. I'm working on a class to handle Complex numbers. This is going to require a lot of operator overloads and the …

Member Avatar for BobTheLob
0
256
Member Avatar for caltech

My assignment is to create a program computing all kinds of employee data. Just beginning, trying to put together the basis for the rest of it, here's my code: [CODE]#include <iostream> #include <cmath> #include <iomanip> #include <fstream> using namespace std; int GrossPay(int,int); double Tax(int); int main () { ifstream empdata; …

Member Avatar for caltech
0
196
Member Avatar for steve_Student

Hi Here is my question. My project is basically a addition test for 5 to 9 year old children. On my form I have a button which when clicked, it inputs a number from 1 to 10,( which is chosen by the user via an combo box drop down), into …

Member Avatar for steve_Student
0
324
Member Avatar for Phil++

Hello, I'm trying to create an application that when you click on a button, it just displays a string but it doesnt work. Here's the code: [code] import java.io.*; import java.awt.*; import java.applet.Applet; import java.awt.Graphics; import java.awt.event.*; public class main extends Applet { TextField input; Button convert; public void init …

Member Avatar for Ezzaral
0
280
Member Avatar for colmar

I am trying to make a stock control work sheet and I am having problems with a circular reference. Take cell B2 and place this formula in it =(A2+B2). I now have a circular reference. I have turned on the iteration in Tools,Options calculation and limited the maximum iterations to …

Member Avatar for monarchmk
0
117
Member Avatar for thisischris

So I'm trying to overload the extraction operator, but I keep getting an ambiguous overload error. Here's the extraction that I'm using: [CODE] bool cc = false; cout << CC; [/CODE] And here's the overload function. [CODE] ostream& operator<< (ostream &out, bool &C1){ if(C1) out << "A"; if(!C1) out << …

Member Avatar for caut_baia
0
216
Member Avatar for SWEngineer

Hello, I have installed the [I]latest [/I]versions of [B]OpenCV [/B]and [B]Eclipse CDT[/B], but not able to make OpenCV to be used within Eclipse CDT. Any ideas on how can I do that? Thanks a lot.

Member Avatar for SWEngineer
0
170
Member Avatar for Behseini

Hi Guys, Here I am trying to create a very simple function to change a Frame background color as by a btn event handling as following: [CODE] from Tkinter import * class App: def __init__(self, parent): self.myParent = parent self.fm = Frame(parent) self.fm.pack() self.btnBlue = Button(self.fm, text = "Blue") self.btnBlue.bind("<Button-1>", …

Member Avatar for Behseini
0
158
Member Avatar for newbiecoder

Hello I am trying to write a form that checks user mail address by existence of "@" character. I wrote these codes below but when I enter information at the html file I get this warning: Notice: Use of undefined constant mail - assumed 'mail' in C:\xampp\test\send_simpleform.php on line 2 …

Member Avatar for newbiecoder
0
147
Member Avatar for abcdabid

Hi all I am trying to create ClistCtrl with check boxes and different columns in it. BUT [CODE] ListCtrl m_listBox; int i; CString strTemp; m_listBox.Create(WS_CHILD|WS_VISIBLE|LBS_STANDARD|WS_HSCROLL, CRect(10,10,200,200),this, 111); m_listBox.InsertColumn(0, _T("Column 1") , LVCFMT_LEFT, 50, 0); m_listBox.InsertColumn(1, _T("Column 2") , LVCFMT_CENTER, 100, 1); m_listBox.InsertColumn(2, _T("Column 3") , LVCFMT_RIGHT, 100, 2); m_listBox.SetExtendedStyle(m_listBox.GetExtendedStyle()|LVS_EX_CHECKBOXES | …

Member Avatar for abcdabid
0
344
Member Avatar for cppgangster

hi, how to declare static data memeber of a class and how to define it? [CODE] class Hop { protected: static struct NStrct{ int nCount; } } [/CODE] how to implement it? for example if the static member is "static const count", you would declare the static member in implementation …

Member Avatar for cppgangster
0
175
Member Avatar for hairpull

I'm trying to write a code that validates that an integer is between 1 and 9. Then it prints out that integer as a word. User inputs 0 to exit program. Example: [I]Enter an integer between 1 and 9 5 Integer entered, five Enter an integer between 1 and 9 …

Member Avatar for jon.kiparsky
0
128
Member Avatar for Nfurman

hello, iam very new in jQuery. Need help asap please. on my asp.net page I want to use two jQuery functions. 1. Clears textBox when user clicks on it. 2. Clears all inputs when user clicks on btnCancel button. I made two functions [CODE] //clears value from onclicked input $(document).ready(function …

Member Avatar for pritaeas
0
132
Member Avatar for gleb

I have read lots of Xpath tutorials but don't know how to query a xml document. So I have an XML document and a query like this /bookstore/book/title How do I conduct the search? Sorry if this question is badly phrased but I am very confused.

Member Avatar for iceandrews
0
109
Member Avatar for nabajyotip

hi i have a .so file written in c and i am trying to use it in a c++ program but when i try to compile the c++ code it gives me undefined reference to function getNearestAP() which is a part of my .so file.To add to this i tried …

Member Avatar for nabajyotip
0
66
Member Avatar for PtblDuffy

Hello, I've been looking at this problem for a few hours, and I can't figure it out. We had to test this code and fix it if we find errors (it's a splay tree): [CODE] public class SplayBST { Node root; int count; int level = 0; public SplayBST() { …

Member Avatar for PtblDuffy
0
220
Member Avatar for asymptotes14

ok i have this code working -but i have few more questions guys, -i wanted to put error trapping in the seatRes() function but have no idea how, -i also wanted to make a function that will be able to cancel a reserve seat, and change it to another seat …

Member Avatar for daviddoria
0
158
Member Avatar for lu25

why does this[CODE]movw (%eax), 4(%esp)[/CODE] generate an error messgae after invoking the assembler. using GAS.

Member Avatar for lu25
0
86
Member Avatar for Java NOOB

If I want to compare C, D, and E how do I do that with an equals method? [CODE] public class Fraction { /** * @param args */ public static void main(String[] args) { { Fraction c, d, e; c = new Fraction(5, 8); d = new Fraction(1, 2); e …

Member Avatar for jon.kiparsky
0
153
Member Avatar for sneha mehta

here is a program code i want to create an application that create frame and write the string on it and when i click the close tab of frame it will close the frame please help me...its very urgent.. [code]import java.awt.event.*; class SampleFrame { SampleFrame(String title) { super(title); MyWindowAdapter adapter …

Member Avatar for Taywin
0
135
Member Avatar for eline83

If I have an array of entries 5, 10, and 20. How many heaps are there for each? Since there are two sorting algorithms, bottom-up and top-down, Are there 2 heaps for each entries? Help me guys :D

Member Avatar for Ancient Dragon
0
110
Member Avatar for Joseph Schrag

I have an existing database design which I would like to normalize. Essentially, the table causing me problems is one with about 150 columns. The table holds live data for a natural gas well. So, there are columns for the various temperatures, pressures, etc. The data types of these columns …

Member Avatar for Joseph Schrag
0
166
Member Avatar for yeleek

Hi, I've a multi line string, which I want to delete the first 22 lines from, I then want to use re.findall (which appears to only work on strings). Is there an easier way to do it than writing the string to a file, reading in as a list, deleting …

Member Avatar for TrustyTony
0
134
Member Avatar for johnbo100

Hi All So I have 2 forms form 1 has a list of checkboxes on it form 2 needs to check if one of the form 1 checkboxes is checked. Please see the code below: texton is a value passed from a function parameter of type string [CODE] If (Form1.Controls.Item("checkbox" …

Member Avatar for johnbo100
0
421
Member Avatar for Usmaan

Hi there, If I have two Forms, for example: Form1.cs and Form2.cs and one Form1, there is a button which if clicked, it would close Form1 and open Form2. How would you go about doing that? And is there any better way of implementing this? (This is something I'm considering …

Member Avatar for Usmaan
0
93
Member Avatar for cybrix101

Hi all, I'm wondering if someone can help me. I am trying to write a basic program which involves a square moving across a JPanel in a random direction, and the user needs to click on the square to get a point. Now I have everything up and running but …

Member Avatar for Ezzaral
0
150
Member Avatar for gravexxx

I am not showing all the code it is not necassary. TheInternets : TWebBrowser; I wrote a program to navigate to a server that my friend has up. Then it should get a result and display it. This takes about a second to execute which is really bad for my …

Member Avatar for Wolfgan
0
161
Member Avatar for plang007

I got the first function tagReader to work, but how do I get the program to read the other functions such as getEmployee, paycheck, repeater, valid, and header. Here is all I get for the output: Results from tags1.txt : Cylinder: bsharkdata 1782 12.00 82.90 Cylinder: ftmyersfeb 7150 11.00 32.89 …

Member Avatar for WaltP
0
207
Member Avatar for oree

my problem is when i compose an email in html i get mail@127.0.0.1 as a sender. if i take off the HTML format then everything is ok. Here is the headers: [CODE]$headers = " From: mywebsite.ca" . "\n" . "Replay-To: Do Not Replay". "\n" . "X-Mailer: PHP/" . phpversion(); $headers …

Member Avatar for oree
0
152
Member Avatar for jasoncastro

Hi! Is it possible to read from specific row on a notepad? For Example: Jay Mark Christian I only want to display the word Christian which is on the third row, what will I do? can you please show me? Thanks! Here's my code: [CODE]#include <iostream.h> #include <iomanip.h> #include <fstream.h> …

Member Avatar for WaltP
0
127
Member Avatar for Jessurider

hey i've made a project...........in that form1 is the main page............can anyone tell me how to make form2 as the main page.............

Member Avatar for Jessurider
0
60
Member Avatar for muze

hello guys... I am trying to play a wave file in a small asp.net project. Now I want to embed HTML in asp.net so that I can use [B]<object>[/B] tag of HTML to play the wave file. Following is the code to get row index from gridview, from the row …

Member Avatar for Fortinbra
0
246
Member Avatar for Akay2

I need some help. I want to make a secure loginsystem and here is my script for the system that checks how many times you tried to login ($try). db.php is the script for connecting with my database. The system isn't in connecton with the loginsystem it is only the …

Member Avatar for Akay2
0
100
Member Avatar for margeaux54

This is my encyription and decyrption program. However there some mistakes that ı could not solve them. And ı set everything but when ı press q, my program should quit, ı tried some things but it is not appropriate for c++ rules. #include <iostream> using namespace std; void encyrpt(void); void …

Member Avatar for margeaux54
0
187
Member Avatar for tcollins412

i am using the following code to submit a form: [CODE] <script> function marktaskcomplete(){ document.forms["markcomplete"].submit(); } </script> <? if ($_POST['markcompletevalue']=='yes'){ include "dbconnect.php"; $taskid=$_POST['taskid']; $query="UPDATE tasks SET status='0' WHERE uid='$id' AND id='$taskid'"; $result=mysql_query($query); if ($result){ echo "<script>location.href='?goto=taskmanager'</script>"; }else{ echo"fail"; } mysql_close; } ?> [/CODE] and when i try to submit more …

Member Avatar for tcollins412
0
251
Member Avatar for jogendar

i want to implement client server communication through wirless network in java,by using Socket,ServerSocket classes can i connect two computers with wireless connection???

Member Avatar for jogendar
0
74
Member Avatar for raghujosh

I want to pass the checkbox values from my form to another PHP file upon clicking the next hyperlink. But I am unable to do so. I have javascript in my form which checks that only one checkbox is selected. To use this javascript, I need to name all my …

Member Avatar for raghujosh
0
1K
Member Avatar for Jessurider

can anyone help me........... i've created a form1 with a progressbar............and i want the form1 to close at the time when the progressbar reaches 100.........and at the same time i want form2 to display............ can anyone help me to do that............

Member Avatar for Jessurider
0
86
Member Avatar for 303factory

Hi, I was wondering if it is possible to reverse the way my enum variables work In our storage XML Files all the data is stored as integers, which I want to translate into strings using a lookup table. I thought enums would be perfect for this but I can't …

Member Avatar for 303factory
0
112
Member Avatar for grabit

Hi Folks I am working on a forum for a customer and I am having problems passing a url variable; This the code i have on a search page <cfelseif cgi.http_referer contains 'forumViewMessages'><cfset linktext = 'Forum Postings/Replies Page'><cfset lastpage = 'forumViewMessages.cfm?#linkVariables#'> </cfif> <cfoutput>#lastpage#</cfoutput> <cfabort> the output on the page when …

Member Avatar for dipakatcvrca
0
272
Member Avatar for Tarkenfire

Okay, so as a project for one of my classes I need to make a basic drawing program in VB that can do three things: [LIST] [*]"Draw" with a brush of some sort [*]Clear the screen [*]Perform a flood-fill (paintbucket action) [/LIST] I decided to do the first two tasks …

Member Avatar for Tarkenfire
0
941
Member Avatar for Sibuns

Hey, i just start working with string and i am totally noob =). So i would like to ask you if you can help me... I have some programs to write, but i have a little problems to get the code working... Ok first question is, how do i make …

Member Avatar for HASHMI007
0
96
Member Avatar for Puertorro

Hey guys! I have a school project and I cant figure out the coding to make it work correctly. This is what I am supposed to do: Write a class with a main() method and two static methods. Your program should prompt the user for an integer that is no …

Member Avatar for mKorbel
0
356
Member Avatar for vijeevvv

Hi, In my proj i need to populate a gridview based on the selected value. I have abt 5 to 6 fields for searching including dropdown list and textboxes. Dropdown list is for country, region etc.. and the textboxes are for from_date and to_date. i'm using ms-access DB. so when …

Member Avatar for vijeevvv
0
215
Member Avatar for vijeevvv

In my proj i'm using ms-access DB.. i have two fields namely sms_date,sms_time.. i myself enter the records to the DB.. I need to populate the gridview with the records within the given range of date.. i hav a calendar control to select the date(mm/dd/yyyy) and user should type the …

Member Avatar for vijeevvv
0
119
Member Avatar for HASHMI007

i make this progrm . first i generate this of 100 number . then user cheaked the user how many time number is repeated in this series. but i want random series of 100 number . please check it & how to create a random series in this program. [CODE] …

Member Avatar for HASHMI007
0
181
Member Avatar for Violet_82

Hi there, I have added a validation script to this page [url]http://antobbo.webspace.virginmedia.com/webediting/documents.htm[/url] but it is not working the way I want it to, I am sure I made some silly mistake. Basically I want to make sure that people actually input something in the form below before submitting it. If …

Member Avatar for tcollins412
0
211
Member Avatar for Dean_Grobler

Hello there, This is just a quick question. You know that servlets respond by printing out dynamic HTML code? Well, is it possible that instead of doing that, the servlet just redirects back to the HTML form that send the servlet the Form data in the first place? myHtml(sends form …

Member Avatar for Dean_Grobler
0
290
Member Avatar for margeaux54

ı could not solve non lvalue assignment problem in this example I thought for long time but ı could not find any answer if you can help me , ı would be very happy include <iostream> using namespace std; void encyrpt(void); void decyrpt(void); void menu(void) { char a; cout<<"(E/e) Encryption"<<endl; …

Member Avatar for margeaux54
0
150
Member Avatar for mukorera

Can anybody help me with java code to monitor system power,that is to check if a machine is running on battery or on ac power

Member Avatar for mukorera
0
96

The End.