199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for pauloselhombre

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 …

Member Avatar for pauloselhombre
0
133
Member Avatar for hangulagerson

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 …

Member Avatar for yellowSnow
0
115
Member Avatar for abu taher

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?

Member Avatar for abu taher
0
102
Member Avatar for kekz0r

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 …

Member Avatar for kekz0r
0
210
Member Avatar for rysin

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 …

Member Avatar for JuliaAdam
0
144
Member Avatar for Skzz

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! :)

Member Avatar for rawroro
0
126
Member Avatar for ntuthuzelojames

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 …

Member Avatar for abu taher
0
130
Member Avatar for noi80

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 …

Member Avatar for noi80
0
932
Member Avatar for oneill

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.

Member Avatar for jomanlk
0
157
Member Avatar for lyshao

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; …

Member Avatar for jonsca
0
315
Member Avatar for botherguy

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 # …

Member Avatar for ramkmaddela
0
293
Member Avatar for chescarleta18

#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(); }

Member Avatar for chescarleta18
0
190
Member Avatar for ratnasatish

[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]

Member Avatar for javaAddict
0
130
Member Avatar for quickworld

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.

Member Avatar for quickworld
0
107
Member Avatar for amirun
Member Avatar for rdrast
0
106
Member Avatar for S2009

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 …

Member Avatar for Geekitygeek
0
197
Member Avatar for farsen

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 …

Member Avatar for farsen
0
93
Member Avatar for mldardy

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 …

Member Avatar for nirveshverma
0
447
Member Avatar for lawsmlt

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) …

Member Avatar for chyssa
0
96
Member Avatar for valona

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

Member Avatar for musa_almanak
0
41
Member Avatar for avirag

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 …

Member Avatar for avirag
0
157
Member Avatar for richkid

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.

Member Avatar for chescarleta18
0
101
Member Avatar for Nattynooster

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.

Member Avatar for sknake
0
431
Member Avatar for snakay

[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

Member Avatar for snakay
0
2K
Member Avatar for jorisb

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 …

Member Avatar for jorisb
0
165
Member Avatar for gpremkum

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 …

Member Avatar for jonelynne
0
90
Member Avatar for ragnarok511

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 …

Member Avatar for jonsca
0
144
Member Avatar for deepnu

Hi all... I'm having a problem in connecting AccessDataSource to my label. Its not having any options... please Revert soon.... Urgent!! thanks!!

Member Avatar for babbu
0
100
Member Avatar for redrocket0274

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 …

Member Avatar for BestJewSinceJC
0
161
Member Avatar for osgiedeprof

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 …

Member Avatar for sfuo
0
96
Member Avatar for fawkman

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 …

Member Avatar for glycerine
0
113
Member Avatar for aditi_19

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 …

Member Avatar for urtrivedi
0
7K
Member Avatar for debasishgang7

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.....

Member Avatar for rtc1
0
117
Member Avatar for restrictment

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(*) …

Member Avatar for restrictment
0
170
Member Avatar for banders7

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 …

0
508
Member Avatar for revata

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 * …

Member Avatar for CFROG
0
148
Member Avatar for lukerobi

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

Member Avatar for lukerobi
0
166
Member Avatar for acm09

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 …

Member Avatar for acm09
0
171
Member Avatar for lrh9

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 …

Member Avatar for lukerobi
0
253
Member Avatar for Cy137

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 …

Member Avatar for vmanes
0
134
Member Avatar for just_me

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` " …

Member Avatar for just_me
0
95
Member Avatar for serendipity

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 = …

Member Avatar for serendipity
0
178
Member Avatar for jamdownian

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 …

Member Avatar for jamdownian
0
137
Member Avatar for just_me

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 …

Member Avatar for just_me
0
98
Member Avatar for ninreznorgirl2

[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] …

Member Avatar for Lerner
0
212
Member Avatar for gcardonav

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: …

Member Avatar for seraph03
0
2K
Member Avatar for leverin4

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 …

Member Avatar for neilcoffey
0
4K
Member Avatar for bruceaj

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 …

Member Avatar for bruceaj
0
120
Member Avatar for moedoc10

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, …

Member Avatar for lukerobi
0
108
Member Avatar for beshoyatef

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 …

Member Avatar for beshoyatef
0
134

The End.