199,114 Archived Topics
Remove Filter ![]() | |
Hey guys, i wrote a program in assembly for the 80C51 and it worked but now i have to write the same one for the PIC16F84A in assembly language, and it just wont work. Can someone figure out what mistakes i did? This program controls one 7-segment display to count … | |
Ok - I've got an easy one for you all on this Friday. I know the answer is staring me in the face, but I can't seem to figure it out. The problem is that the following function does not return a value for me. However, if I insert a … | |
Hello there, I'm not getting the result's I want with my code. So this is my table: P_ID Latitude Longitude 9001 15 10 9002 23 54 9003 2 23 9004 23 12 9005 54 23 And here is my code: [CODE] //connect //ordering the latitude $query="SELECT Latitude FROM Position ORDER … | |
Hi! I want to put up a network with a server and a client. The game shall be implemented in the server. The tictactoe game itself works fine.And I've just started to implement it as you can see from the code. There is supposed to be two players i e … | |
I am trying to compile this java file and it is giving me an error say : java.lang.nosuchmethodeorror.main what could be the problem? [code=c] import javax.swing.*; import java.awt.*; import java.awt.event.*; public class JChangeFont extends JApplet implements ActionListener { JLabel banner = new JLabel("Your Name"); int fontSize = 18; Font theFont … | |
Hello all, long time since i've posted anything here. Working on a small project and nearing the end; however i am having some trouble regarding pointers to 'multidimensional' arrays, hopefully somebody can help me out. :) I have what i think is an array of 2D arrays of which I … | |
Hi there, All i want to do is read the jokes from a text file (using Scanner) and then write them out to three different files with three different extensions (fileName1.obj, fileName2.dat, fileName3.txt), that's part A. Part B, Create a class called FileWatcher. • This class can be given several … | |
I`m trying to write a sample program in java, but the book doesn`t explain how I should write my html code to execute it, I don`t even know what I should use to write a HTML code, I looked online, but didn`t find much. this is the java code: [CODE]import … | |
issit possible to let java obtain the path that store the specific .java file? | |
Hello, im in a jam, i have tried to use count for my database to count a row, but i was wondering how to count individual things by name. ex.. +++++++++++++++ + id + name + color + +++++++++++++++ + 1 + joe + blue + + 2 + frank … | |
I,m a novice in ASP.net programming. I wonder how to use functions and events associated with each control. I have seen few books and couldn't get it. Can anyone help me out.?? | |
I am trying to compile my java file here but I am getting 8 erros with the same sybmol : illegal start of an expression here is my coding: import javax.swing.*; import java.awt.*; import java.awt.event.*; public class JChangeFont extends JApplet implements ActionListener { JLabel banner = new JLabel("Your Name"); int … | |
Hi! My problems are more of porting a code to Windows, than the code itself. I need to download a file from a URL ( http://127.0.0.1/img.jpg ) and store it in a local file. I think I've screwed up the setting up of the libcurl libraries. I am using Visual … | |
Hello everyone! I would like to create a quiz and wonder what is the best way. 1. Using a textfile to read in the questions/answer 2. Using radio buttons 3. Or something else you suggest? Ps: I have lot of questions in the quiz Thank you | |
\n is within a string... String str = request.getParameter("textfieldvalue"); I want to display the value of str to other pages..using this link below. window.open("page.jsp?param=<%=str%>") ....the problem is that the window is not opening due the str has \n. How to read \n in a string? | |
I've followed an example from a website on how to use diff time, however its telling me that it took 0 seconds which obviously isn't right...can anyone please explain what I'm doing wrong? Thanks in advance! [code=php]int main() { time_t t1, t2; double dif; Matrix A(2); Matrix B(2); A.SetElement(1,1,1); A.SetElement(1,2,2); … | |
Im brand new to C++ & Im having trouble with this program im writing i got all the way to the end of it working im just having problems using the setw function in reading and outputting from a file. I have my code attatched for what mine looks like, … | |
Hello, I have observed a data access misaligned error in my code. I am trying to isolate the issue and find reason for its occurrence. [code=c] float *mul; int main(void) { int i; mul=(float *)malloc(36000); *mul=0; for(i=1; i<9000; i++) { *(mul+i)=*(mul+(i-1))+(1/(float)(72000/2)); printf("%f\t", *(mul+i)); } free(mul); return 0; } [/code] Please … | |
Boy, am I really confused about this!!! I have an assignment that is wanting me to create a python statement that will produce f(x) for: f(x) = 2xcubed - 8xsquared + x +16. Then, using the same function, write a python program that will find the extrema (both high and … | |
Hi all, First time poster, but I'd like to ask a simple question in ASP.NET C#. I have a function that sends queries to an SQL Server. It takes a while, so I'd like to display the details to the user. Something simple, like "Sending x out of 12345 total … | |
I am new with ASP.Net and C#. I have problem with drop down list. How to declare drop down list and how to save user selection from drop down list into SQL database using C# ? | |
Hey, I have a problem. I have a URL which is something like: [url]www.WEBSITE.com/player.asp?File_Name=[/url][B]URL_of_The_Video.wmv[/B]&Path_Name=URL_Which_[B][U]Changes[/U][/B] I need to get only the URL of the video. I know I can get off the: "www.WEBSITE.com/player.asp?File_Name=" out using a string.Replace \ string.Remove but the address AFTER the video URL is changing. [b]So what I … | |
Hi Everyone, I'm making a windows mobile app in C# that aims to help those affected by Alzheimer's Disease Part of it needs to send text messages at 5 minute intervals, however, the rest of the C# program needs to continue at the same time. I know that when you … | |
hi, so im a newbie at coding, im trying to learn some c# (i think i have it down somewhat) but i cant figure out why it's giving me this error..if someone could give me a hand that would be great :) The name 'Send' does not exist in the … | |
My problem is how to seek or search a word from my text file. here how it done. I want to search a word "Computer" found in my text file, and will output or will be print of screen as "Computer been found!" if the keyword are found and will … | |
Hi I have a mysql table name ( Discriptions ) that holds many normal text discriptions (doh'). How do I write a mysql query to search this table! Example: the description 'red paint': If I enter 'paint red! My query will not find it! Thanks for any help! Paul | |
Hello Daniweb, I'm new to C and I need help with this basic calculator. It's supposed to calculate investment, only it never gives me the correct result Here is the source, [code] #include <stdio.h> #include <stdlib.h> #include <windows.h> #include <math.h> int main() { double result; int a; int b; int … | |
i am writing a code where the user will update the staff,but my update command has some problems. i think its the comma's in my command,can somebody help me....... this is my code [code=vbnet] Imports System.Data.OleDb Public Class EditDeleteStaff Dim PwdCon As String = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & Application.StartupPath & "/Blindz.mdb; … | |
Ok so i have a couple of [B]Strings[/B] and [B]Dates[/B] I'd like to use in making my reports. I can't seem to make it work. any help? This was my latest failure. [CODE]SELECTCCIF_No, Date_Recieved, FROM serviceRS WHERE Date_Recieved >= '" & DateFrom & "' AND Date_Recieved <= '" & DateTo … | |
This windows application finds the amount of your pay if your pay is doubled each day, starting with a penny a day or a nickel a day. Instead of one month's salary, a boss offers her new employees a penny the first day and experienced employees a nickel the first … | |
hi, i'm beginner in assembler, i'm just start study this language... please can someone explain me, what do this two functions? cbr flags, (1<<pressed) ;Clear status flag sbr flags,(1<<pressed) ;Set status flag please if you insert example, it will be only better...:) | |
Hello, I know i'm suppose to ask programming questions but i'm stuck on how to do it in the first place, the question is: You are given 4 information-gross pay, number of extra hours worked, the hourly pay rate, and the income tax rate. Calculate the overtime payment: Overtime payment … | |
Hi All, What all the difference between Macros and Inline functions. Why do they prefer inline functions? When Do macros come in use? What are the disadvantages of Macros and inline functions? thanks in advance | |
I was trying out a 2-dimensional integer array on a UNIX box. I hit up a 'Segmentation Fault' on trying to run it. [CODE]#include <iostream> #include <cstdlib> using namespace std; int main() { int matrix[2000][2000]; int i, j; srand ( 1 ); for (i=0; i<2000; i++) { for (j=0; j<2000; … | |
i am trying to simulate an alert for transaction being done on a bank account as my project but the person i asked to help me told me that using flexcube all i need is to execute the code below it would create a table OUTMESG which my own code. … | |
here is my code. this is working fine but small prblm is here.fading text is working only one time. it is not working multiple times. can anybody check what is the prblm is der? rotation not working.just copy paste this codeand see what is the prblm is there.first time loop … | |
Hi, I have created a .gif image in photoshop,then i have linked the location in html coding.But i am unable to see that image in internet explorer.I am able to see a red crossed line.How to make that image to display?? | |
Hi there! I have one problem and I'm asking for some help :).I want to change font from one column to Unicode... is there some easy way to do that? :S | |
Hello I would like to create a reference field. I would like it ti have a fixed number of charaters/numbers, just like the videos reference of YouTube. Is there a mysql/php function to handle that? I mean a function that generates a unique string that doesn't exist already in the … | |
Hi there. I'm learning Java and this is a sample applet in which I try some basic drawing operations. I hit some roadblocks and I'm hoping someone can point me in the right direction. What I want to do here basically is make a rectangle with exactly 10 pixels of … | |
In my database application, there are three tables: class : c_id , c_name section: c_name,sec_id,sec_name student:c_id,sec_id,roll_no,s_name. There are 2 comboboxes: One for selecting class name and other for selecting section name . Now I want to add enteries to student table, such that : (i) I select class name from … | |
Dear All, Could you tell me what is wrong or missing for my coding? Cheers, [CODE] unit Example3; interface uses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls; type TForm1 = class(TForm) Edit1: TEdit; Edit2: TEdit; Edit3: TEdit; Edit4: TEdit; Edit5: TEdit; Button1: TButton; Button2: TButton; Edit6: TEdit; … | |
hi, plz anyone one send how to create personal web page using asp coding. thank u. | |
I don't want slashes in my $_POST values. I want to deal with that kind if thing myself. I am having problems getting rid of said slashes. You can see the results of the following code here: [URL="http://www.slyme.co.uk/sanitise.php"]http://www.slyme.co.uk/sanitise.php[/URL] View the source - htmlentities seems to work, stripslashes doesn't unless I … | |
Hi! I'm trying to build a Python extension with C/C++. I'm following the steps given in the documentation [URL="http://docs.python.org/extending/extending.html"]here[/URL]. I've followed the steps mentioned and written my first code. However, I have no clue on how to compile the project! I do not know how to create the .pyd file … | |
[url]http://en.wikipedia.org/wiki/Brainfuck[/url] Interesting. One day once I figure out c++, I might give this a whirl! | |
Hi guys, Can you help me out with this project. My head is fried with this now. I am getting confused when you have to call on functions outside the class and variables from outside the class. What i need to get done is the following: a. Add a close … | |
hi! I have a form to add content in database(addcontent.php) and one file which shows the content(content.php).Database has id,title,content columns. IS it possible to make the content.php to "$_GET" the id's from the database and show them on the page as : content.php?id=1 And other thing. i have buttons in … | |
Hey Guys, Im not so good at VB.NET , and ive been learning for about 3 months. I would really appreciate it if you guys would help me tackle this problem down. Well , im helping a school run a Spelling Bee aimed at children in year 7. And to … |
The End.