199,114 Archived Topics
Remove Filter ![]() | |
how can one determine whether a given string can be expressed as a concatenation of palindromes of even length. | |
I Have this problem and honestly have no idea where or how to start this, can anyone give me an idea or help? [QUOTE]Write a JavaScript program to calculate the statistics of words in a web page. When running the program in a web page, the script should output all … | |
Hi, Im trying to input a search box in my forms so that when I type in a customers name it will show there record. I've managed to do it in my transaction form, but not in any other standard forms. In my transaction form I've got this code: [CODE]Private … | |
So I have my documentbuilder and I'm doing this the DOM way. I've managed to get to the point where I have saved the tag I want into a nodelist NodeList list = doc.getElementsByTagName("myTag"); the xml looks like this <myTag id="1"/> but now I want to grab the id number … | |
Hello All... To be honest, this is a bit overwhelming, but I'm hoping that someone might be able to steer me in the right direction. I am currently taking a correspondence course in Computer Programming, and without instructional support, am finding that the material can be somewhat overwhelming. I'm looking … | |
Hi there, I am in need of help, I would like to know how to create a link that when clicked it will change the order a list is displayed. Specifically in wordpress when using a codex to display posts. [B]How would I create a link or dropmenu that can … | |
Hi i am trying to create a racing game and at the moment i have keyboard input which moves the player around at the same continous speed. I am wanting it to speed the player up however the longer you hold the key down for. Any simple way i can … | |
Hello, i am currently working on a grade program that displays the student name, id #, and 2 grades. I have to read each of these categories off of an input file which should look like the following for at least 20 students.: EX: Jack Smith 450654333 95 89 The … | |
Hello, I am currently trying to write a program that will display a chart for the inventory of a car dealer. Here are the major points of the assignment, the ones Im having trouble on: Write a program to be able to display the instock table as instructed below : … | |
Hi, I'm pretty new to php and MySQL. I am trying to use a form to update a the database. However it just doesn't seem to actually work. I also am getting this error from printing out errors: You have an error in your SQL syntax; check the manual that … | |
hi community, i really want to improve my ability in programming vb.net so can you help me improve it by giving me a task or a work to do? like teachers on schools?:$ ( though im not saying that im really good in programming and will be able to do … ![]() | |
Hey, I'm pretty much almost done with this program, but I'm not sure how to clear a previous file (after opening it) in order to open a new one. My program is supposed to open a file with a maximum of 100 unordered decimals and allow the user to sort … | |
![]() | Hey everyone. :) I've been trying to find a goof file upload script for a while. No luck really. I operate an internet radio station, and frequently artists want to send me music for airplay consideration. I've been struggling along giving them FTP login information and letting them send files … |
ok heres what i got [CODE]Main.cpp System::Void Form1::button1_Click(System::Object^ sender, System::EventArgs^ e) { SetText("Hello, it's working"); } System::Void Form1::SetText(String^ strText) { this->textBox1->Text = strText;[/CODE] form1.h [CODE]private: System::Void button1_Click(System::Object^ sender, System::EventArgs^ e); private: System::Void SetText(String^ strText); [/CODE] What if I want to display the results of type double variables or int variables … | |
Hi, I just want to say i've been searching around this forum and have seen things about GMP and precision arithmetic (which im reading now). However, i've seen nothing to the extreme of a number that I need. This is an *extremely* large number. Before I even get into the … | |
I am wondering why the right hand side of my split screen isn't in the middle and also why the game goes off of the background, any help would be much appreciated [code] #include "SDL.h" #include <stdlib.h> #include <stdio.h> #include <stdlib.h> #include <Windows.h> #pragma comment(lib,"Winmm.lib") /* ---------------------------------------------------------------------- */ /* Defines/Enumerations … | |
Hey guyy , using getline allows us to read a file line by line. but is it possible to use getline to read individual words in a line? For example. Test.txt My name is John. Using getline will read the entire line... [CODE] int main (){ string templine; ifstream myfile("test.txt"); … | |
I am new to programming and i am teaching myself. (my teachers are not very good) I am attempting an old assignment that a colleage had completed in school. He told me it was pretty basic in terms of c++ programming. UELS is a company selling bicycles; Customers may opt … | |
i am writing a program for my java class and have to create a calculator, i got the calculator to work for two numbers but can't get it to do more than two numbers and it needs to. any help will be greatly appreciated. If you take out the tnum … | |
Hey, i was wondering if there was a way to output really large decimals, either to a file or to the output stream? because when i do this: [CODE] file << setiosflags(ios::showpoint) << setiosflags(ios::fixed) << setprecision(50); [/CODE] or do that with cout, the program crashes. | |
Hi I have problem with span tag padding paroblem can I do fix it with css or javascript here is code which hard coded for left and right padding I have ad and <br /> I want programatic way to fix it with css or java script <!DOCTYPE html … | |
Hello everyone, I am writing a program that will read data from a txt file and for the life of me I cannot get it to do so ... Seems like no matter what ! I do it keeps telling me it cannot find the file .. I have used … | |
Greetings, I am having an issue with calling both winsock and winsock2 libraries but i can't seem to find where i have called winsock from. I have a main.cpp calling a Socket.h main.cpp contains the following includes: [code] #include "stdafx.h" #include <iostream> #include <vector> #include <windows.h> #include <windowsx.h> #include <string> … | |
Hi, I basically have a dictionary with a few key value pairs in it. [CODE] mydict = {} mydict['key1'] = 2000 mydict['key2'] = 3000 mydict['key3'] = 6000[/CODE] I have read that you can check if a particular key is present in a dict with the '[B]in[/B]' statement like: [CODE]if 'key1' … | |
Hey ppl. I've been working on this forever and cant seem to get it. I am developing a site in jsp using netbeans and i have an applet i want to add to a page.I know i have to use <applet> tags but i dont know what to put to … | |
I have a question. Can i select a string from my RichTextBox ? For example: I have this text: English Francais Spaniol And i want to select Francais , but as string , not at int - lenght ... ( richTextBox1.Select(7,15); ) I want something like: richTextBox1.SelectString("Francais") , is there … | |
Hey everyone. New to daniweb. seems like a really good forum. anyhow, im doing some research on mobile phones and PC's. I want to be able to control my mobile phone flawlessly from my computer. By flawlessly, i mean Making and Recieving Calls, Sending and Recieving SMS, and Syncing Phone … | |
Hi, im new at coldfusion and i recently pay for a hosting with coldfusion 9, i customize my db,dsn and upload all the site... but when i try to run the site i get this exception : coldfusion.runtime.CustomException: Unable to initialize AssetNow NX at coldfusion.tagext.lang.ThrowTag.doStartTag(ThrowTag.java:142) at coldfusion.runtime.CfJspPage._emptyTcfTag(CfJspPage.java:2722) at cfApplication2ecfc1801135535$funcONAPPLICATIONSTART.runFunction(E:\Domains\rivi eramayarent.com\wwwroot\Application.cfc:35) … | |
My overloaded operator isn't initializing the value passed through it. Please help!!! and yes I am aware that my insert function isn't complete... [CODE=c]#include <iostream> using namespace std; struct Node{ int value; Node * next; }; class linkedList { public: linkedList () {first=0; length=0;} bool operator > (int a) ; … | |
I'm currently doing a model, however its occurred that I'm getting 1 error that which is saying that the && operator. I don't fully understand why that is. If there is a solution to this that would be great, also with a good explanation why I have made this mistake … | |
Hello, So my problem is that I am supposed to write code in order to prove whether or not text in a file is topologically sorted correctly. I have the algorithm on how to do this, but the specifications say that I should use an array of lists to keep … ![]() | |
The code below is for my assignment it works i just want to make sure i did this correct any advice is wanted. Also one thing that is bugging me see basepay well if the base pay is 133.20 it chops off the 0 and only displays 133.2 why iv … | |
Hey guys i need a bit of help in getting my answer correct. Basically , im trying to get my answer to 2 decimal places when i divide one number by another... [CODE]int main(){ int Totalgpa = 46; int e = 13; int SemesterGpa = Totalgpa / e ; cout … | |
Hi we have a buffer say [COLOR="Red"]char array.[1].[/COLOR]so the size will be 1 byte. Now our problem is say we have 8 bits data say 10110101. now this must be assigned to array[0] variable as 1 byte. bit manipulation is not happening.kindly help us in this regard If possible post … | |
Hey guys , i am trying to write an array into a textfile. Here is the coding... [CODE]int main() { ofstream myfile("report.txt"); int g = 0; int billy [] = {16, 2, 77, 40, 12071}; for (int n=0 ; n<5 ; n++ ) { g = billy[n]; myfile << g … | |
I have a page with a nested gridview and within the nested gridview I have a TemplateField and an Imagebutton. What I am trying to accomplish is allow the user to expand the child grid and then click on the Imagebutton to display a panel below. The problem I am … | |
Hi I've made a program but for some reason I am getting this error that I can't even begin to decipher because it won't point me to where the error has been made. I am using the PV=ZnRT formula. Here is the error: 1>C:\Users\user\Documents\Visual Studio 2008\Projects\lab24jess\Debug\lab24jess.exe : fatal error LNK1120: … | |
I'm trying to create a maze with a mouse inside moving up down left right in 200 moves. I've got everything working besides the fact that it duplicates the heart on the other side(If it exits on the left, it'll be duplicated at the right end) when the heart shape(mouse) … | |
hello, I want to make a Report in C# Projetc, but I'm not intrested in using Crystal Report, I want to make it by MSReportViewer. PLS Help me, thanx. | |
[code]public String viewByItemCode(String icode) { String search = " "; for( ; x<recordNum ; x++) { if(itemRef[x].getItemCode() == icode) { search = ("\nItem Code: " +itemRef[x].getItemCode()+ "\nItem Description: " +itemRef[x].getItemDesc()+ "\nItem Unit Price: " +itemRef[x].getItemUnitPrice()+ "\nItem Quantity: " +itemRef[x].getItemQty()+ "\nItem Unit Measure: " +itemRef[x].getItemUnitMeasure()+"\n"); } } return search; }[/code] Supposed … | |
HI, I am looking a snippet to warn the user before processing with deletion and my ViewEmployees.aspx page.. I am using a Gridview with autogenerated insert, delete statements; how would I do this on my Code Behind File? [CODE]<asp:GridView ID="GridView1" runat="server" AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False" CellPadding="4" DataKeyNames="EmployeeID" DataSourceID="AccessDataSource1" ForeColor="#333333" GridLines="None"> <RowStyle … | |
import java.awt.*; import java.awt.event.*; import javax.swing.JApplet; public class CarApplet { private Image carLeft = null; private Image carRight = null; private Image carUp = null; private Image carDown = null; private Image carImage = null; private int direction = -1; privte Point carLocation = new Point(25,25); ? /*Over here this … | |
Hi, I need help for this problem that i'm trying to solve for a while (i'm Using ASP.net and C#). How do i submit the values from selected checkbox lists into database using c#.... Here's the code: .......................................................................... [code] <asp:CheckBoxList ID="CheckBoxList1" runat="server" Font-Bold="False" Font-Names="Vrinda" Width="338px" style="text-align: left"> <asp:ListItem>Public Tap</asp:ListItem> <asp:ListItem>Well … | |
Hello this is my first thread on the forum i tried to search everywhere for a solution but no result...:'( Im trying to figure out some easy pointer use but still get some stupid error... My fault. error C2440: '=' : cannot convert from 'char (*)[100]' to 'char' [CODE] void … | |
Hi I ahve this code which is working on Chrome, Firefox and Safari But Its not working on IE Can any one help me <html> <script type="text/javascript" language="javascript"> function set_padd(){ var tt = document.getElementById("span_padding").innerHTML; var txt = new Array(); txt = tt.split("<br>"); var atxt = ''; for(var i = 1; … | |
how to select best 4 grade out of5 55,99,66,88,44 by java program | |
I'm re-designing a database that will facilitate registration at various events. One column in the event_person table describes the current status of the registrant. The forces that apply here are: - Various events may have different sets of status values - We may ship this as a framework to various … | |
Plesese help: i have no ideas to do with this problem. Write a program which allows the user to input several real numbers and then prints out the 2nd smallest number. The input sequence starts with a positive integer indicating the number of real numbers. For example, for the input … | |
hi, Question 1 i am developing a project in C#.Net, and when a form loads data from the SQL client database is added to four combo boxes in the form, i need to change the data in the combo box when the check box is ticked. I wrote a code … | |
Hi, Fairly new to MYSQL, still learning. I have create basic web databases before but the project i am working on just now is slightly more complex than before and need some advice. i have had some help qith queries which has been great however i need some advice from … |
The End.