199,111 Archived Topics
Remove Filter ![]() | |
Hello everyone, I really need some help with this project I am working on. So I need to go through a text file to search for a particular string (say something like 'play') and then if that word exists in a line I need to find a string after that … | |
Hi friend I have a question of 2 parts I have to insert new entries from a file in a table once every month Is there a way to shcedule an sql query to run once per month, and the second part is how can I only insert some of … | |
Hello all, I am solving some of the exercises in a new book of C++ I am having trouble in declaring [quote=THE C++ BOOK]A Reference to a array of 10 Integers[/quote] Its on the 19TH and 30th line. I have the total code over here. [code=c++] //Declarations for all the … | |
does any1 know why its doin this, so annoying! spent ages tryn to figure it out.. [URL="http://img17.imageshack.us/img17/4749/linksi.png"]link[/URL] | |
I'm getting seemingly unfounded errors with this seemingly easy program.. the variables "guess" and "i" are user input [code] for guess in range (i): float(guess + float(x / guess)) / 2 print guess [/code] I'm getting: ZeroDivisionError: integer division or modulo by zero | |
Hi, Does anyone know how to add calculated data to an existing gridview at run time? Thanks | |
[code=cplusplus] // Josh Crago_Chapter 7 Programming pg 458, # 7 #include <iostream> #include <iomanip> #include <string> using namespace std; int main() { char again; do { // Define the varibles char letter = 0; const int SIZE = 81; char line[SIZE]; const int maxLowercase = 122; const int minLowercase = … | |
<code> Hi there. I am trying to use soap in my access database and am following [url]http://www.aspfree.com/c/a/VB.NET/Calling-a-Web-Service-using-VB6-with-SOAP-30/2/[/url] to help me learn it. I followed the tutorial exactly and when I run my access forum, I get object required on Option Compare Database Private Sub Command1_Click() Dim client As Object Set … | |
Hello, I am currently able to upload an image and the info is being inserted into the db correctly. I would like to add a gd function to add 3 image re-sizes into it. locations and sizes /prop_enlarged/ max 600px 400px /prop_listing/ max 405px 270px /prop_thumb/ max 135px 90px I … | |
Hey all, i am working on a project in which i read thw following data file: 6 CSCI240 CSCI241 CSCI241 CSCI340 CSCI340 CSCI480 CSCI480 CSCI580 CSCI340 CSCI580 CSCI463 CSCI480 This data file, consists of the size of array (6) to be created, and then lists the classes, with the prerequisite … | |
I want to create a 16-bit float datatype, allocating memory to exponential and mantissa part at my own discretion. How can I do that? | |
All right...This is my first post and it is a very short question. I'm getting a segmentation fault at this line: [code] std::ostringstream ostr; [/code] All I'm doing is creating an ostringstream. Sometimes it makes it past this line and is fine but others I'll get a segfault here. I … | |
hi ...... im trying to create a simple c compiler..... how to link the header files to c code????? can the linking process can be done in assembly language... or is there a linker for download.... please help.... thanks in advance... | |
This is my first post. I am trying to use Visual Studio 2003 which is what is available at work. I am having to problems: first I don't seem to be able to set a watch on a variable, the contex menues are grayed out. The second is I am … | |
Here's a question for those of you who have experience of fixing or enhancing other people's Java code, which I hope will also be really useful for those in the early stages of learning programming. Please contribute! If you've looked at other people's code, you will know that sinking feeling … | |
Hi everyone, Im very new to the ajax world and have been looking at using jquery for most of my Ajax work. However I am trying figure out how i would poppulate a select box with an ajax call. Would anyone have a super simple function or script that will … | |
I wrote a piece of Winform Application. My problem is that When I call Application.Exit(), the program does not exits, but continues on the next line. I've tried Application.ExitThred(), but in Vain. Does any of you tell me what is happening and if there is a way to solve it. … | |
I tried to do this to redirect the clog output to a file: [code] ofstream ofs("file.log"); clog.rdbuf(ofs.rdbuf()); clog << "Logged." << endl; ofs.close(); [/code] It worked (the file contains the text), but the program segfaults. I read that you have to "restore" the original buffer, so I tried this [code] … | |
Hi guys, What am I doing wrong here? Program dies on me @ merge(). :( [code=cpp]#include <iostream> #include <vector> using namespace std; int main() { int afrom[4] = {0,0,1,2}; int ato[4] = {1,2,3,4}; vector<int> from(&afrom[0], &afrom[4]); vector<int> to(&ato[0], &ato[4]); vector<int> length; vector<int> all_nodes; sort(from.begin(), from.end()); sort(to.begin(), to.end()); merge(from.begin(), from.end(), to.begin(), … | |
// [code=cplusplus] #include <stdio.h> int main (void) {int currentornew; /*This is where if the user inputs a 0 they will automatically be brought to insert hours for employees.*/ int newemployee; /*This is where if the user inputs a 1 they will autmatically be taken to information of adding a new … | |
I am working a program that imports functions from a file, and stores them as Polynomial objects in a linked list. I have been given a linked list class already built. But i have to make a Database class that performs other operations. I am stuck on one that requires … | |
Dear Sir, Please help me in this part of the question. I want to change the phone a friend details. Find a person and change their phone a friend number. To do this I need to find a record in memory and overwrite that record's phone field. Then save all … | |
Hello everybody, I'm having a problem with my conpiler. Below is what I typed but it is giving me Can anybody help me? 7 parse error before `float' 10 `fltMoney' undeclared (first use this function) 10 (Each undeclared identifier is reported only once for each function it appears in.) 13 … | |
A friend of mine said that python could be used to make simple GUIs (ie. a couple of buttons and a text box). I googled "python gui" and it looks like there are 30934 libraries to make GUIs. Is there a "standard" or "built in" one? Thanks, Dave | |
Hi all; I have problem in C. the problem is ,Here is my code [code=syntax] #include <string.h> #include <stdlib.h> #include <stdio.h> /* uni() function takes an array an thier size.and it produce an array which is include unique element */ int uni(char **arr,int size) { int unique = 0; /* … | |
Hi,all Here is the sql sentence i wrote on my php file. But when i test with it nothing show up which there should have some results?? My idea is :get the sw and ne point, choose every value live inside the rectangle in my database [CODE=php]//zips is my table … | |
im trying to write a recursive function that returns the fibonacci number, but am getting a weird result. here's my code. [code] def fibonacci(a,b,n): a =a+b b = a+b n= n-2 if n ==0: print b return b elif n ==1: print a return a else: fibonacci(a,b,n) x = fibonacci(1,1,7) … ![]() | |
Hello, I have this code of converting hexadecimal value to decimal but getting a warning at compilation. I'm starting to learn Perl and this one really makes me - almost - crazy! :) --- [code=perl] #!/usr/bin/perl use strict; use warnings; my $decVal; print "Please enter a hexadecimal value to be … | |
I got a "working" script for monitoring Autosys jobs. Basically, it starts with listing all the jobs that are due to run in a "shift". Now, I'm in the part where I want to delete a job/word from a list BUT only the first occurrence of such job name. This … | |
Hello guys , i recently started programming in C++ , and i am trying to create a text-based RPG in prompt console ... what my problem is that i have my main function , calling one other function name infomisc , in infomisc function it let you choose , 1. … | |
hi all, do anyone knows how to create a dynamic dropdownlist? the dropdownlist will retrieve the list items from database.. eg: below is code for static dropdownlist where i declare the listitem myself.. but how should i declare listitem retreive from database? [CODE] <asp:dropdownlist id="ddl" Runat="server"> <asp:ListItem Value="1">A</asp:ListItem> <asp:ListItem Value="2">B</asp:ListItem> … | |
Hi everyone I'm new here, and is so often the case with forums, I discovered daniweb whilst googling for a solution! I'm new to C#, and although I've read loads of books am finding that the best way of learning is to just get stuck in! I've set myself the … | |
Hi! I have a school project where I have to make a array that includes facts about films. Every space in the array includes leanght of the film, authour, grade, company, and title. So I know how to write it to a file but I have no idea how to … | |
Hi there, I've been searching the documentation but I can't find any answers (perhaps I'm asking the wrong questions). Say we have a list of animals: Sheep, Cow, Pig, Horse. All of these animals have attributes (4 legs, etc.) We have the name of the animal and the attributes stored … | |
Hi all! I've been working on a problem from my Intro to Java class for a couple of weeks and I feel like I'm close. I turned it in and only got partial credit. Here goes: This program allows a user to enter a phone number, country code, area code, … | |
How do you get programs like bubble sort, quick sort to print a result. def bubblesort(list): for passes in range(len(list)-1, 0, -1): for index in range(passes): if list[index] < list[index + 1]: list[index], list[index + 1] = list[index + 1], list[index] return list Thanks | |
hi eveyone i need to edit person name or Appointmendescription but not date or time in my program. i can write all the records to the file and can read from the file. and need to edit the file now. can anyone help???? thanks.. [CODE] void writeAppointmenRecords( ) { int … | |
hi, there, im coming up with codes to connect asp.net interface(Track) with asp.net interface(Clerk). i am not sure if my codes are correct. at the same time, i am not sure how to write codes to write the select statement which can connect asp.net interface with sql server. please help. … | |
Hi, I need some help with normalisation please. I need to enter an event multiple times using the same event number under the "supply" table, however I receive the "unique constraint violated" error. I have attached my normalisation up to 3NF, but believe I have messed up somewhere. I'd appreciate … | |
Hi, I am trying to implement the following ajax code: [CODE] function create() { obj_t = new XMLHttpRequest(); if(obj_t == null) { alert("Your broweser does not support it"); } } function data() { if(obj_t!=null) { if(obj_t.readyState == 4) { var dv = document.getElementById('tdetail'); dv.innerHTML = obj_t.responseText; } } } function … | |
Hi all, Im a still very new to PHP and don't know how to attempt the following: I'm trying to build a dynamic array in a form i'm utilizing. Also I am passing parameters from the url as follows: colour.php?val=3&co1=Red&co2=Blue&co3=Green //where val is the iteration number and co1,co2,co3 is the … | |
this is the link i got it from: [URL="http://www.learnphponline.com/scripts/email-activation-for-php-forms"]http://www.learnphponline.com/scripts/email-activation-for-php-forms[/URL] this is the error im getting please also consider im n ew and dont know how to find the manual maybe it is a common known thing or something im asking anyways i wouldnt know waht to look for either its … | |
I'm having some problems in creating sessions in JSP pages. I'm new to it so I need some advices. [CODE]<%@ page import="entity.*" %> <% [COLOR="Red"]HttpSession session=request.getSession(true);[/COLOR] String id = request.getParameter("idNo"); String fullName = request.getParameter("fullName"); String maritalStatus = request.getParameter("maritalStatus"); String height = request.getParameter("height"); String weight = request.getParameter("weight"); String gender = request.getParameter("gender"); … | |
Hello everyone!! Im struggling on a simple assignment. I have to filter specific data (which are in .xls format) using the "optimal" kalman filter in both ARMAX and ARX models. the struggle is on how to connect the data from the xls file to the filter... here i give u … | |
hi there, im having problem with the whole codings here. i can't execute the programme.please help.tell me whats my mistake. i need to connect it to the microsoft sql server [code=asp.net]<%@ Page Language="VB" %> <%@ Import Namespace="System.Data %> <%@ Import Namespace="System.Data.SqlClient" %> <%@ Import Namespace="System.Configuration" %> <%@ Import Namespace="System.Data.SqlClient" %> … | |
say you have a list, b, you don't know how many items are in there, but how could you add up all the items? for example, if your list is [2,4,5,8,10] is it possible to find the sum of all the numbers? so it will give you 29? i've been … | |
I am trying to store all of the tokens in an array. But after it store racecar in the array i get an access violation,Unhandled exception at 0x6515f8e0 (msvcr90d.dll) in Assignment2.exe: 0xC0000005: Access violation reading location 0x00000000. Here is the file im reading from: Bob went to town in a … | |
[B]Hi, I am developed a simple web application using servlet where it gives a response for a fixed request, but a third party application sends this request very frequently as per our project architecture, but due to this very frequent request, the tomcat server slow down after a few seconds, … | |
As part of an assignment I am creating a class to handle rationals with numerators and denominators, overloading the operators for cin and cout, as well as +-*/. So these are the functions for those operators, now where exactly should I include these in my class? [code] Rational addition(Rational a, … |
The End.