199,114 Archived Topics
Remove Filter ![]() | |
Hi, I was reading something that said goto was bad. Why is it a bad practice to use it? | |
I want the following program to use lesser memory as much as possible. Any suggestions? [code] #include <iostream.h> #include <conio.h> void InputNum(void); void SearchNum(int); int numArray[10]; main() { int num; InputNum(); cout<<"\nEnter the number to be searched:"; cin>>num; SearchNum(num); getch(); } void InputNum(void) { for(short i=0;i<=9;i++) { cout<<"\nNumber "<<(i+1)<<":"; cin>>numArray[i]; … | |
I need to know that HOW CAN I UPLOAD MP3 FILE on SERVER USING JSP | |
i hve used upload bean for uploading files... im using netbeans and while compiling its says javazoom package does not exist... any solutions ?? | |
i want some encapsulation problem int num; num=int.parse(Console.Readline()); here i have a problem if user enter a string i get encapsulation how can i solve it in easiest way my friends told me some function of try() ..catch() but I don't understood it Thanks Sergey | |
I have two buttons Play & Full Screen. If u click on Play Button,Movie starts..Movie Starts within 15-20 Seconds.....When u clik on Full Screen Button.,Media Player is Maximised. I want the if the media player is maximised,& when we click on ESC Button, Media player is minimsed.......But I m nota … | |
can someone help how to develop a chat program in c. the program must run in the linux terminal and have a layout like yahoo messenger. it must have a area in which the user's can be seen, text area and an area in which one could the on going … | |
Hi All Here I got a challenging task to do in any of JAVA/JavaScript/AJAX technologies with an XML as input. Task: Graphical representation of Application Dependency among the machines in a Network. Technology to use: JAVA/JavaScript/AJAX/XML Conditions: Source Files should be available and cannot use any licensed applications/libraries inside the … | |
Hi, I have two modules: Mod1 and Mod2. I want to call the function ‘ ProgressBar’ which is present in Mod1 inside a class ‘clsMain’. In the function ‘ProgressBar’, I set the increment to the progress bar. The function looks something like this: def ProgressBar(self,intIncrement): self.gauge1.SetValue(intIncrement) It takes integer as … | |
Now I have been using the Directshowlib-2005 Libs. And the SDK BDA sample called DTVViewer. Now I am not the type of person to ask for help and annoy the living *&^*& out of some poor person.. ...But.... I just need some simple help to convert the code into something … | |
hi guys am stuck with my project.. i want to make the car stop when the lights are red and then move when its green. im providing you my code hoping you can help me.. thanks.. [code=python] import Tkinter as tk import time import sys import datetime as dt from … | |
[code=java] #include <stdio.h> #include <stdlib.h> #include <math.h> #include "matrix.h" /* -------------------------------------------------------------------------------------- The GaborFilteredImg provides the outputs of the Gabor filter bank -----------------------------------------------------------------------------------------*/ void GaborFilteredImg(Matrix *FilteredImg_real, Matrix *FilteredImg_imag, Matrix *img, int side, double Ul, double Uh, int scale, int orientation, int flag) { int h, w, xs, ys, border, r1, r2, … | |
hi all i am new to dani web so if i make any mistake please forgive me ... I am just wodering that some could help me in my assignment.. i am not a programming geek and offcourse not in java. my teacher has gave me this assignment i dont … | |
I'm in beginners Java and I have a question... I've written about 16 programs in my class so far and in all my programs this is what we would do: Create a Folder (let's call the folder Project1) Make a .java file (project1.java) then we would go to our practice … | |
hello, I know linux has this mechanism I wanna implement it in windows 2003 and I've done some parts but one point: writer must wait until all the reader finished. hint: I don't want a loop in the mutex critical-section to subtract the semaphore by plural number,which can't be directly … | |
Hai, ive created a SQL database, but now i want to place and use this on another PC. Is it possible to write the database files to a CD or DVD and then copy it to another PC? If yes then please explain how. Thank you | |
Hello Every Body, could any one help me please applying DatagridView inside another one I have a Continent , and Countires and State Continent is the parent of the country Country is the parent of the state Thus i'll have the parent Continent Containg GridView of Country Parent Country containing … | |
I've got this site that I've been working on that functions very similar to Digg/Reddit. Users submit headlines and the rest of the community either upvotes or downvotes them. Right now I'm just setting a cookie every time a user votes on a story, but this only lasts for awhile, … | |
As I have previously mentioned in another thread mysql and php are new concepts to me and currently I am having many problems. My question is a recommended setup. Can you please tell me about your current setup for working with mysql and php. I have read several things that … | |
i'm trying to display the data from one particular table. everything seem to run fine. but not the data from the table. Please advise, anyone. Codes is as below: [code=php] <?php include ("login.php"); $query = "select * from news"; $result = mysql_query($query); if(!$result) { die("could not query the database: <br>" … | |
I am currently working on this table. It will contain the transactions made. But the transaction varies, it may be a purchase order, transfer from inventory, rental, etc. I have different IDs for each type of transaction (e.g POID, TFID, RENTALID). My question is, should I place all of this … | |
Hi.... i am a fresher... i need your help friend.... i did a simple project... now i want to print the results using crystal report. the problem is i cant resize my report horizontal direction. please tell me how to design the crystal report page. waiting for your reply...... Thank … | |
[code]#include <iostream> #include <windows.h> using namespace std; void about(){ cout<<"Expence-List 14/10/2008:"<<endl <<"Brought to you by www.******.com"<<endl <<"Programmed by **********."<<endl; Sleep(4000); system("cls"); } int MenuOne(){ int MenuSelection=0; cout<<"What would you like to do?"<<endl <<"--------------------------------"<<endl <<"1. Create a new expence list."<<endl <<"2. Edit a previous expence list."<<endl <<"3. View a saved expence … | |
hi all; im looking a good example of 3 selector like for region province and city. if select form the list of region the province would have a list of province belong to region and the city well provide a list of cities belong to the region. and if province … | |
I have a really weird thing happening in my database. It used to work fine but all of a sudden now when I preview the report, it shows up too large. Please see the pictures to understand what I mean. I have tried undoing every change that I had made, … | |
I really am stuck as to what I am doing wrong with this program. Help would be much appreciated :D. [code] // DiscountPrices.java - This program calculates total cost for discounted items. // Input: Interactive. // Output: Original price, discount, discounted price, and total price for all items. import javax.swing.*; … | |
Hi friends.... how to add a particular column values in list view. 5 th column is amount.. i want to display the total amount.. please help me.. its very urgent... thank you... Regards., Guru | |
Hi Could anybody help me to clear that out. Just go step by step and try to explain it to me. I would appreciate it Thanks [attach]7727[/attach] The answer for that one: At the end: c1 -- 40 (hex) and c2 -- DC (hex) [attach]7726[/attach] The answer for that one: … | |
basically if i ask for an string i.e. i ask someone a question cout<< "is this correct yes or no?"; cin >> a; and then a number is input the program just goes crazy how do i solve this?? | |
Hey guys, I was wondering if realloc() copied the contents of the block of memory to the new block "on most compilers" IF the new size is bigger. I like to learn good ways to program something, but don't want to reinvent realloc just because it doesn't work on <reallyoldcompiler>. … | |
Hey guys I'm having a strange problem with my program and I'm not sure how to solve the problem. I have a function which takes an array clears multiple white spaces to make a sentence so [code=CPLUSPLUS] "abc def ghi" //becomes "abc def ghi" [/code] and it returns the length … | |
Hi, Im having some problem with the dataset. Normally i drag the dataset from the toolbar and srop in the webform. and if i try to load its properties with the database. it does'nt work out. like if i right click and click in its properties. i cant set the … | |
im making a generic website for my class and we have to post a graphic for this website from this cd that came with the book. Problem is, i can't get the Image URL to post my graphic. I tried using the image button and the image thing in the … | |
[code] #include <iostream> using namespace std; int main() { int speed, time, distance; // Get the speed. cout << "What is the speed of the vehicle in mph?\n"; cout << "(Enter a value greater than 0): "; cin >> speed; // Validate the input. while (speed < 0) { cout … | |
Okay, I know what's wrong with my program but I don't know what to do to fix it. I have to take a program we previous made and make it a template class. Okay, sounds easy enough. I know all the writing it right cause it ran fine before, now … | |
Hi, I'm having trouble coming up with a function that scans a word, starting from bit StartingBit, until the first zero bit is found. The function is suppose to return the index of the found bit and if the bit at StartingBit is alrieady what sought, then startingbit is return. … | |
I need to write a program where it would ask the user to enter a positive even number,when entered if wrong then it would say value is illegal and will terminate the program. If it is even then program prints out the square of the number. I have just started … | |
Hello, I'm having trouble with these syntax errors & need some help. Thanks! Parse error: syntax error, unexpected T_STRING in /home/a3933825/public_html/require.inc.php on line 43 function footer() { ?> <CENTER> <table> <tr> <td class="font"align=center><a href="start.php?option=contact">-contact us-</a> <a href="privacy.htm" target="_NEW">-privacy policy-</a> <a href="spam.htm" target="_NEW">-spam policy-</a><br></td></tr> </table> </CENTER> <? } ?> I also get the … | |
Hello I have this code bellow i need some help with. im trying to make a number game but i have a problem that i cant solve, the loop i made dosent update the grid like it's supposed to do. when you first start it you will se 2 grids … | |
Hi all, I am new to shell script. I'm currently running a java application using shell script. When i'm running the java applicaton i need to print all the System.out.println() statements in a file. I don't know how to implement it.. Can any one help me on this. Thanks in … | |
I've got some homework to do, but I cannot go through this issue. I want my .aspx page to display my database records, one below another. In order to do this I use a GridView, while the data is stored in an ArrayList. This ArrayList is composed of User objects, … | |
Hi All, Here i am with another question . When i execute the code below the destructor in Stone is called twice . Why? In main [ICODE] set<Stone> stones = bag.letMeSeeStones(); [/ICODE] is coming from reference hence "stones" should not be treated like a local object. [CODE=C++] #include <iostream> #include … | |
Tring to pass variables to payflow pro. I found a script already written but how do I pass the variable from textbox? Where post.append is I need the value of my textbox's ----------------------------------------- .aspx [code=csharp] <asp:TextBox ID="balanceTextBox" runat="server" Columns="20" Rows="4" Text='<% #Bind("cardacct")%>' ValidationGroup="add"></asp:TextBox> [/code] ----------------------------------- .aspx.cs [code=csharp] using System; using … | |
its me again! (and yes im stuck on yet another problem ***) i have created a code where the user is asked to choose a geometry formula and can solve a problem using any of the choices that are shown. now this code uses the switch function, but for my … | |
Hi Folks, I Trying to Copy File UJF.mdb in another Location which is User Specifyed. I Closed All Connection, But Still ERROR 70 'Permision Denied' Occurs :'( [ICODE] rs.close con.close FileCopy "D:\UJF\UJF.mdb", "D:\Person.mdb" MsgBox "Backup Successfully Compleated", vbInformation [/ICODE] How to Copy Access 2003 .mdb File to Another location Without … | |
Hi friends, Please give me the solution of making a project multiuser on LAN. I am using Ms Access as backend tool. When i run that programme on another PC then it shows file already in used and programmes goes out. Pardeep | |
Guys, right now i'm trying to develop a php file that can scan a virus in a server. The file and the virus definition i kept in a separate folder I named it 'virus'. I mean my website is not in a same folder as the virus scanner file. After … | |
Hi friends, I m creating a software with backend of ORACLE 9i. I need to Generate backup ORACLE "ADDFILDP" table to ACCESS "ADDFILDP" table(Simply Copy the data to one table to another[ORACLE to ACCESS Table]):$ An access File is already Created. I was code for it as Follows [ICODE] Private … | |
Hi there I'm new to using sessions and I'd like some input on what the best method is for my situation. The site I'm building requires a shopping cart. A very simple one I might add. There will be no credit card facility or login system (explained in next paragraph). … | |
Hi, I'm learning intro to c++. My question is, how do I input values that come from a different text file so that the program uses those values for calculations? Basically, it gives me a list of numbers and tells me what the numbers are for... and then I have … |
The End.