199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Slavi

Hello everyone! I've read a lot of articles on DaniWeb and I've decided to join your community! I have a university project to make a bank account system, which consists of at least 10 account classes, and 3 of them inherit from at least 2 other. The system has 1 …

Member Avatar for Slavi
0
1K
Member Avatar for ryantroop

While it may certainly seem "lazy" I spend a large portion of my time in javascript and I like the syntax for arrays. I cant seem to figure out if I can "prototype" the array "object" and give it methods that simply returns the appropriate function: i.e. $aMyArr = array(); …

Member Avatar for pritaeas
0
457
Member Avatar for sheerwoodjohn.caday

i search a lot of reference in web, but still im not satisfied to solve this problem, i used datetimepicker in vb.net to retrieve from database. i am using BETWEEN statement to search the specific date and its data. here is my code to search the data with specific date, …

Member Avatar for pritaeas
0
670
Member Avatar for SMYussef

Dear all, I am trying to write a code that would take in an array of numbers(salaries) and then calculating the mean and standard deviance. The number of salaries is first asked from the user, therefore the number of elements in the array is not predefined. I have written the …

Member Avatar for SMYussef
0
1K
Member Avatar for Yogesh_5
Member Avatar for Yogesh_5
0
216
Member Avatar for M.Waqas Aslam

Hello ! I have a remote control aricraft toy. I want to control it from my pc. I do not know where to start. Is there anyone who did this before or did any project dealing with hardware programming ? Regards

Member Avatar for JOSheaIV
0
142
Member Avatar for sushilsth

Private Sub Form16_Load(sender As Object, e As EventArgs) Handles MyBase.Load Dim sqlquery As String = "SELECT SUM(price) AS totalprice FROM expenses" Dim sqlcommand As New OleDbCommand With sqlcommand .CommandText = sqlquery .Connection = conn .ExecuteNonQuery() End With Label2.Text= 'totalprice that is SUM(price) End Sub i want to display sum(price) in …

Member Avatar for xerohomicide
0
150
Member Avatar for Anson.tay3

using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using System.Data.SqlClient; namespace Practical1 { public partial class Exercise1 : System.Web.UI.Page { string cs = Global.CS; protected void Page_Load(object sender, EventArgs e) { } protected void btnSubmit_Click(object sender, EventArgs e) { if (Page.IsValid) { string user = txtUser.Text; …

Member Avatar for Ranjitrathod15
0
606
Member Avatar for Learner010

i've 9 button(i've set "" to button text) there and all buttons have almost same code as button1 has and here is the code :- Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click If (exitgame = 0) Then If (Button1.Text = "") Then Label2.Text = "Active …

Member Avatar for Learner010
0
124
Member Avatar for MrNoobieCoder

I am an amateur python coder and i was wondering if it is possible to put a timer into my times table game and if possible where i could put it. Here's my code for my game help would be appreciated , thanks :) import random import time print ("Hello …

Member Avatar for woooee
0
307
Member Avatar for supernova122

Using Visual Studio 2008 and generating .net 2.0 framework with VB.net for a web application. I encountered a very strange problem currently. After I build a solution and click a link in a web page, I got an error message as following. The same thing happened when I tried to …

Member Avatar for supernova122
0
287
Member Avatar for ddanbe

Squaring a number is a rather common task in programming, but if you want to square an integer. Easy you think! Int MySquare = AnInt *.AnInt; This will happily overflow without giving any exception if AnInt is bigger than 46340, unless you put your code in a checked block. Now …

Member Avatar for kplcjl
0
397
Member Avatar for a8med

I nead too run a python program from another code. I have the main code wher you can chose what too do and if you chose 1 you will run a surten python program and then return and if you chose 2 you will run some other program and then …

Member Avatar for a8med
0
126
Member Avatar for timetraveller1992

I am trying to write a multiline string into a text file but it does not appear as multi-line text. Here's my code $hostname = "localhost"; $username = "root"; $password = "sample"; $dbname = "code"; $code = <<< THECODE ; This is the main configuration file for your web app …

Member Avatar for Lsmjudoka
0
260
Member Avatar for Christoffer_S

Hey daniwebbers, I need to have some Javascript done, and since I'm not a coder myself I thought some of you might have time to help me out! Basically, I need a script that contains a single-line user input form. When the user then clicks a button - which I …

Member Avatar for Christoffer_S
0
195
Member Avatar for bugmenot

Please find and correct the error in my c++ program. "Linker Error: Undefined symbol _main in module c0.ASM" The program is for transfering content of one file to another. #include<fstream.h> #include<iostream.h> #include<conio.h> class student { int rollno; char name[20]; int tm; public: void input(); void transfer(); void output(); } obj; …

Member Avatar for NathanOliver
0
2K
Member Avatar for clife

What is the meaning of INSTALL_ROOT_DIR ?= ${INSTALL_DIR}/${TARGET_ROOT_DIR} I googled for ?= in shell script , but none showed up. Thanks

Member Avatar for TKSS
0
133
Member Avatar for damle1

Hi I am new to PHP I want to create drop down list in form where user can type any other thing if he does not wish to select from drop down. Pl Help Dr Damle

Member Avatar for Gaetane
0
195
Member Avatar for mherz

Hi! Iam new with this, and trying to explore and understand the ASP.NET C#. I got a little bit problem regarding control statement specifically using the if statement. What I really wanted is to have two options in navigating windows page. For example, if the other column name "Remarks" is …

Member Avatar for JorgeM
0
282
Member Avatar for foreba

I have one table that I want to separate them into two to normalize the data. I want a opinion of the best way of doing it. My table has lots of columns and one of them I was storing Varchar values separated by comma, for instance: John, Mary, Joseph …

Member Avatar for deceptikon
0
256
Member Avatar for D33wakar
0
349
Member Avatar for Vigenere

It's ok when I use uppercase letters, but I get random stuff when I use lower case letters #include <iostream> #include <conio.h> using namespace std; string sentence, key; int todo, koef, keylenth, senlenth; int main() { cout<<"Do not use spaces!"<<endl<<endl; cout<<endl<<endl<<"Key: "; //enter the key cin>>key; keylenth = key.length(); char …

Member Avatar for tinstaafl
0
569
Member Avatar for ajit.nayak

Dear all, i have data coming in file named time.csv and i wanted to convert the file in format conv_file format . How could i do it python

Member Avatar for slate
0
269
Member Avatar for Pobunjenik

Hello dear codegurus! I've been working on a pet project of mine for 3 weeks now, and I think it is ready to be released into the open! However, just for cosmetic purposes, I would **LOVE** to add an icon (both for the application and in the upper left corner …

Member Avatar for Pobunjenik
0
334
Member Avatar for inspire_all

#include<stdio.h> #include<stdlib.h> //#define MAX 10001 void quicksort(long long[],int,int); int partition(long long[],int,int); void swap(long long[],int,int); int main() { int t,k,q,i,j,qi,c,p; long long *mot,*sat,*res; //printf("Enter no of test cases"); scanf("%d",&t); for(i=0;i<t;i++) { p=0; //printf("Enter no of chefs and no of queries"); scanf("\n%d %d",&k,&q); mot=(long long*)malloc(k*sizeof(long long)); sat=(long long*)malloc(k*sizeof(long long)); res=(long long*)malloc(k*k*sizeof(long long)); …

Member Avatar for deceptikon
0
202
Member Avatar for get connected

Hi, I've got an application at the moment that has to process a fairly meaty job. Instead of making the user sit looking at a dead form, I figured it'd be nice to show a "Program is working" message to them... And to make it pretty, slapped an ani' gif …

Member Avatar for paolo.marani
0
5K
Member Avatar for Is_at_work

Here's what I have. It compiles and runs the game, but when I make a guess right or wrong it ends the game. The words in the file are not separated by blank lines and idk how many are in there. (if that's significant). The problem is in the getWord …

Member Avatar for Ancient Dragon
0
576
Member Avatar for Sh4dowz

Hello, I'm new to these forums and I was wondering if any of you guys know a programmming language that is more designed for Video Games than casual software. I want to make a basic 2D platformer or maybe a simeple RPG that has a moving sprite. I have tried …

Member Avatar for tuto.narahenpitiya
0
692
Member Avatar for DougArndt

Greetings, first, I'm totally new to python. What I'm attempting to do is rebuild a clipped off sound wave. As I've been poking around I've come across things like "cubic spline interpolation" (that sounds like what I need -- but really is way over my head) I've come across other …

Member Avatar for Gribouillis
0
769
Member Avatar for paichow

i need help..to anyone who expert in servlet & Jsp.. my problem is..i do not know how to upload image via html/jsp.. >before that i already ask mr.google but.. i got sux answer. so, this code work's and upload succesfully but it must manually put the destination file type string …

Member Avatar for stultuske
0
3K
Member Avatar for tqmd1

Sir, I am using these codes <?php if(isset($_POST['login'])){ require_once("connect.php"); session_start(); // username and password sent from Form $myusername=addslashes($_POST['username']); $mypassword=addslashes($_POST['password']); if(empty($myusername) || empty($mypassword)) { echo '<script>alert("User name and password must not be empty")</script>'; }else{ $query="SELECT name FROM admin WHERE mobile='".$myusername."' and password='".$mypassword. "'"; $result=mysql_query($query); if(!$result) { echo "<script>alert('username, password query is …

Member Avatar for pritaeas
0
159
Member Avatar for V3N0M

Hi there, I just started learning algorithms and our lecturer is really crap. I decided to teach myself through introduction to algorithm 3rd edition. Can you recommend any websites or other books for extra reading. Thanks in Advance.

Member Avatar for soutrik
0
179
Member Avatar for @di007
Member Avatar for Assembly Guy
0
112
Member Avatar for rrajeswari03

i want to upload multiple image in php.am getting image path like (image.jpg,image2.jpg,etc..).it is possible to split the path and upload each file to folder...can anyone help me with code.

Member Avatar for rrajeswari03
0
105
Member Avatar for ajit.nayak

Dear all I have downloaded matplot lib for python2.7.2 windows using[(http://matplotlib.org/downloads.html)][Click Here](http://www.) . As per example i tried coding i found pyplot is not highlighted.i have attached test.cv file for which graph has to be plotted import csv import matplotlib.pyplot as plt plt.figure() def main(): pass if __name__ == '__main__': …

Member Avatar for Gribouillis
0
697
Member Avatar for jacob21

I am using below query for fetching result using union of two tables. I am trying to get total number of records after union of two tables Need Suggestions. ` SELECT a.* FROM svn_headline a where a.newstypeid=2 UNION SELECT b.* FROM svn_crimenews b where b.newstypeid=2 order by newsdatetime desc SELECT …

Member Avatar for pritaeas
0
102
Member Avatar for Ruan10

1: I have to create an application that will dynamically add a menu strip with menu items to a form(ie NOT dragged and dropped onto the form) in Visual Basic. The menu strip should be created in the Form_Load event handler. I have to use a TextBox for user input. …

Member Avatar for Lennonbull
0
425
Member Avatar for Is_at_work

My hangman game is complete. All i'm trying to do now is write the results of the end of the game to a file but the program is not doing that?? //Libraries #include <iostream> #include <vector> #include <string> #include <cctype> #include <fstream> #include <cstdlib> #include <stdlib.h> #include <windows.h> using namespace …

Member Avatar for kal_crazy
0
175
Member Avatar for supernova122

I am using .net framework 2.0. In immediate window running debug mode with VS 2008, how I retrieve and display all column names and the content of all rows of a dataview object? Thanks.

Member Avatar for supernova122
0
125
Member Avatar for Yeonng

I am doing an academic project, making a sales forecasting using holt-winters forecasting method. I really need help to make it in vb.net and searching in google for example but found none. Is there anyone who ever heard about this method and help me with the code? Thanks...

Member Avatar for Yeonng
0
612
Member Avatar for shivakr

hi... i am trying to deploy my ejb file which i learned from youtube videos... so i go an Execption while running my clientEjb code.. it is as follows while running my client "HWorldClient"... E:\ejbDemo>java HWorldClient Exception in thread "main" java.lang.NoClassDefFoundError: HWorldClient (wrong name: part1/HWorldClient) at java.lang.ClassLoader.defineClass0(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:502) …

Member Avatar for shivakr
0
124
Member Avatar for pritaeas

Anybody familiar with AutoVue? Am using Desktop V20.2.2 embedded in a WinForm. Am looking if it's possible to set the background color. So far I haven't found any conclusive answer whether or not this is possible.

Member Avatar for pritaeas
0
389
Member Avatar for Saboor880

My question is that after learning vb.net can i earn online on the basis of vb.net? if yes then tell me how?

Member Avatar for pritaeas
0
106
Member Avatar for dean.ong.14

# calc.py - a Python calculator from tkinter import * # the main class class Calc(): def __init__(self): self.total = 0 self.current = "" self.new_num = True self.op_pending = False self.op = "" self.eq = False def num_press(self, num): self.eq = False temp = text_box.get() temp2 = str(num) if self.new_num: …

Member Avatar for Gribouillis
0
14K
Member Avatar for nurul_1

Hi,please help me. I have a textbox called txtUsername, also have one called txtEmpID. what im looking for is a simple way for txtempid can get updated automattically based one what i type in txtusername. Thank you

Member Avatar for nurul_1
0
309
Member Avatar for cpfevr692590

Guys I am writing a program in perl to loop through an array of integers read in from a file line by line, then notice patterns of numbers in each line and output triples(3 of the same numbers occuring consecutively), pairs(only two of the same numbers occuring consecutively) and straights …

Member Avatar for 2teez
0
1K
Member Avatar for user4678

I'm trying to create a program that computes the values of cos using the Taylor Series as long as the absolute value of a term is greater than 0.0001 and prints the number of terms used in the series approximation. My code is the following and as of right now …

Member Avatar for Labdabeta
0
634
Member Avatar for hallianonline

Hello i have a simple question and i need a simple solution I have a javascript file named a pricing.js which contains this content in it var price_arr = new Array('&#36; 16.95','&#36; 30.95','&#36; 49.95','&#36; 70.95','&#36; 99.95','&#36; 109.95','&#36; 139.95','&#36; 155.95','&#36; 199.95','&#36; 460.95'); but i want to to update this part of …

Member Avatar for diafol
0
199
Member Avatar for Stefce

Hello since cereal helped me out with the price and counting in PHP i need just one more thing, to get the names of the products i have tryed different ways to do it by my self but i just cant cause im begginer with PHP language, i have this …

Member Avatar for diafol
0
274
Member Avatar for KrazyCod3r

So I am using a while loop and my problem happens when I try and run this code in an online compiler which doesn't have input, it keep looping forever and doesn't wait for input. Is there a way I can force it to wait ? Please note that it …

Member Avatar for KrazyCod3r
0
309

The End.