199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for srinath1

inr main () { int x=3,y=4,z=4; printf("%d",z>=y>=x), } the answer is zero ..how??

Member Avatar for sharathg.satya
0
180
Member Avatar for pinkygirl
Member Avatar for debasishdeb

/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package progressbar; /** * * @author DEBASISH */ import java.awt.*; import javax.swing.*; import java.awt.event.*; import java.awt.event.ActionEvent; import javax.swing.event.ChangeEvent; import javax.swing.event.ChangeListener; public class Progressbar { JProgressBar jprogressbar=new JProgressBar(); JButton jbutton=new JButton("Retrieve information"); …

Member Avatar for zeroliken
0
132
Member Avatar for ceteris

[B]i dont know why i am having an error in [B]header[/B] Warning: Cannot modify header information - headers already sent by (output started at delete.php on line 13[/B] [B]delete.php [/B] [CODE]<?php include("db.php"); $id =$_REQUEST['BookID']; // sending query mysql_query("DELETE FROM books WHERE BookID = '$id'") or die(mysql_error()); header("Location: index.php"); ?> [/CODE] …

Member Avatar for anthonyjpv
0
206
Member Avatar for sharathg.satya

Is exception handling useful in compile time errors logical errors and even runtime errors?

Member Avatar for dewitt-joyce
0
289
Member Avatar for EBS.VivekGupta

Hi, I am working over a ASP .NET application and SQL server database. The databases i m using is huge and takes time while updating or generating report by my ASP .NET application. As the reporting and updating require some calculation, if the user presses ESC button or Back button …

Member Avatar for EBS.VivekGupta
0
182
Member Avatar for ohblahitsme

Hello. I've been working on this program that reads input from the user and attempts to put it in a file called profile.txt I've got it to work (I checked this by making it output the file to the terminal), and from what I can tell, it does create the …

Member Avatar for ohblahitsme
0
172
Member Avatar for rebelstar

Hello, I have a C file and .h file which i can easily compile on a 64 bit linux platform.( Through eclipse IDE. In the compiler option, i enable -std=c99. Now, with the same file, i want to compile it on c++ compiler. So i add extern c to the …

Member Avatar for rebelstar
0
281
Member Avatar for smarty_t2

Hi, I have a MDIParent and forms that i want to show as child. But because each individual child performs heavy tasks I want each child to have it's own thread. here's what I am trying to do... [CODE] void showStartPage() { Form1 p = new Form1(); p.MdiParent = this; …

Member Avatar for Momerath
0
282
Member Avatar for withinboy

[CODE]#include <stdio.h> #include <stdlib.h> #include <string.h> void addToStart(); void addToEnd(); void printList(); void removeNodeAt(); void createList(); void menu(); int option; struct node { char cName [50]; int cNumber; char tDescrip [50]; struct node *next; }*newnode, *display, *temp, *list, *prev, *head, *tail; main() { do { menu(); switch (option) { case …

Member Avatar for sharathg.satya
0
285
Member Avatar for sspweb

I have read other posting about this and I can not figure it out. Application runs fine on the computer that I used to create it. The application has 3 functions: Button1...locate and preview an image file. Button2...creates an email with html link...creates an html page file...ftp's the image and …

Member Avatar for codeorder
0
234
Member Avatar for sharathg.satya

Is exception handling useful in compile time errors logical errors and even runtime errors?

Member Avatar for sharathg.satya
0
209
Member Avatar for Commando112

Hi, This is my version of a user script. panel.php (Logged in Page) [CODE=PHP]<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <? session_start(); if(!session_is_registered(myusername)){ header("location:index.php"); } ?> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>C&amp;C-Relived Control Panel</title> </head> <body> <span style="color: #FFF">Login Successful</span> <form name="form1" method="post" action="logout.php"> <input type="submit" …

Member Avatar for Zagga
0
92
Member Avatar for renzlo

Hi All, I have a folder, here's the folder tree: [CODE]\---DC20120127-00000831 \---PABO20120127000017 \---AT | V20.txt | V23.txt | +---2012033 | 00000002_00000000.tif | 00000003_00000000.tif | 00000004_00000000.tif | 00000005_00000000.tif | \---INVALID IMAGES 00000001_.tif 00000002_00000001.tif 00000003_00000001.tif 00000004_00000001.tif 00000005_00000001.tif[/CODE] I have coded a program that will compare if the total count of tif in …

Member Avatar for codeorder
0
254
Member Avatar for jamie6441

Hello, I'm a beginner at Java and trying to get to know programming and one day work my way up developing android apps. Well I was trying make this program that would read in data from a txt file like this: [img]http://i42.tinypic.com/2vvkokj.png[/img] I wanted the firstname, lastname, id# and dob …

Member Avatar for stultuske
0
290
Member Avatar for vaironl

Hello forum, Vaironl here. I have a question, which has been bothering me quite a bit for a while now. I would like to say, I love programming. Making UI's, making desktop and mobile applications. I started to program recently about 1 year now. I'm going to college with a …

Member Avatar for vaironl
0
221
Member Avatar for minnnnnas

Hello! I'm trying to make a simple array that will increase its column size dynamicly and it will have 3 rows. On the 1st row i want the user to enter a name(aka char type) and on the other two rows i want the user to enter some float values …

Member Avatar for sota
0
170
Member Avatar for MichaelCJ10

I need help!!! im trying to get my sentinal to stop counting as my last value passed. Im imputting a value for a house,and its calculating a total price based on interest and stuff ive set up according to the house value. then pressing -1 to go onto the next …

Member Avatar for DavidKroukamp
0
264
Member Avatar for Goldfinch

Hi I'm trying to create an array of objects and then put a different value into each object. Problem is, I don't know why this isn't working. [CODE=java] public class TestProg2{ public static void main(String args[]){ Rank rank= new Rank(); } } class Rank{ private static int rankIndex=0; public Rank(int …

Member Avatar for Ezzaral
0
173
Member Avatar for ruval002

So i have implemented the following link list, but i just want to know if i can sort the link list. any help? [CODE] #include<iostream> #include"ll.h" using namespace std; // PURPOSE: contructor which initializes front and rear to NULL and count // to 0 LL::LL() { front = NULL; rear …

Member Avatar for Kanoisa
0
276
Member Avatar for stanley87

Hi,guys,morning to all :) I have face 1 situation, i already built an api using the rest method, and all my response data will be return in html data when i call the api, i testing on the same server using the jquery working fine, when i use on another …

Member Avatar for stanley87
0
341
Member Avatar for danymota19

Hi, I need help with a program that you enter X and Y, and the program has to resolve a)X^Y *Y b)X/Y it most be recursively and only using addition and subtraction. For division the result most has 2 digits of precision but only using integer example INPUT OUTPUT X=1 …

Member Avatar for Kanoisa
0
114
Member Avatar for sarathsshanker

[CODE]public final class SavingsAccount implements Serializable { /** * This constructor requires all fields to be passed as parameters. * * @param aFirstName contains only letters, spaces, and apostrophes. * @param aLastName contains only letters, spaces, and apostrophes. * @param aAccountNumber is non-negative. * @param aDateOpened has a non-negative number …

Member Avatar for stultuske
0
222
Member Avatar for abhishek2301

Hi, This is a very known problem with lot of solutions in many forums but none of them works for me. A simple code to load a jpeg image as follows: [code=php] <html> <?php $im = @imagecreatefromjpeg("/home/public_html/MyPic.jpg"); header ("Content-Type: image/jpeg"); imagejpeg($im, NULL, 75); imagedestroy($im); ?> <head> <title> My First PHP …

Member Avatar for diafol
0
455
Member Avatar for haribo83

Thi si probably a really simple thing to solve but I am failry new to PHP and cannot find the answer anywhere. I have a search results page that calls data from a MYSQL database. All of the correct information is displaying but one of the fields contains text on …

Member Avatar for nishchal_619
0
4K
Member Avatar for Nevicar

Hi everyone, I haven't really found much here on how to input into functions and I'm looking for more information on it. Basically my problem is this: I have to make a function that calculates feet into yards, and I'm trying to find out how to make it so I …

Member Avatar for frogboy77
0
229
Member Avatar for MasterHacker110

I have wrote this program in C++. But it doesnt have the output that it should. Instead of putting out +-++-+ it puts out ++-+++-+++++++-+++-+++--+++. That is just an example it will ofcourse have defirent output but it makes more characters then there is in the origanal string when i …

Member Avatar for vmanes
0
188
Member Avatar for dr_copper

Hi, I try to create a menu for the website of my friend. But I have a probleme with the reaction of event. My submenu close when i quit the section div. Someone can help me please? my code: [CODE] <html> <head> <title>test menu</title> <script language="javascript"> function ouvrir_menu(cible){ liens_cible="liens"+cible; document.getElementById(liens_cible).style.visibility="visible"; …

Member Avatar for dr_copper
0
212
Member Avatar for gedas

hey guys, I need a way to ftp a file from a server however i dont want to ftp all the files as there are some files that exceed 200mb what i need is to ftp a part of the file. in other words i would grep for a string …

Member Avatar for gedas
0
147
Member Avatar for kungfubambi

Hi, I'm pretty new to Python. Working in 2.4 due to company restraints. I'm trying to use os.path.walk to work through a tree directory, and perform different actions on the files based on the name of the file. I thought if I used "startwith" it would indicate that files only …

Member Avatar for kungfubambi
0
245
Member Avatar for razamughal67

Hello everyone some time we delete the files and folders but they cannot delete it say the file or folder use another system process or Access denied please help me and give me any code of vb6 i want to unlock files and folders Thanks

Member Avatar for WaltP
0
405
Member Avatar for Hand

Hello. I compiled a basic GUI example written with Qt. When I run with valgrind, it tells that there is memory leak. It is stranger, because at each time I run the app, the number of malloc calls are different. Qt seems nondeterministic. [CODE] #include <QApplication> #include <QPushButton> int main(int …

Member Avatar for MastAvalons
0
193
Member Avatar for aashishsatya

I was trying to input strings into a structure I made, but I couldn't succeed. I use Visual C++ 2010 Express Edition. The code is this: [CODE]#include<iostream> #include<conio.h> #include<stdio.h> #include<string.h> using namespace std; struct schrec { char childname[20]; int childage; }; void main() { schrec record[20]; int n; cout<<"How many …

Member Avatar for jaskij
0
690
Member Avatar for accra

I have my hidden id [code]<input type="hidden" name="id" value="<?php echo "$id" ?>" />[/code] in my form I have my [code]$id = $_REQUEST['id'];[/code] to get the id from the url And on the update script i have [code]$navtype = $_GET['nav'];[/code] And i have [code]WHERE id=$id[/code], but it keep updating just one …

Member Avatar for diafol
0
150
Member Avatar for Gobble45

Hello. As the title states, i am unsure of which sort of loop to use in this case. my little program asks for the users input (into textbox's) the cost of a purchase and what they paid. the program is then intended to generate what change they would recieve be …

Member Avatar for Reverend Jim
0
150
Member Avatar for Shaye12321

Hey there! I'm trying to write a program in C++ that will read information in from a file and then tell the user how many strings are in the file and the lengths of the smallest and longest strings. I know I can figure out the length of the strings …

Member Avatar for WaltP
0
207
Member Avatar for ndrichim

hello.i have a homework in java wich asks to create this program: there would be n persons who are going to rate songs. for n persons we will ask their name,surname,sex and age.after this each person will rate(vote) with points the song we have given to them.there are 15 songs …

Member Avatar for Philippe.Lahaie
0
354
Member Avatar for engineerchica

Hi! I am working on a program to count the number of characters and words in a text file. The counting characters portion works, but my countWords function displays '0'. I built the countWords function on the basis of my countChar function, but since it's returning zero I'm not sure …

Member Avatar for engineerchica
0
176
Member Avatar for deucalion0

Hey guys, so I have been trying to get images to appear with an SQL query using PHP. My table has a column called picture, it is datatype nvarchar50. I have a folder in my project called images and in there an image called 4.png. So in the field of …

Member Avatar for diafol
0
1K
Member Avatar for Karlwakim

Hi everybody, How can i find out if a number is prime or not ? For example : [CODE]#include <iostream> using namespace std; int main () { int number; bool isprime; cin >> number; /*algorithm .............. .............. .............. */ if (isprime == false) { cout << "Not prime"; } else …

Member Avatar for jaskij
0
253
Member Avatar for ram619

The output is 2011. Can anyone plz tell me how it is so ????[CODE=c]#include<stdio.h> #include<conio.h> void main() { char c[]="GATE2011"; char *p=c; clrscr(); printf("%s",p+p[3]-p[1]); getch(); }[/CODE]

Member Avatar for ram619
0
121
Member Avatar for LdaXy

hi all. i haven't been posting cause i am working on a new programming language called perfect. it's derived from the aspects of many languages: python, C, VB, java etc. here is a sample of what the code is going to look like: [CODE] '''Compile with Perfect Compiler ''*' first …

Member Avatar for Rashakil Fol
0
150
Member Avatar for Marty1963

Sorry I'm still very new at this and there is probably an easier way to write this code. I want to have a contest page automatically redirect to another after a certain date. I have the code to turn on and off content after a certain date and I have …

Member Avatar for Marty1963
0
269
Member Avatar for christian03

#include<iostream> #include<conio.h> using namespace std; struct biodata { string fname; string lname; string mname; string address; string pbirth; string dbirth; string religion; string citizen; string civilstat; string gender; string email; }*student; main( ) { int n,i,xx,c,d,a=0,e=1; char b,y; cout<<"how many records?"; cin>>n; cin.ignore( ); student= new biodata[n]; for(i=0;i<n;i++) { cout<<"\nLast …

Member Avatar for Lerner
0
230
Member Avatar for Martin C++

start_session() after <html> tags generates error, Can it be used there somehow? If so, then how ? If not then what are the alternatives cause I have a function that generates some part of my <head></head> in my themes. So the session_start() definately has to saty in that function (e.g …

Member Avatar for diafol
0
171
Member Avatar for pwolf

Stuck again, this time my problem is getting the dictionary to be sorted in ascending order. Please Advise! the following is what the task says: """ A sparse vector is a vector whose entries are almost all zero, like [1, 0, 0, 0, 0, 0, 0, 2, 0]. Storing all …

Member Avatar for pwolf
0
2K
Member Avatar for ddm

Write a program to accomplish the following tasks: 1. Generate arbitrary number of random integer numbers between [0-100] 2. Save or load the numbers from/to a text file based on user option 3. Search the generated list for an arbitrary number entered by a user 4. Use Linear and Binary …

Member Avatar for ddm
0
219
Member Avatar for fishsticks1907

I could get this binary search to work... no matter what number i enter it will say "not found" even if its in the array; until, i sorted the array before searching. So, when making an array to search, i always have to sort it first? [CODE] #include <iostream> #include …

Member Avatar for fishsticks1907
0
137
Member Avatar for mallikaalokam

[CODE]import java.lang.*; import java.io.*; import java.util.*; interface Batm { final static int minbal=500; abstract void withdrawl(); } class Bal implements Batm { int amt,cbal; Bal(int amt,int cbal) { this.amt=amt; this.cbal=cbal; } void withdrawl() { if(cbal>minbal) { cbal=cbal-amt; System.out.println(amt+" "+"withdrawn"); } else { System.out.println("bal nt sufficient"); } } } class Atm …

Member Avatar for JamesCherrill
0
297
Member Avatar for bonzo2008

Hello I have made a smal databas but some where I have got a error when I add a name surname (jones), forename (roger), phone 34567 it is ok but the problem is that when I edit another one with same surname(jones) and a different forename (david) same phone then …

Member Avatar for Jx_Man
0
99

The End.