199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for jfunchio

I need help getting my function to overload the + operator to add a integer and a Rational object. Right now I am able to add two rational objects with my overloaded + function but not and integer and an object. I'm not really sure how to go about doing …

Member Avatar for Fbody
0
333
Member Avatar for livinFuture

I am currently writing a program that can calculate the number of total seconds in a user given number of hours, minutes, and seconds (in that order in hh:mm:ss format hh, mm, and ss being any number from 0-99). I'm not really worried for checking for errors in user input, …

Member Avatar for mrnutty
0
12K
Member Avatar for kruxena

Hi guys, can you please help me out. Scenario: I have 14 panels in my form, the user then input a number in the textbox. Then this textbox will now determine how many panels will be enable. My formula would be, userinputtextbox/0.5=panels to be open. Example: 3/0.5=6. So far this …

Member Avatar for kruxena
0
303
Member Avatar for diafol

Hi all. Got a bit of a problem with this. Here's my code: [CODE]<?php header('Content-Type: text/html; charset=utf-8'); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Untitled Document</title> </head> <body> <?php echo strtolower("TWIUBCÜ"); echo "TWIUBCÜ"; ?> </body> </html>[/CODE] OK, perhaps the header …

Member Avatar for diafol
0
5K
Member Avatar for nuttyniall

Hi My website if falling to bits around me and I cant see why!! All instances where I have used the ! operator in the php code such as [CODE]if(!isset($_POST['anything'])){[/CODE] Have stopped working and just return true which is causing nightmares with security ect. I have googled till im blue …

Member Avatar for nuttyniall
0
154
Member Avatar for ticktock

EDIT: I am so sorry! I have added my thread to the C# discussion thread instinctively wherein in fact I have been creating my application in VB.NET so sorry! Please transfer my thread to the appropriate location! Really sorry! Hey all I am currently trying to mess around with a …

Member Avatar for ticktock
0
183
Member Avatar for Polongo

Why my code in my VB-access database is not working. my add code is not displaying the inputted data it only displays the gridline in datagridview. I already connect the database access file. What's wrong? Can anybody help me? thankz.

Member Avatar for ChrisPadgham
0
87
Member Avatar for PinoyDev

hello guys! Its been a long time posting here since I've switch to dot net...But I CANT LEAVE VB6 in programming.! I just want a little help.. Anybody can recode this statement regarding connecting to SQL SERVER local database.. The connection is succesful. But i want to trap the error …

Member Avatar for PinoyDev
0
106
Member Avatar for jfunchio

I'm having trouble figuring out how to overload the +=, -=, *=, and /= for a program that does operations with rational numbers. Could someone please help me out. [CODE=C++] #include <iostream> #include <string> #include <cmath> using namespace std; class Rational{ public: int num; int den; bool neg; Rational(int n, …

Member Avatar for embooglement
0
547
Member Avatar for pucivogel

How can i store in an integer array a negative number of type string?i mean i want it to be recognized that it is a negative nr.

Member Avatar for mrnutty
0
82
Member Avatar for cavern

hello, im using vb6 with access 2007 (.mdb) im using adodc connection. my question, how to prevent if the data existed in my database. i've put primary key in my database and i need an example like it's giving msgbox "data existed!" anyone can help me? thanks.

Member Avatar for ChrisPadgham
0
87
Member Avatar for markdean.expres

Guys, I am in a trouble with this error: "An attempt has been made to free an RCW that is in use. The RCW is in use on the active thread or another thread. Attempting to free an in-use RCW can cause corruption or data loss." I am not sure …

Member Avatar for markdean.expres
0
119
Member Avatar for lit108

I am having a little bit of trouble coding a registration form. The text fields are no problem, its when I have a selection of checkboxes asking why they chose to register with this particular website. There are 3 checkboxes and 3 fields in the mysql table for them, the …

Member Avatar for lit108
0
153
Member Avatar for jamd200

This program allows one to use many different sorting algorithms to sort an iterable. [code=python] from time import* from random import* #GNOME SORT def gnome_sort(lst): pos = 1 while pos < len(lst): if lst[pos] >= lst[pos-1]: pos = pos+1 else: temp = lst[pos] lst[pos] = lst[pos-1] lst[pos-1] = temp if …

Member Avatar for jamd200
0
347
Member Avatar for jamd200

I coded a simple tic-tac-toe "from scratch" (haven't included a GUI or anything of that sophistication). I would like to know about any improvements that can be made to this game. Thank you. [code=python] import random board_lst = [] class board: def __init__(self, rows, columns): self.rows = rows self.columns = …

Member Avatar for jamd200
0
231
Member Avatar for paulablanca

Hi guys! I need some help. I have two listviews that uses drag and drop to pass values, however I can only pass the value of my first column. What I need is to pass the value of my two columns. Thanks! God Bless.! :)

Member Avatar for Unhnd_Exception
0
3K
Member Avatar for johmolan

I use the binding navigatorsaveitem to save my data back to the database, but the way I am doing it today seems to take an awful lot of time. Ex: [CODE]Private sub .....SaveItem_Click(Etc Etc Etc)Handles ....Click Me.Validate() Me.Process1BindingSource.EndEdit() Me.Process2BindingSource.EndEdit() Me.Process3BindingSource.EndEdit() Me.Process4BindingSource.EndEdit() Me.Process5BindingSource.EndEdit() Me.Process6BindingSource.EndEdit() Me.Process7BindingSource.EndEdit() Me.Process8BindingSource.EndEdit() Me.Process9BindingSource.EndEdit() Me.Process10BindingSource.EndEdit() Me.Process11BindingSource.EndEdit() Me.TableadapterManager.UpdateAll(Me.DataSet) 'Then …

Member Avatar for johmolan
0
328
Member Avatar for RGStrat

So I have a script that is processing results of a form. What I'm trying to do is to set a variable by the results of a dropdown. This variable is a filename. Here is the PHP that processes it: [CODE]if ($industry = "Coal and Power") {$link = "Coal-and-Power-portfolio.pdf";} elseif …

Member Avatar for RGStrat
0
104
Member Avatar for AdriftUniform

Hi, I am looking for some information about using Underscores ( _ ) in usernames. I currently have a friends system where a user can become friends with another user and this is placed into a database. I then have a query to display all of the users friends, which …

Member Avatar for AdriftUniform
0
181
Member Avatar for jamd200

So far, my simple numerical analysis program has differentiation, integration, first-order ODEs and Taylor Series. What else can I add to this? [code=python] from math import* """Single-variable calculus.""" #DIFFERENTIATION def gen_differentiation(f,x,h): #finds the first derivative of any mathematical function return (f(x+h)-f(x))/(h) def special_differentiation(f,x): #finds the first derivative of specific functions …

Member Avatar for jamd200
0
162
Member Avatar for asusplay

I need some help with something which in theory shouldnt be complicated but really has me stumped! I'm not sure whether the answer to this lies in the php code or in the SQL statement. I am doing a bonus comparison so I am extracting 2 columns from the table: …

Member Avatar for ad7u
0
180
Member Avatar for JordanHam

int arr[]={4,5,6,8,1,6,4,7,1,2}; and I want and array to equal the ln of those values in an array? I dont why I am having so much trouble with this. Thanks!

Member Avatar for JordanHam
0
129
Member Avatar for pucivogel
Member Avatar for Moschops
0
135
Member Avatar for neuro

i tried my writing my first script today :) it is the solving the quadratic equation script and i found it in an older C++ book i'm working through i made some edits to the script since i'm using Dev C++ as my compiler (had this problem but fixed it …

Member Avatar for neuro
0
179
Member Avatar for b1izzard

Binary search tree for strings. I tried my best to trace out the error but in vain Need help. [CODE] #include<stdio.h> #include<stdlib.h> #include<string.h> struct bstree { char keyword[25]; struct bstree *lnode,*rnode; }*root; void insert(struct bstree *new,struct bstree *old) { if((strcmp(new->keyword,old->keyword))<0 && old->lnode==NULL) { old->lnode=new; } else if((strcmp(new->keyword,old->keyword))<0 && old->lnode!=NULL) { …

Member Avatar for b1izzard
0
948
Member Avatar for restrictment

Hey Everyone. I recently created a game in abode director, and lost the .dir file. I currently ONLY have the .dcr, and back when I created the game, I added an obnoxious 'permanent' banner to an old affiliate who did not support me back. (So I would prefer to no …

Member Avatar for restrictment
0
88
Member Avatar for DJWK

Hi, I guess it's time for my first post here :) I've managed to create a php script that can run through a MySQL table and print out OPTIONS for a HTML SELECT tag. That was Google 101. But I want to keep my php and HTML separate so i've …

Member Avatar for DJWK
0
129
Member Avatar for ben.marks

Hi all, I am trying to output data from a MySQL database from the column, 'category', however what I have at the moment isnt working. Any suggestions please? [CODE]$catrow = mysql_query("SELECT category FROM tuck"); $cate=array(); while($category = mysql_fetch_assoc($catrow));{ $cate[]=$category; } echo $cate[0]; echo $cate[1];[/CODE] Thanks

Member Avatar for ben.marks
0
176
Member Avatar for Bandit390

Ok, I'm new to asp, but not to visual studio(mainly c#). I have a webform that I want to put buttons, labels, etc on. What is the normal procedure for the layout? Do I create a bunch of divs on the form and use them? Also, when I have a …

Member Avatar for Fortinbra
0
189
Member Avatar for 09tikimo

I really need help, my 1st assigment is due tomorrow and i've been working on it for a really long time and is just not getting it!!!! So please help me, it will be greatly appreciated. These are the questions that I haven't been able to figure out. Add a …

Member Avatar for Akill10
0
219
Member Avatar for mmhp

Hi, I'm trying to learn delphi. I'm writing a binary tree unit and so far I only have insert and check size. I'm having trouble with inserting a new node into a nonempty tree. Got access violation at runtime and while in debugging mode, the value of sRoot^.Data is in …

Member Avatar for mmhp
0
148
Member Avatar for vn412

Hi I m using datagrid my cloumns are coming dynamically. Here is the attached view I m getting. For first column I get value from database. now for each cloumn I have to get values for which i have to traverse multiple records from database I want each cloumn should …

Member Avatar for ShahanDev
0
747
Member Avatar for Foxfreezer

Hi, I have a programming project in which I have to create a game where the user can select the upper bound of numbers and difficulty they want and then guess the secret number within that bound and difficulty. So far, this is my code. It compiles and allows the …

Member Avatar for WaltP
0
193
Member Avatar for rmbrown09

Hello, new C++ user at University I am trying to find what would be the best way to count and display the even and odd numbers in a sequence. For example, if the user inputted the sequence 2 - 6, then there would be 3 evens and 2 odds, this …

Member Avatar for mrnutty
0
621
Member Avatar for McvR

Hello all, As a newbie in C# I am searching numerous forums and tutorial to do my reading and learning. I was also searching for a solutin for Login by a separate form and found on this forum a tread from May 14th 2010 called : Enabling and disabling a …

Member Avatar for McvR
0
174
Member Avatar for Carrots

Hi, I have an expression tree in which the nodes are operators (union, intersection etc represented by a string "/u") or the nodes are std::sets. How could I access the std::set's values in order to carry out the tree evaluation using the operator functions(set_union(), set_intersection() etc) ? The expressions are …

Member Avatar for arkoenig
0
167
Member Avatar for MasterGberry

I am trying to write a simple Batch File to launch an exe using some basic CMD PRMPT functions. I know exactly what I need to do, but my only problem is I don't know how to detect the Desktop Folder? What if its in Documents and Settings, or if …

Member Avatar for MasterGberry
0
2K
Member Avatar for XodoX

So, I have this array and pointer: char array [6]; char *ptr; And this list of array [6] addresses and contents: 0x5010 a 0x5011 b 0x5012 F 0x5013 H 0x5014 X 0x5015 Y I'm looking for the values of the following: a) &array[0] b) array[0] c) *ptr d) (*ptr)+2 e) …

Member Avatar for Fbody
0
255
Member Avatar for Sparky_

Greetings, I am about 4 hours into JAVA and am making a big mess of it. Last night (at home) I installed the latest JAVA and NetBeans and got a "Hello World" Today I installed the 2 at work and am getting errors involving: "NoClassDefFoundError" (even with what worked last …

Member Avatar for ~s.o.s~
0
180
Member Avatar for JordanHam

I have a function that takes an array, calculates the ln of that array into another array called lnt. I would like to pass lnt back to the main. I know it has something to do with int *foo or something but I cannot seem to get a code to …

Member Avatar for Fbody
0
174
Member Avatar for SolidSora

I'm trying to get my main function to read my class file. It doesn't compile. Here is my main file: [CODE]#include<iostream> #include<iomanip> #include"countertype.h" using namespace std; void main(){ CounterType counter = CounterType(); counter.setCount(2); counter.getCount(); }[/CODE] And my class code: [CODE]#include<iostream> #include<iomanip> using namespace std; class CounterType{ public: int count; CounterType(){ …

Member Avatar for JasonHippy
0
223
Member Avatar for 123mehran

I want to write a web calculator in asp.net with vb. I am a beginner in vb.net and asp.net and i want to learn both of them with practice please help me i really need you friends thanks:confused:

Member Avatar for 123mehran
0
1K
Member Avatar for ayarton

Here is my current code, and it works fine to choose one image and copy it, however, I cannot figure out how to allow multiple file selections then copy them to a new folder. Please help! [CODE]Imports System.IO Public Class Form1 Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As …

Member Avatar for codeorder
0
2K
Member Avatar for Zvjezdan23

[CODE]// This is a program that displays the choice the user picks using a Switch Statement #include <iostream> #include <string> using namespace std; int main() { // Underneath A switch program that shows the user his input choice string word1 = "Achieve"; cout << "Welcome to Your AccuWeather Report Screen." …

Member Avatar for alaa sam
0
189
Member Avatar for tape enterprise

I want to output my data into a list ordered like this [CODE] <ul> <li>[I]category name[/I]</li> <ul> <li>[I]category item[/I]</li> </ul> <li>[I]category name[/I]</li> <ul> <li>[I]category item[/I]</li> </ul> </ul>[/CODE] when I try a foreach loop like this [CODE]<? $previous_catagory = null; ?> <? foreach ($providers as $provider): ?> <? if ($provider['catname'] !=$previous_catagory) …

Member Avatar for tape enterprise
0
100
Member Avatar for PuneetSeo
Member Avatar for judithSampathwa

¬Hi there, I have a quaetion in datagrid view. In datagridview I have add a constaint and if the user didn’t meet the reuirment I add an error text. Which shown below [CODE] if (c == 2) { MessageBox.Show("Cannot select the file name","Message",MessageBoxButtons.OK,MessageBoxIcon.Warning); dgvForm.Rows[e.RowIndex].ErrorText = "Cannot select the file name"; …

Member Avatar for judithSampathwa
0
255
Member Avatar for ravenous

I have to calculate the modal value of [icode]std::vector< int >[/icode] quite often, so I thought I'd share my general method for people to look at, use and/or comment. In my case, the vectors usually contain values in the range 0 - 255. The code first creates a [icode]std::vector< int …

Member Avatar for vijayan121
0
1K
Member Avatar for z00t

I'm trying to construct a rectangle & compute its area using the getWidth & getHeight methods.. but i cant figure out for to construct a freakin rectangle!! I keep getting the same error when i go to complie it.. no matter how hard i try :p "Cannot find symbol" [CODE]import …

Member Avatar for ajst
0
160
Member Avatar for apanimesh061

Hi there, I am new to using Visual C++ 2005 enterprise Edition. I do not know how run a C++ program in it. It's environment is similar to Turbo C++ 5.5 IDE but still I can't see any 'Run' command anywhere and Ctrl+F9 does not do anything !!!!! Please help …

Member Avatar for alaa sam
0
202

The End.