199,114 Archived Topics
Remove Filter ![]() | |
Hello everyone! I've just started a module on Database Design & Implementation and was wondering if someone with experience of ERD's could take a quick look for me. Here is the scenario [QUOTE]Nightingale’s Nursery Nightingale’s is a private nursery organisation which takes in children from the age of one year … | |
in a textbox I write 100000. I want another text show automatically "one lac". I mean it aumatically show the in word of that numeric number what I write. how it possible. | |
guys, need help please. i have an syntax error on my update statement here is the code. myqry = "UPDATE prodInfo SET " myqry = myqry + " [itemName] = '" & txtName.Text & "'," myqry = myqry + " [comboSize] = '" & combosize.Text & "'," myqry = myqry … | |
I wan to split my content(in horizontal)in my text file to vertical... [CODE] string filePath = @"c:\Users\Fish\Desktop\fyp-coding\Data.txt"; string line; if (File.Exists(filePath)) { StreamReader file = null; try { file = new StreamReader(filePath); while ((line = file.ReadLine()) != null) { MessageBox.Show( line); } foreach (string lines in File.ReadAllLines(filePath)) { string[] parts … | |
Edit: I fixed the problem! Someone please delete this or something! | |
I'm supposed to read all the words from text file and use bubble sort to sort the word and count their occurrence. As I read each word from file, what is the exact thing I need to do? Do I need to store the word (as char array) somewhere to … | |
Hi all. I am trying to read items from a text file whose name is input by the user and also output the receipt to a text file whose name is input by user. I got stock for about 3 hours. Could you guys help? Thank You. [CODE] #include <iostream> … | |
Hello! I'm currently working on a sort of simple imperial-to-metric converter application for myself, but I seem to have hit a snag. I've got the UI built, and the logic for one of the calculations built, but the button to make it all happen is giving me a problem. [CODE]import … | |
Hello, I've been trying to figure this out and I'm not sure why my code does not work? [CODE]$(function(){ $('ul.ldd_menu li.topLink ul').hide(); $('div.ldd_submenu').hide(); $('div.submenu_top').hide(); $('li.topLink').hover(function(){ $(this).find('ul').show() $(this).css({'color':'#FFF','background-color':'#000000'}); $(this).find('div').show() },function(){ $(this).find('ul').hide(); $(this).css({'color':'#000','background-color':'#ffffff'}); $(this).find('div').hide(); }); });[/CODE] That is my code, and the background-color works. But why doesn't my font color change colors … | |
Hi can We run VB.Net windows Application (2.0 Framework) in Linux. If possible what are the steps to follow. | |
who know how to make TreeGridView in C# which want support databind. want to retrieve data from database to display in TreeGridView. | |
Hey folks, I'm a student and I have been using Blue J. I have found it rather primitive and was wondering what the majority of other java programmers like to use? I thought about Net Beans but I honestly have no idea, So what do you use ? | |
Hi Everybody I am new to C++ and have a problem from the book my instructor gave that I am having some problems with. I am sure you guys are all familiar with the "mortgage calculator" here is my code. The Errors I am getting are as follows. I have … | |
[CODE]echo ("<tr bgcolor='B0C4DE'>"); $value=$row['idbook_code']; $author=$row['b_author']; $book=$row['b_name']; echo ('ISBN : '.$row['idbook_code'].'<br/>'); echo ('Title : '.$row['b_name'].'<br/>'); echo ('Author : '.$row['b_author'].'<br/>'); echo ('Books Available : '.$row['b_avail'].'<br/>'); if($row['b_avail']>0) { if (!$_SESSION["valid_user"]) { // User not logged in, redirect to login page echo("Available".'<br/>'); }else { echo("<input type='hidden' name='idbook' value='$value'>"); echo("<input type='hidden' name='author' value='$author'>"); echo("<input type='hidden' … | |
I am a beingger for using Python,now I am doing a palindrome program,but I have tried many time it still doenst work, can anyone help me to fix it??Thanks a lot!!!!! Here is the code: [CODE] s=input("Enter alphabetic characters: ") def palindrome(s): index=0 c=True while index<len(s): if s[index]==s[-1-index]: index +=1 … | |
hey , yesterday i installed fresh apache and php in CentOs 5.5 pc , my problem is my php is not working well ,, every time showing errors .....how i solve this error please help me ... for eg: while i run a simple code snippet [CODE]<?php echo "php execution … | |
hi... I am new with c++. I need help to retrieve image from my usb webcam. I used codegear compiler. The idea is I need to capture image 10 times per second( or more) from my webcam. So, it will display at the screen some sort like video image (at … | |
I'm using Visual Studio c# (spanish) The code: [CODE]cmd.CommandText = "UPDATE cursos SET saldo = saldo - '" + cantidad.ToString() + "' where id = '" + vID + "' ";[/CODE] vID is a string variable. The problem is here: Don't work [B]where id = '" + vID + "'[/B] … | |
Here is the snippet of code I am having issues with. cout<<"So are you a male or female, Please type m/f"<<endl; cin>>sex; if (sex='M','m') { alcohol_distribution=.73; } else if (sex='F','f') { alcohol_distribution=.66; } So I know I have this terribly wrong, but i want the alcohol_distribution based on whether or … | |
Hi guys I am writing an application in c# I want to create a dynamic log file which would contain all the errors or exceptions occurred during execution of the Component. Log file simply has to append all the errors or exceptions generated with error details and time and date. … | |
hey....i got some problem in ReadLines method string filePath = @"c:\Users\Fish\Desktop\fyp-coding\Data.txt"; string line; if (File.Exists(filePath)) { StreamReader file = null; try { file = new StreamReader(filePath); while ((line= file.ReadLine())!= null) { textBox7.Text = line; } } finally { if (file != null) file.Close(); } } When i use this coding...it … | |
Could you please help me, i need to extract the fields which are Highlighted and moreover i want to extract in the following way. starting from the first column i have to go n(say n=13) lines down and extract "Records" field value. [U]P.s[/U] Please find the attached document which clearly … | |
To Chubler XL #!/bin/sh touch fileuseranswer echo "**********WELCOME TO GROUCHO MARX UNIVERSITY**********" echo Username: read i echo Password: read j Username="${i}:{j}" if ( ! grep -q $Username /$HOME/PhaseTest/userinfo ) then echo "Wrong Login/Passwd" exit 2 fi echo echo -e " \c" date QFILE=./questions # max questions max=$(sed 's/^[1-8][0-8]*\. /#&/' ${QFILE} … | |
i do have 1 question [code]int function(...) { int x; int q; if (condition) { } <-----is there a way to put a marker here...then use a pointer to store the address of the marker...right before the 2nd conditional statement in my code? if (condition2) { } return val; } … | |
I've recently come upon a frustrating Array Index Out Of Bounds error when selecting any of the "calculations" to be applied to the entered values(maximum 1000 values). I suspect it to be a problem with the [CODE]values[(c+1)][/CODE] in the for loop. I can't figure a way around this problem. Can … | |
Hi, I am using tomcat to run jsp file, my question is how can force my server to create log file ? I'm new into tomcat, so please be gentle. Thanks | |
//Hi, //i create following table Table name : person ID AGE FNAME LNAME 1 10 Geek Greek 2 20 Seek Bells 3 30 Creek Dells 4 40 Sreek Sells[/B] // I wrote following procedure which is run successfully. Create or replace procedure proc1 as cursor person_cursor (pAge number) is select … | |
I've spent several days looking for info about precisely how to do DLLs and have found bits and pieces here and there but noplace that ties it all together. I'm thinking this could grow into a 'how-to' for DLLs which might be useful for others as well. I'd like to … | |
The game will have the computer generate a secret random number in the range of 1 to 100. The user will then have six tries to guess the secret number. After each guess, the algorithm will tell the user if the guess was too high, too low or was correct. … | |
so I've been trying to write this program that takes the data from a file and outputs the year the rainfall how much it is below/above the average, the average raifall and the std deviation and for some reason I get three C4552 warnings:'>': operator has no effect on three … | |
I came across this qn in a debugging contest in college. The out put must be "aadd" WHat should be given in conditional field. NO goto and exit statements. [IMG]http://lulzimg.com/i13/b449cb.jpg[/IMG] Can anyone help me?? | |
I have a listbox and what I basically want to achieve is as I click a value within the listbox I want the value clicked to be passed to a function. I could easily do this using a button and listbox.GetValue() but I believe the quality of my finished code … | |
I have a Mysql database and I am trying to import multiple records with multiple columns into Flash AS3 using PHP. My problem is I am able to make it work with a single column and multiple records but for multiple columns I am not being able to format it … | |
Hey fellow delphirinos, I am currently using the following code to get an application in my application: [CODE]procedure TForm1.Button1Click(Sender: TObject); begin ShellExecute(Application.Handle,'Open','Notepad.exe' ,nil,nil,SW_NORMAL); //Wait for it to be loaded. Sleep(500); //Get the handle of the other program using the caption of the window. wHandle := FindWindow(NIL,'Untitled - Notepad'); //Now change … | |
im trying to create a form that redirects the user to anther page and also stores the information in the database. here is the code [CODE]<?php mysql_connect("localhost", "DBname", "Password") or die(mysql_error()); mysql_select_db("DBname") or die(mysql_error()); // Retrieve all the data from the table $result = mysql_query("SELECT * FROM players") or die(mysql_error()); … | |
Hello, I have a current assignment to make a program copy what is put in, and place it into a paragraph using word wrap. If there is no room for the word+ a space then print the line and that word+ space starts the next line. [code] public class ReportWriter … | |
I am trying to return a vector of some of the elements in a vector. I wish to modify one of the elements in this new vector and have it automatically update the value in the original vector. I tried this: [code] #include <iostream> #include <vector> class TestClass { public: … | |
I am getting the Error Registration message... why? [CODE]<? session_start(); include("database.php"); /** * Returns true if the email has been taken * by another user, false otherwise. */ function emailTaken($email){ global $conn; if(!get_magic_quotes_gpc()){ $email = addslashes($email); } $q = "select email from users where email = '$email'"; $result = mysql_query($q,$conn); … ![]() | |
Hello all! I have a problem with my jquery. I have hidden some parts of my menu, but I can't seem to hide the div tag. How do I accomplish this? This is my jquery: [CODE]$(function(){ $('ul.ldd_menu li.topLink ul').hide(); $('li.topLink').hover(function(){ $(this).find('ul').show() $(this).css({'background-color':'#000000', 'color':'#ffffff'}); },function(){ $(this).find('ul').hide(); $(this).css({'background-color':'#ffffff','color':'#000000'}); }); });[/CODE] This is … | |
good day: I'm using an ajax script that receives a value into an input box and thus performs a function. I need to invoke the function immediately after the input box has a value. Currently the box has to lose focus in order for the function to work. What is … | |
hi guys, i'm having this kind of problem Warning: Cannot modify header information - headers already sent by (output started at /home/deleted/public_html/affiliateomega.com/face-fans/style.php:4) in /home/deleted/public_html/affiliateomega.com/face-fans/facebook.php on line 378 i really don't know why what's wrong, i've already check if their is a space or blank line but i got no clue … | |
My program is a implementation of the Sieve of Eratosthenes algorithm, which finds primes number. It stores two integers up to the maximum, and all odd numbers from 3 upward. It also checks if, for whatever any reason the first number ever reached the square root of the maximum number, … | |
hello, i wrote a code to encrypt the 4 digit number. i broke the number in digits and encrypted it. It works fine. But the problem comes when first digit in output comes 0. that time i get 3 digit number instead of 4 digit number. i want it to … | |
problem You are to, given the data below, design an IA-32 assembly language program to find the max and min of the array in X and save them in A and B respectively. X sword 100,200,-100,-200,150,-150,300,250 A sword ? B sword ? what i have so far: 1. irvine32.inc 2. … | |
Hello, I thought that I had sorted this a while back - but testing with fresh eyes has revealed otherwise. I think everything works (of course I may be quite deluded) but if the tick box is checked and a calculation is made it adds 10% - which is good … | |
Hello every one I'm trying to write a game that has a person guess a number between 1 and 100 hand have the computer guess that number via inputs from the user but I keep running into snags. [CODE]#include <iostream> #include <cmath> #include <cstdlib> using namespace std; int main() { … | |
Just trying to change the formatting of various bits of my print code. Is there a simple way to do it? | |
Hello, I've a script that is launched with a soft link. Inside the script, I need to know where is the script, and I'm using the following : [CODE]SH_DIR = $(cd $(dirname "$0"); pwd)[/CODE] But SH_DIR contains the path of the soft link i.e, I've the soft link like this … | |
Hi , i'm trying to do an exercise where the computer has to guess the random number from the range of 1-1000. Currently this is the way i have it set up as. I divide that range in half and store it in guess and then check it against the … | |
Hey, I have completed my code for Java and I have to put it in GUI, problem is I dont know a thing about GUI or if my program works correctly with it or not. Here is my code and what the code does is you type in random numbers … |
The End.