199,114 Archived Topics
Remove Filter ![]() | |
The program should: Accept a series of names and addresses from the console. The user's input should be written to a text file in the CSV format described in the lecture. But, do not include the field names in the first row of the file. Read the records from the … | |
create two class DM and DB which store the value of distances DM store the value in meter and centimeter, DB store the vlaue in feet and inches. write a program that can read value for the class object and add one object Use friend function to carry out the … | |
Hello all, i want to save the variables present in python workspace to text file.I have used file.write() option but it converts the variables(and also arrays) to string.I want to store them as they are present in IDLE. Is it possible? Thanking all in anticipation. regards wajih | |
Hi, Hoe to insert multiple selection from checkbox(from jsp) in to one column of the table(sql server database ). Anyone can you help me? Thanx | |
The following code is working! function and function pointer are defined I defined two probe function: mysin1 and mysin2 both works with myfunc with in first argument but I dont't understand, because mysin2 wait for a function_pointer not a function [CODE] #include <math.h> #include <iostream> using namespace std; typedef double … | |
I finnaly got working the program with <ncurses.h> in the virtual box that i put Ubuntu. A test program for handling the screen is given to us, [U]this:[/U] [CODE]#include <ncurses.h> int main(int argc, char **argv) { int X = 10; int Y = 10; int ch; initscr(); noecho(); keypad(stdscr,TRUE); move(Y, … | |
Hi, I have a list of positive digits in a file. All I want to do is to add the negative sign (-) to each digit. Is there a code for this. eg list of digits 1 correspond -1 2 correspond-2 3 correspond -3 etc | |
hi all, i am developing a newsletter module for my site,previously i used a specific newsletter added by admin (using wyswyg) and it is inserted in database and like that admin can send newsletter of his type to n number of users at a time. now i want to change … | |
Hi there, for the life of me I can't work out what is wrong with this script, but when it runs I get this message. Warning: mysql_error(): supplied argument is not a valid MySQL-Link resource in.... [CODE] <? $q6 = "select * from banners where lang = \"$_SESSION[lang]\" and section … | |
Hello everyone, I'm a frequent reader of a lot of software dev forums on the interent when I go searching for solutions for problems. But it seems like I always keep coming back to this one because it's correct. But to start off, I made a little app that has … | |
Im a beginner in c++ and i want to know how to use system() in c++ I know how to check whether a cmd processor exists. i want to know how to execute commands in the processor. I want its syntax and if anyone can explain with an xample well … | |
I want to make a program that outputs something like: Enter integer: 117 117 is lucky! Enter integer: 1003 1003 is not lucky! So, if the integer entered contains at least one 7 in it, it will output is lucky! And if it doesn't it will output the is not … | |
one of my class is already declaring the variable to open the file, now that i need to called it in main class. I couldn't find a way to do so, can someone please give me some hint to call it. Here is what it declare in the class. [CODE] … | |
How to create a program that will accept 5 unique numbers. If you enter negative no. It will sink, and if you enter same no. The program will not accept it and delete it automatically. Thanx.. Asap | |
I made a game for my project. it contains two levels and a welcome screen. The problem is I cant go to the other panels. I tried using cardlayout. but since my panels are in different classes, I don't know how to do it. Please help. here's part of the … | |
hello guys, i have this code in java.but i need to convert to c.but i dont know java at all.hope u can help me.thanks for advance [CODE] public class Main { static int t_value=2; static int no_of_parameter = 0; String binary_setting; static int data[]; static ArrayList<String> constraint = new ArrayList<String>(); … | |
Hello, I've spent hours but can't seem to figure out how. This is the question: modify the program so that the prompts that ask the user to enter a transaction include the number of the transaction that should be entered next. Here's what the prompts should look like: Enter quiz … | |
i would like to put the command Dos into java program. how i using the java to perform command function. for example, when we type ipconfig this command into command prompt, it will display my pc's ip right. so how i use java program when a user run my program … | |
hi guys.. can you help me with my assignment? my proff told me to make a dictionary prog that can do the following.. 1. Add new word and definition 2.delete word and its definition 3. view all words and its definition 4. Update word and its definition 5. Search a … | |
0,0 0,w-4 0,w +------------------------------------------------------+---+ | My Window | x | 2,0+------------------------------------------------------+---+ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | … | |
I need a bit of help with a mysql join query. I have tried and tried and keep getting unhelpful errors. I have two mysql tables: friends: friend1 INT friend2 INT members: member_id INT name varchar lname varchar Basically I want to loop through friends and find all records where … | |
HI I am developing a part of asp.net web site as a training project. My part is creating authentication structure and authorization. Can any body please tell me are there any way to do this except using sql membership provider. Because we have to implement according to the class definitions … | |
I am fairly new to mysql and wanted to practice making a database and tables. As well as filling the tables with made up data and then practicing queries. I wanted to emulate a real life database project. So I decided to make a database for a Car Dealership. the … | |
I have just started getting into python and Tkinter and so far it's all been very interesting and the help good to, but now i have ran into a problem. I'm sure it's very easy to solve but i just can't seem to figure it out or find anything on … ![]() | |
Problem Statement: Movie Rental Store You are required to write a program for Movie Rental Store. The basic idea is that user/reader will provide customer information, movie name, and number of days. Upon this information your program will calculate the charged amount for that movie. Detailed Description: 1. The program … | |
Hi, I have an insert statement in an asp page that works fine on one server. Basically the statement traps various details and username. I had to move the site to a new server and unfortunately its not trapping the username for me. [CODE] strSQL="INSERT INTO TBLCART (USERNAME, VALUES ('" … | |
Hi, I am stuck. I am trying to create a new file C:\HourlyATC\ATC101509\10-15-09 to 10-21-09 ATC.txt, and have a bunch of text wrote to this file to have it uploaded to a web site. At this point I would be happy if I could create the file and have the … | |
I have a very weired problem (which is not easy to describe.. but I'll do my best): I have a html page with several forms , only one of the got the action="ComputeAndReturn" and the other forms got only name="" tag... the problem is that after i submit the form … | |
hi, im doin a project in visual basic 6.0,. pleae help me in constructing a inbox in vb 6.0. mail: [email]manjupapu2006@gmail.com[/email] -manjunath | |
I want to create a login jsp form that connect with servlet and mysql for database. And I'm using netbeans and glassfishV2. Please help me to solve this problem. | |
Hi, i tired the following code in c & c++ [CODE]int main() { struct dum { // nothing here } printf("%d",sizeof(struct dum)); return 0; }[/CODE]the out put is 0 [CODE]int main() { struct dum { // nothing here } cout<<sizeof(struct dum); return 0; }[/CODE]the out put is 1. i dont … | |
this is a complicate situation: i have A class by type Base { Btype* m_b; }; and a class DerivBtype:public Btype { .. } and this class class derived :public base { } and i want to behave m_b as a derived class i used this approach m_b=new derived ; … | |
[QUOTE]hi friends i have facing a problem [CODE=php]<? define('DIR_WS_INCLUDES', 'includes/'); define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'lang/'); define('DEFAULT_LANGUAGE',''english); ?>[/CODE] these are code use in configure.php it is use in index.php with following code[CODE=php]<? include_once(DIR_WS_LANGUAGES.DEFAULT_LANGUAGE.'.php') ;?>[/CODE] now i want to use this with select language i select language [CODE=php] <? if(isset($_GET['flag'])){ if ($_GET['flag']==po){ echo … | |
[icode] import java.util.Scanner; import java.io.File; import java.util.StringTokenizer; import java.util.InputMismatchException; import java.io.FileNotFoundException; public class KashiwabaraNicole16test { /******************************************************************************* * Outputs integers from user input external files. ********************************************************************************/ public static void main( String[] commandlineArguments )throws NullPointerException { //Error Checking For Command Line Arguments.. if(commandlineArguments.length == 0){ System.out.println("Please enter the file name as the … | |
Hi. I have this codeline: [CODE=c]fprintf(file, "The\necake\nis\na\nlie");[/CODE] When I compile and run in Linux it outputs nicely like so: The cake is a lie but when I compile and run in Windows (Vista), using cygwin, the newline doesn't work and output is like this: Thecakeisalie Anybody have an idea why? | |
Please help me find the endless loop and how to fix it: [QUOTE]blade71(555)% showxbits_2 32 in itox, processing 32 Test Value (b div 16): 2 Value of b: 32 Value of b (# mod 16): 0 [/QUOTE] [CODE]/* * stubs for functions to study * integer-hex conversions * */ #include … | |
Hi, all How to create report use IReport and Hibernate I have tried, like this : : 1. create file hibernate.cfg.xml [code] xml version='1.0' encoding='UTF-8'?> <!DOCTYPE hibernate-configuration PUBLIC "-//Hibernate/Hibernate Configuration DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd"> <hibernate-configuration> <session-factory> <property name="connection.url">jdbc:mysql://localhost/a6</property> <property name="connection.username">root</property> <property name="connection.driver_class">com.mysql.jdbc.Driver</property> <property name="dialect">org.hibernate.dialect.MySQLDialect</property> <property name="connection.password"></property> <property name="transaction.factory_class">org.hibernate.transaction.JDBCTransactionFactory</property> <!-- thread is … | |
Hi guys. im new in this forum, getting used to python+turbogears and already have a doubt. i have a sql statement to do , that uses "like" . for example: sql = db.text("select name from users where name like '%Fernando%' and dt_birthday='%s'" %(dt_birthday)) and the server gives me the following … | |
This program hangs when trying to generate fixtures when the table is empty: [CODE] using System; using Gtk; using Mono.Data.Sqlite; using System.IO; public partial class MainWindow: Gtk.Window { //SQLite variables static SqliteConnection DataConn; static SqliteCommand DataComm = new SqliteCommand(); static SqliteDataReader DataReader; string dsn; //tree_1 variables Gtk.TreeViewColumn name_1 = new … | |
I created a program using Visual Basic 2008 . I want to use "Setup and Deployment Project" for deploying my [COLOR="Red"]Windows Application [/COLOR] for Stand alone pc. I want to install my [COLOR="red"]windows application [/COLOR]on stand alone pc in this directory: c:\program\ My images in this directory: c:\program\images I have … | |
Hi all, The following code should link 2 tables, showing: student id, surname, firstname, study type, start year. However, its not :-). its just a white screen. ive got php5.ini with ERROR_REPORTING (E_ALL); in it but im still getting nothing at all. The tables definitly exist! have i missed something … | |
Hi I have problem with packaging and transferring VB6 and MS Access database from one computer where it is designed to another computer. I need some help. thank you. | |
I'm having a problem reading lines from a text file. The reading in itself works fine, but when the application has read 545 lines of text (545 .readLine()'s) I get a read error exception, for no reason at all as far as I can see. The code for the reading … | |
[B]Good Evening everybody I'm decide to implemant software that saves data and the user adding and searching for this data on it It's for college employee And This Is Te OUTPUT:[/B] Please Press the number of your choice: [LIST=1] [*]1) Inserting data of new student. [*]2) searching by: [/LIST] a.Name … | |
The code below captures the screen and saves it. Depending on your need, you can modify it to do just what you want [code] import java.awt.AWTException; import java.awt.Robot; import java.awt.Rectangle; import java.awt.Toolkit; import java.awt.image.BufferedImage; import java.io.*; import javax.imageio.ImageIO; class ScreenCapture { public static void main(String args[]) throws AWTException, IOException { … | |
Hi all! I'll keep this post a little shorter then I normally do, lack of time to post and all of that. I am making a widget-type program. You know, no borderstyle, no taskbar, opacitycontrol, stuff like that. It's going to be an RSS-aggregator by the way. Now for my … | |
Hie guys, Iam developing a java web application which uses mysql as its database engine. Now I would like to use the hibernate and spring frameworks together. The problem I nam facing is in configuring the various beans and establishing a clear relationship btwn the two frame works. If any … | |
Hi.. How do I check the data type in an input file ? Suppose my text file looks like this. Tab separated :- [CODE] 123 456 ABCD 789 890 EFGH 298 764 IUHJ [/CODE] Now I read the file like char or string in my while loop using getline. So … | |
Hi I was trying to count rows and columns in a tab delimited flat file. Like here in example below i should be able to detect automatically the no of rows and columns. So I should get 5 columns and 6 rows. Something like that. [CODE]one two three four five … | |
hello , (begginer of SQL) i have to make one pro. in which i have to use trigger which will fire before inserting into table and convert the name into upper case but i don't what is the prob. with the code pls provide ur suggetion my table attributes are … |
The End.