64,152 Solved Topics
Remove Filter ![]() | |
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 … | |
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 … | |
[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 … | |
hi, I am struggling with the code on attached file. Don;t know what the problem is. Please help me if possible: | |
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 … | |
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 … | |
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 = … | |
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 | |
[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]?? | |
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 … | |
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. | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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, … | |
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 = … | |
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.... | |
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 … | |
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] … | |
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. | |
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 … | |
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 … | |
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 … | |
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 | |
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 = … | |
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 … | |
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)); | |
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, … | |
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. … | |
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 | |
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 … | |
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 … | |
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 … | |
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 … | |
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 | |
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 … | |
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 . | |
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 … | |
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] | |
![]() | 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 … |
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 … | |
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 … | |
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; } … | |
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, … | |
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 … | |
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. … | |
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. … | |
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 … |
The End.