64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for memegha123

hi! I m using netbeans 6.5.1 i am trying to read a text file from a jsp using the code [code] BufferedReader input = new BufferedReader(new FileReader("contactus.txt")); [/code] this file "contactus.txt" is placed in the same folder (ie web folder) as the jsp file. but the browser is giving the …

Member Avatar for memegha123
0
124
Member Avatar for ChrisPaul

Hello, I have an SQL server 2005 database/table with a name and email columns. I was wondering what would be the best way to get the data from sql and send automatic emails using a web based form in asp.net lets say every month...is there any samples of such procedure …

Member Avatar for Teme64
0
110
Member Avatar for Nikhar

[code] #include<iostream.h> #include<conio.h> class suitcase { int sno[20]; long double amount[20]; public: suitcase(); void print() { int i; for(i=0;i<=19;i++) cout<<amount[i]<<'\n'; } }; suitcase::suitcase() { amount[20]={0.25,1.0,10.0,100.0,250.0,500.0,1000.0,5000.0,10000.0,50000.0, 100000.0,200000.0,300000.0,400000.0,500000.0,1000000.0, 2500000.0,5000000.0,7500000.0,10000000.0}; } void main() { suitcase s1; s1.print(); } [/code] When I run this program, I get an error :- [quote]expression syntax in function …

Member Avatar for Nikhar
0
104
Member Avatar for sampat19

hi, I am struggling with the code on attached file. Don;t know what the problem is. Please help me if possible:

Member Avatar for chsab420
0
90
Member Avatar for Venom Rush

EDIT: I just realized I should have posted this in the MySQL section. If a mod can move it there I'd appreciate it. Thanks :) Hi all I have two tables. The first one has the details of each fruit, its code, markup percentage, it's cost price and the amount …

Member Avatar for Venom Rush
0
221
Member Avatar for S2009

Hi All, I am creating an application where in I want to display the rows in DataGridView based on the values entered by the user in the textbox. For Eg. If the User enters the BookName in the textbox all the details regarding that book should be displayed in a …

Member Avatar for kvprajapati
0
628
Member Avatar for lolwtf

I don't use combo boxes very much, so I basically forgot how to use them. Im connecting to an SQL database and I just want to populate a combo box with a users first name. Heres what I have so far: DBATimeOff.SelectCommand.CommandText = "SELECT FName FROM tblEmployee" DBATimeOff.Fill(DataTimeOff) CmbEmployee.DisplayMember = …

Member Avatar for lolwtf
0
260
Member Avatar for aayush2687

hey guyz howz u ???? cn u tell me how cn i color my console based output( in C# ) not a whole output but a selected string only. plz tell me if u knw d answer .......:) Bye TC

Member Avatar for aayush2687
0
101
Member Avatar for ravikiran032

[code] # include <stdio.h> # include <conio.h> #define squ(x) x*x main( ) { float s=10,u=30,t=2,a; a=2*(s-u*t)/squ(t); printf(“result :%f”,a); } [/code] [B]output is -100.000 how is it possible[/B]??

Member Avatar for MosaicFuneral
-1
102
Member Avatar for gingank

Hi guys, I has a question to ask it is possible to call out the same ID on two different table. Example i have same ID like said 123 on table 1 & table 2 it is possible to call then out and show out on the data grid when …

Member Avatar for vb5prgrmr
0
119
Member Avatar for dantheman3141

Hello. I have come across many scripts for rebooting remote computers using python, but what about the computer the script is running on? If possible, I would also like my script to run in the background so the little cmd box is not visible. Thanks in advance for your help.

Member Avatar for dantheman3141
0
886
Member Avatar for Hiroshe

I'm trying to make a simple prime number generator for bigger program. It needs two numbers (n and c) and needs to edit them. So I decided to put the numbers in pointers, and just give the adress two the pointers. After about a half-houre of fumbling with *'s and …

Member Avatar for tux4life
0
154
Member Avatar for johndb

Hello I am not an experienced programmer, and I entered some code from a book I am following, to see if it would work but unfortunately I have run into some difficulty. This program prompts the user for the red, green, and blue values, and then fills a rectangle with …

Member Avatar for johndb
0
4K
Member Avatar for rasizzle

Hey all, Here is what I'm trying to do. I have a list whose output is: [['4/18/94', '29.125', '442.46'], ['4/19/94', '29.336', '442.54'], ['1/20/04', '75.175', '1138.77'], ['1/21/04', '75.711', '1147.62'], ['1/22/04', '75.595', '1143.94']] Item [1] in each list, the middle item, is the number I want to focus on. Currently, I have …

Member Avatar for rasizzle
0
104
Member Avatar for suretd

Good Day, I am using an Ms Access Database to design a StockTracker applicaton. The application is used to check the stocks of users. Firstly I need to sign on as an administrator and then be able to add users and their stocks to the database. I have created the …

Member Avatar for suretd
0
175
Member Avatar for BrettOwnz

Hey guys.. I have been trying to debug this mysql statement for the past 2 hours.. here is the statement: [CODE] $sql1 = "SELECT * FROM cpmip WHERE adid='$a' and ip='$ip'"; $res1 = mysql_query($sql1) or die(mysql_error()); [/CODE] I just can't figure out why this won't work.. it throws the following …

Member Avatar for BrettOwnz
0
142
Member Avatar for hughesadam_87

Hey guys, I have been trying to search for this answer on online tutorials, but cannot figure out just what I am doing wrong. I have a list of names, and some of them have the character '/' For example: [CODE]list = [adam, bill, jon/juan][/CODE] Because later in my code, …

Member Avatar for hughesadam_87
0
131
Member Avatar for lqdo

I have a textbox and two events. The first event selects all text in the textbox if there is any. The second event deselects the text. My to events... [CODE] private void Textbox_enter( object s, EventArgs e ) { TextBox box = s as TextBox; box.SelectionStart = 0; box.SelectionLength = …

Member Avatar for lqdo
0
111
Member Avatar for jaque322

i have an arraylist, that stores objects from a class called prematricula and every object stored has name and province how i can do to pass the name of the province and the method return the names of the students sorted alfabethically... please if someone can help me....

Member Avatar for jaque322
0
114
Member Avatar for KirkPatrick

Alright my program is giving me a hard time and I will have to briefly explain what it does and when the exception is thrown to give you a better understanding. My program goes off and reads a csv file, once it reads it, it adds the information to my …

Member Avatar for KirkPatrick
0
132
Member Avatar for dmanw100

Hello, I am writing a method which must open a file, read its contents, close the file, open it later, write to the file, and close it again. The method is failing at the first step and throwing an IOException when trying to execute: [CODE]FileInput Stream fileHandler = new FileInputStream("myfile.fil");[/CODE] …

Member Avatar for dmanw100
0
152
Member Avatar for johnray31

Hi guys, i am quite newbie to c++. Is there any way to know object class. I have a object and i want to know the exact class name for that.

Member Avatar for tux4life
0
125
Member Avatar for walter clark

The .h file traditionally holds declarations and the .cpp file the definitions. The #include inserts the human readable ASCII code that is the .h file, right there at the top before compiling. The main purpose of the .h file was to gather together all the declarations (more even than you …

Member Avatar for walter clark
0
122
Member Avatar for happymadman

So I have this simple list and scroll bar combo and I have been trying to make it stay at the bottom of the scroll bar as the text is added so it looks like the scroll bar is just to look back over the previous text. Like in a …

Member Avatar for kolosick.m188
0
108
Member Avatar for praveen_dusari

hii all, i developed a shopping cart which has many features like grid view,list view and floating cart which is also dragable.now my problem is its taking to much time to load becoz of conditions and images now,i want to generate html pages of my php pages,i dont want url …

Member Avatar for praveen_dusari
0
918
Member Avatar for kangarooblood

does anyone of you lot know a way to use colors in a program compiled in Dev C++, except for the [code=c++] system("color a"); [/code] function? and I'd also be glad to know another way to clear the screen, then the: [code=c++] system("cls"); [/code] function

Member Avatar for Tom Gunn
0
113
Member Avatar for Kusno

Dear all, I used to use pure ASP.Net code like this : [CODE] Protected Sub CmdLocateCustomer_Click(ByVal sender As Object, ByVal e As System.EventArgs) Dim S As String If TxtCustomerID.Text.Trim = "" Then S = "<SCRIPT>var w = 0, h = 0;if (document.all || document.layers) { w = screen.availWidth; h = …

Member Avatar for jbisono
0
2K
Member Avatar for bayangan

Background: I have many tables for ex: [B] Nominations: --------------- Type (there are 3 types) WorkOrders: ---------------- Type (there are 7 types)[/B] I have many typical tables like these. In designing database, I need to know which approach is wiser ie to make a control table for each, or to …

Member Avatar for timothybard
0
112
Member Avatar for Manak

hey everyone i am using a select query and showing input string is not in correct format ...plz help me...... here is my query..... int id = Convert.ToInt32(String.Format(@"SELECT Id FROM Student WHERE RegNo ='{0}' ", cmbRegNo.Text));

Member Avatar for Manak
0
257
Member Avatar for txwooley

I have written a poker game in Python and have it fairly well finished. My hang-up now is an option to play again. Most of the game is in a function called playHand() which re-runs as long as you still have money, but if you lose all of your money, …

Member Avatar for txwooley
0
332
Member Avatar for MONODA

Hello, I am not sure if anyone will understand what I am asking for, but here goes anyway: I am looking for a way to generate a list of tuples with random values; something like the range function except I want to have a list of tuples rather than integers. …

Member Avatar for MONODA
0
10K
Member Avatar for mundetas

I would like to put my windows form application to be online, where by it will connect to a webserver and get data from the database on the webserver. Are there any sites or ebooks I can get on windows app going online

Member Avatar for Ramy Mahrous
1
2K
Member Avatar for goody11

My friend and I are trying to write a program for my Spanish teacher so that she can just type Spanish words and English words into an application, those words get stored as an array somewhere, and then another program that tests the kids uses that array. The program gives …

Member Avatar for s_sridhar
0
118
Member Avatar for Nikhar

I'll try to get this as simple as possible. The problem is fairly simple. [code] long double a=100000000; cout<<a; [/code] Well, the output this shows is "1e+08" I do not want the output to be in exponential form. Rather, I want it to be printed as "100000000". What shall I …

Member Avatar for s_sridhar
0
109
Member Avatar for hughesadam_87

Hey everyone, I tried a site search but it turned up cold. Has anyone here ever written a small method to take a list of names and sort them in alphabetical order? If so, would you mind posting it up, or directing me to a tutorial that would explain this …

Member Avatar for lllllIllIlllI
0
96
Member Avatar for vizy

Hi Friends, I have a web Application created, there is an option to Add/Edit the forms. My requirement is something like... When a user opens any record for editing, the details are displayed(binded) in texboxes,dropdowns,radiobuttons.. etc Here if the user modifies any data and clicks on any other link(within the …

Member Avatar for vizy
0
130
Member Avatar for havejeet

Hi All, I want to convert any (current datetime differs in format depending regional setting) into 20090622172120 format. How do I do that? I want solution that work with any regional setting. many thanks, Jeet

Member Avatar for havejeet
0
150
Member Avatar for Jintu

Write a Python program to show the temperatures starting at zero degrees Celsius, up to 100 degrees Celsius, in steps of 2 degrees, with the corresponding Fahreneit temperature shown in the next column. Temperatures should be shown as floating point numbers to two decimal places. Use a for loop for …

Member Avatar for vegaseat
0
233
Member Avatar for adamramadhan

can anyone show me the diffrence ? im still confuse i read about vb and net at wikipedia but i just dont understand vb.net and vb .

Member Avatar for adamramadhan
0
222
Member Avatar for valinux

HI EVERYONE :D!! This is my first thread. Well today was my birthday! And I got my first computer! I have always wanted one and I have always wanted to start programming! I got a Microsoft Windows XP and a extra external hard drive!! Not the best computer ever but …

Member Avatar for csurfer
0
157
Member Avatar for nagatron

Is it possible to view the codes of an exe file using VB6 similar to ResourceHack found in google. download link: [url]http://www.softpedia.com/get/Programming/File-Editors/Resource-Hacker.shtml[/url]

Member Avatar for vb5prgrmr
0
281
Member Avatar for sravan953

Hey guys, I use Python 2.6.2, and have made a program; here's the code: [CODE]import subprocess import time def open_program(): time.sleep(s) print 'Opening the program...' subprocess.call(c) h=input("Time: ") c=raw_input("Enter the full location of the program you want to open after the desired time: ") s=(h*60*60) open_program()[/CODE] I also have some …

Member Avatar for Stefano Mtangoo
0
232
Member Avatar for whayman

When I enter the integer, I'm not getting the prompt that states if it is odd or even. I am new to this, so this stupid thing has taken me a week to do, but now I am just frustrated. Can someone help me out. [code=html]<?xml version = "1.0" encoding …

Member Avatar for sysel
0
105
Member Avatar for DaveyMoyes

hi all - php.home Im trying to pass a varible of "MOBILE" from a form i have set up [code=html]<td><span class="style61">Mobile number</span></td> <td><span class="style61"> <label for="mobile"></label> <input type="text" name="mobile" id="mobile" />[/code] To a differnet .php called test.php On this test php i have the following [icode]$mobile = $HTTP_POST_VARS['$mobile'];[/icode] how do …

Member Avatar for DaveyMoyes
0
76
Member Avatar for papanyquiL

I'm supposed to make my class cloneable for class, but I can't get it to work... Here's what I have so far: [code] public class Employeex : ICloneable { // using properties instead of the constructor public int EmployeeID { get; set; } public string Name { get; set; } …

Member Avatar for papanyquiL
0
181
Member Avatar for eliza2044

Hey guys, I have a problem printing out the contents of a list of objects, with the following code I loop through the list and call the displayInfo() method that it's responsible for printing out the different attributes of the object. I have tested the displayInfo() method and works fine, …

Member Avatar for tux4life
0
150
Member Avatar for NervousWreck

I recently installed Ubunty Jaunty (Linux). I checked out the Linux version of the Codeblocks IDE. Obviously things like [code] system ( "pause" ); [/code] didn't work because of the operating system. Is there a library I can include -- or a package I can install -- that will give …

Member Avatar for NervousWreck
0
132
Member Avatar for Reliable

Hello any and everyone, I have a form inside of an HTML page. The result I want is that when the user hits the submit button that only the section of the page containing the form refreshes. Wen it refreshes it refreshes with a thank you message. Is that feasible. …

Member Avatar for buddylee17
0
115
Member Avatar for HBMSGuy

Hello, How would I go about being able to use a URI of a binary class. For example, I need to be able to give the URI for a song, but the song comes for a SQL server which sends it in a binary form, which is on the memory. …

Member Avatar for HBMSGuy
0
3K
Member Avatar for mimsc

Hello all I have a string Im getting back from the database as follows: ('MCKINNEY','TX'),('ALLEN','TX'),('ANNA','TX') I need to break it down and drop into an array 'MCKINNEY','TX' 'ALLEN','TX' 'ANNA','TX' ..normally I get multiple records and just drop the resultSet into a Vector and do "elementAt(i)" to display, but I never …

Member Avatar for ~s.o.s~
0
163

The End.