199,114 Archived Topics
Remove Filter ![]() | |
Hey there folks. I'm in the middle of learning C# using the book 'C# and Game programming: A Beginner's Guide' by Salvatore A Buono and I've come to a bit of a problem. The example code for nested if and else-if statements does not work as intended. I could move … | |
1. Write a program to implement a static circular queue. It should include the following functions: i) Enqueue – To add an element to the end of the queue [4] ii) Dequeue – To remove an element from the front of the queue [4] iii) IsEmpty – To check whether … | |
when I run my project then a msg was shown: "object doesn't support this property or method" but when I press ok then the project run. no problem occurred. Now what I need to do? | |
Having some problems creating an encoder for class. I have the decoder, but I can't seem to make my encoder work properly. I have attached the decoder to the post as a file. Encryption example: "Hello" would be "xxxxx!H#xxxxxxx#e¤xxx¤l&xxxxxxxxx&l$xxxxxxxxxxx$o", where x is randomly generated letters, and ! is the first … | |
Hey everyone, Ive got a question about team programming. My teacher for Computer Science gave us our first team project last week. The goal was to create a program that calculated how long it took a ball to hit the ground given a certain height. Me and my group failed … | |
I am 100% new to JavaScript, but I don't want that to be the case for much longer at all. However, what's the best way to go about learning? What books should I purchase, or where is the most [i]accurate[/i], extensive, free online tutorial? Your suggestions are appreciated! :) | |
What would be the code if the log book is maintained by the secretary of the company to calculate and manage the leave days taken by the employees. The secretary is able to view the information of an employee except their salary remuneration. The basic principle of the company is … | |
Hello. I am currently working on a school project. I need to implement 4x4 matrix multiplication with multi-threads (pthread) doing each multiplication. By studying the assignment description and other codes found online, I was able to get a general idea of what I need to do. However, I am having … | |
Hi, Some decoded a zend file for me but i get this error: [CODE=php]Parse error: syntax error, unexpected '*' in /home/xxx/public_html/.main.php on line 136[/CODE] the code is: [CODE=php]mt_srand( ( double ) * 1000000 );[/CODE] I just delete the [b]*[/b] ? Sorry i dont know much about php. | |
I keep getting the error above. I am trying to calculate percentage, sales tax on items to make profit on items sold. #include <iostream> #include <string> using namespace std; int main() { //Declare variables double price; double percentage; double taxRate; double salesTax; double sellingPrice; double finalPrice; char ch; string str; … | |
can anyone modify my code to make it recursive search of subdiretories, currently this code only can search of particular directory. #!/bin/bash if test $# -eq 0 ; then echo usage: "${0##/*} [Dir name]" exit fi for arg in $* ; do if test -e $arg ; then maxLen=0 # … | |
#include<stdio.h> #include<string.h> main() { char STR1[100]; int i; clrscr(); printf("Please input a STRING.\n"); gets (STR1); printf("\n%s is displayed in reverse form as:\n",STR1); for(i=strlen(STR1)-1; i>=0 ; i--) { printf("%c",STR1[i]); } getch(); } | |
[CODE=java] how to merge two or more files (similar files) ex: two or mre pdf files, two or more xls files, two or more doc files. [/CODE] | |
Hi.. I'm new bie in php.I'm trying to create a "Asset Tracking System" software using php,mysql. I create menu named ats_itmentry,ats_itmissued,ats_itmreturned. but how to make each three form for insert data through these ? pls help me. i want it with php. | |
give me the functions and headers to load image files; and a small example | |
Hi all, I am creating an application for Library Management Systems. I want to disable the close button initially and enable it once the user clicks on the menu item logoff. Is there any way I could accomplish this functionality in my application? I tried using the following code in … | |
Hi. Ive tried googling for some time now, but havent come across anything that might lead to a solution to my "problem". I guess I aint using the right search phrase. What I am looking for, is a way to show items on top of a fullscreen playing video. That … | |
Does anyone know how to do FileUpload in asp.net 1.1. My current code works for 2.0 but I need to do this for 1.1. I know that FileUpload.HasFile doesn't work.Here is my code: [CODE]<%@ Page Language="vb" AutoEventWireup="false" Inherits="Promethius.PCMSPro.UploadFile" %> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <script runat="server"> Protected Sub … | |
Hi all, I'm currently doing my final year dissertation, being on wireless transmission in a client-server model. Can anyone suggest any dense literature about technical detailed c++ programming such as enabling communication between server and additional programs (such as ffmpeg), excessing USB devices (such as webcam, mic, video capture card) … | |
hi,,,may u help me solving this problem in java code?\ a)f(x) = xcosx-sinx/x-sinx b)Use 4 important first numbers to gain f (0.1) please help immediately,,,,,thnx | |
hiiiii I am making a C# .net window application and i am using VS2008...... Can anyone tell me how can i do good designing or there is any software with the help of that i can improve the designing of window applications........ kindly help me or suggest me some link … | |
Hey guys, I have just written C program that calculates the force of a body using F = ma but there is some sort of problem occuring , could you please help me fix the error. | |
Hi, I am trying to make a program, what it needs to do is wait for 30 seconds with the form fully working, so you can not notice you are being timed, then after 30 seconds you will get an alert like [CODE]MsgBox ("Time's up!")[/CODE] Thanks. | |
[B][/B]Hi, How do I pass my variable or textbox data from form to Active Reports class where I prepare my sql string so that I can use my variable in "Where" clause..like[inlinecode] select * from personnel where name=' " + textboxName.Text + " ' "; [/inlinecode] Thanks, snky | |
I'm developing a web page for a friend that allows participants of a sports event to "claim" a slot in a 24 hour tennis marathon. The marathon has room for 24 x 4 participants. My idea was to have a table with the columns "hour" [0-23], "time" and "name", and … | |
Hi DaniWeb members:), I hope we could discuss about this matter and please do give advise, feedback or respond regarding my answer code below:icon_smile:. If the users enter x as 5, y as 6 the multiple table will be printed as below: 1*6=6 2*6=12 3*6=18 4*6=24 5*6=30 My answer code … | |
![]() | I am trying to learn how to design a gui for a linux kernal. Is there any tutorials on how a gui works on an operating system? I am not completely sure where to start. The only other thing is that I can think of doing is getting the source … |
Hi all... I'm having a problem in connecting AccessDataSource to my label. Its not having any options... please Revert soon.... Urgent!! thanks!! | |
So here is the code for my program FileMatch and FileMatchTest. The purpose of this program to read file oldmast.txt which contains account numbers with first and last name and their balance. The program will also read trans.txt which contains transaction information. If the account number from trans.txt matches with … | |
guys can anyone out there tell me if it's actually possible to innitialise a 2D array by having it loaded from the keyboard (i.e entered by the user)? i have search everywhere to see if there's a code of such; all i can see is loading it (2D array) from … | |
Hi guys I am very new to php and am trying to create a small content management site. Hopefully I will have posted this correctly, sorry If I have missed anything out. I want to be able to have an admin page link show up when i log in as … | |
I am creating a simple report using FPDF which opens fine. I have a link on my php page to generate the report in a new tab. But after generating the report, when i click to any button or radio box on the php web page, the design view of … | |
hiii all.... i want to learn C++ GUI based programming.... i want to know how to make Text field,buttons,label,etc... in c++ is there any web resources????? pls help me out..... | |
Hey Everyone, in class we are learning about for loops, which are very easy. However the project the teacher gave us is very difficult. Here is the assignment: [quote]Write a program that prints the following patterns seperately one below the other. Use for loops to generate the patterns. All asterisks(*) … | |
Displays which partitions are on which physical hard drives and shows partition starting offset and length. Developed and tested under XP using a Borland C++ compiler. Code is not provided for the private includes, but changes to make to code work are trival. References to werrtxt() and format() can be … | |
I'm building a few simple CMS variables into an Dynamic site that I half-built with Dreamweaver. The following code is the initiation of a paginated recordset display generated by Dreamweaver: [CODE]$currentPage = $_SERVER["PHP_SELF"]; $maxRows_creditsList = 6; $pageNum_creditsList = 0; if (isset($_GET['pageNum_creditsList'])) { $pageNum_creditsList = $_GET['pageNum_creditsList']; } $startRow_creditsList = $pageNum_creditsList * … | |
How would i do this? [code] import random name = random random.name [/code] I dont cant to use name = random.random, as name is something that could change | |
Here's the problem: "Daily life magazine wants an analysis of the demographic characteristics of its readers. The Marketing department has collected reader survey records containing the age, gender, marital status, and annual income of readers. Design an application that accepts reader data and produces a count of readers by age … | |
Out of curiosity, how would you reverse a string's case in Python? Make uppercase characters lowercase and lowercase characters uppercase. Here's the function for the naive implementation. [CODE] #!/usr/bin/env python def flip_case(input_string): temp_list = list(input_string) for index, character in enumerate(temp_list): if character.islower(): temp_list[index] = character.upper() else: temp_list[index] = character.lower() output_string … | |
I can never get this to work correctly for me, and I'm looking to you guys for help now. This program is going to eventually calculate the betweenness centrality for nodes on a graph, but I'm trying to get the file I/O to work properly. Any ideas? Code in tags … | |
hi guys! I got a problem when I want to display the array from the database and rank it. can someone fixed this problem:- [CODE] <?php session_start(); include "mysql.php"; // you have already opened your db connection $report_status = isset($_REQUEST['reportTotal']) ? $_REQUEST['reportTotal'] :""; //$query = mysql_query("SELECT * FROM `supplier_report` " … | |
I have a web form. I want the "enter" key disabled from sending the form so users have to SUBMIT in order to send form. Have the following entered in the head: [CODE]function stopRKey(evt) { var evt = (evt) ? evt : ((event) ? event : null); var node = … | |
I've written a C++ program that compiles successfully but is give me some logic error. It's giving me some negative numbers can someone please run the code and see what ive done wrong. Built with Visual Studio 2008 [CODE] #include"stdafx.h" #include<string> #include<iostream> using namespace std; class vowels { public: vowels();void … | |
hi everyone I need help regarding my php code. I used array to insert data in the database. I want the value will be in ranking system such as: 1 0.575 2 0.456 3 0.327 the thing is the value whic is in the database such as 0.575 will be … | |
[CODE]class MyFloat { private: enum {MAX_DIGITS = 20}; char Number[MAX_DIGITS + 1]; char NumberOfDigits; public: void Write(); friend void AssignValue(MyFloat& X); }; void MyFloat::Write( ) { int i; if(!NumberOfDigits == 0) { cout << "0."; for(i=0; i<NumberOfDigits + 1; i++) cout << int (Number[i]); } else cout << "0.?"; }[/CODE] … | |
Hello guys You rookie here. been trying to run a code but I am getting this weird error that I have not seen before. I have attached a copy of the error and the part of the code it refers to. Thanks for your help GCard 1>------ Build started: Project: … | |
How would one calculate the number of bytes of plaintext that could be encrypted as a single block given the key size? And how could you then calculate the number of bytes of cipher text that can be decrypted in a single block given the same key size because I … | |
I want to to do the following but can't figure out how to do it in Java. I retrieve information, including the primary key, from a database. Using this information, I load a comboBox. The user selects an item from the comboBox. Using that selection, I build an SQL join … | |
1) Write a function called divisors that takes two natural numbers m and n, and returns a List object containing all natural numbers (starting from m, and going down to 2) by which n is divisible. For example: divisors(6, 6) should return a List object equivalent to List(6, List(3, List(2, … | |
Hi, Here i draw chess boardgame ,but i want when i pressed by mouse on any square , blue rectangle appear .. I did this but when i pressed on any square the black and white coloe disappear and not only the square which i pressed has blue rect but … |
The End.