199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for TheBeast32

Hi, I was reading something that said goto was bad. Why is it a bad practice to use it?

Member Avatar for Narue
0
126
Member Avatar for cplusplusgeek

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]; …

Member Avatar for Freaky_Chris
0
121
Member Avatar for britto
Member Avatar for peter_budo
0
75
Member Avatar for britto

i hve used upload bean for uploading files... im using netbeans and while compiling its says javazoom package does not exist... any solutions ??

Member Avatar for britto
0
104
Member Avatar for polo_coins

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

Member Avatar for LizR
0
78
Member Avatar for sonia sardana

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 …

Member Avatar for sonia sardana
0
473
Member Avatar for joelogs

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 …

Member Avatar for Freaky_Chris
0
185
Member Avatar for aneeshanand

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 …

Member Avatar for stultuske
0
167
Member Avatar for dinilkarun

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 …

Member Avatar for dinilkarun
0
252
Member Avatar for Soundgarden

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 …

Member Avatar for LizR
0
152
Member Avatar for harrykokil

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 …

Member Avatar for Luckymeera
0
68
Member Avatar for jee85

[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, …

Member Avatar for stultuske
0
158
Member Avatar for askhan

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 …

Member Avatar for masijade
0
341
Member Avatar for programmingme

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 …

Member Avatar for stultuske
0
104
Member Avatar for walsug

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 …

Member Avatar for Denniz
0
138
Member Avatar for RahulV

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

Member Avatar for varmadba
0
62
Member Avatar for Eyo

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 …

Member Avatar for Eyo
0
78
Member Avatar for steveissuperman

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, …

Member Avatar for pritaeas
0
120
Member Avatar for threebluIdboys

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 …

Member Avatar for pritaeas
0
83
Member Avatar for babydolphin

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>" …

Member Avatar for babydolphin
0
81
Member Avatar for dreamer_0244

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 …

Member Avatar for dreamer_0244
0
112
Member Avatar for dearrajaguru

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 …

Member Avatar for dearrajaguru
0
75
Member Avatar for AorA

[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 …

Member Avatar for AorA
0
186
Member Avatar for god_1896

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 …

Member Avatar for mangel.murti
0
281
Member Avatar for HI2Japan

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, …

Member Avatar for HI2Japan
0
153
Member Avatar for jkarimi

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.*; …

Member Avatar for masijade
0
138
Member Avatar for dearrajaguru

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

Member Avatar for dearrajaguru
0
81
Member Avatar for mauro21pl

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: …

Member Avatar for WaltP
0
122
Member Avatar for afromong

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??

Member Avatar for stilllearning
0
89
Member Avatar for Clockowl

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>. …

Member Avatar for Salem
0
306
Member Avatar for kenji

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 …

Member Avatar for stilllearning
0
76
Member Avatar for preethi_ga

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 …

Member Avatar for preethi_ga
0
105
Member Avatar for cassie_sanford

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 …

Member Avatar for Teme64
0
167
Member Avatar for BINDERJ2

[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 …

Member Avatar for stilllearning
0
183
Member Avatar for DemonGal711

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 …

Member Avatar for Alex Edwards
0
3K
Member Avatar for kittycat07us

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. …

Member Avatar for Alex Edwards
0
414
Member Avatar for shopnobhumi

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 …

Member Avatar for shopnobhumi
0
99
Member Avatar for streetrodfanati

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>&nbsp;&nbsp;<a href="privacy.htm" target="_NEW">-privacy policy-</a>&nbsp;&nbsp;<a href="spam.htm" target="_NEW">-spam policy-</a><br></td></tr> </table> </CENTER> <? } ?> I also get the …

Member Avatar for streetrodfanati
0
230
Member Avatar for Razzar

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 …

Member Avatar for skatamatic
0
124
Member Avatar for ajay23

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 …

Member Avatar for eggi
0
69
Member Avatar for Chaster

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, …

Member Avatar for serkan sendur
0
127
Member Avatar for skvikas

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 …

Member Avatar for ArkM
0
87
Member Avatar for freshfitz

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 …

Member Avatar for freshfitz
0
241
Member Avatar for afg_91320

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 …

Member Avatar for Lerner
0
199
Member Avatar for hell_tej

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 …

Member Avatar for hell_tej
0
194
Member Avatar for pardeep3dec

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

Member Avatar for hell_tej
0
96
Member Avatar for chaom79

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 …

Member Avatar for Juliopp
0
226
Member Avatar for hell_tej

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 …

Member Avatar for hell_tej
0
106
Member Avatar for Venom Rush

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). …

Member Avatar for R0bb0b
0
83
Member Avatar for cloudii

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 …

Member Avatar for Freaky_Chris
0
174

The End.