199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for annagraphicart

I really need to do this program, so I need ALOT of help. I want the program to output a question asking "Enter John Smith's Bowling Score: ", and that repeated abotu 20 times with Different names. (DO I need to store the names? if so, how?) What the user …

Member Avatar for Sturm
0
149
Member Avatar for sycc2172

Greetings. I'm currently doing a project on Traveling Salesman Problem. But I'm not asking for answers for the whole project. I just started my programming lessons so I hope can get some help from all of you. About this project: Initially you have to read 2 input files, Input1.txt and …

Member Avatar for iamthwee
0
944
Member Avatar for ceyesuma

I would like to return a connection to a Bean to make statements to mysql database "ccdb" I'm really not sure of [code] public static Connection getConnection(){ if(connection==null){ try{ Class.forName("org.gjt.mm.mysql.Driver"); connection=DriverManager.getConnection("jdbc:mysql://localhost:8084","root","ceyesuma"); }catch(Exception exc){ connection=null;} } return connection; } [/code] Here is the bean to get connected. Should this work? [code] …

Member Avatar for ceyesuma
0
185
Member Avatar for pmillio

Hello everybody, I am a final year student and for my final year project I have decided to try and create a price comparison website due to the fact that i feel it would be a good project to work on and develop my technical skills in C# and microsoft …

Member Avatar for pmillio
0
122
Member Avatar for KimJack

Hello all, I wondering if anyone could tell me how to go about extracting a single field from a text file. The file is all follows: Jeff 8.00 8.9900 hadk Kim 234.0 234 hak Him 444.8 1.11 john... How would I extract only the first column without using tokenizer or …

Member Avatar for ~s.o.s~
0
122
Member Avatar for OLer94

Im trying to figure out how to compute a product of ordered pairs. So if I have two sets (1,3) and (2,4), I want to generate the following tuples (1,2), (1,4), (3,2), (3,4). Now I wrote the following [INLINECODE]def orderedproduct(set1, set2): op=[set()] for x in set1: for y in set2: …

Member Avatar for OLer94
0
143
Member Avatar for evios

i was currently having a big project for my third year course, i was new to computer architecture because i am major in telecommunication. And i need a software that can run simulation on my PC, indicate how the internal routing and we are only able to simulate on hardware …

Member Avatar for evios
0
106
Member Avatar for curt22

I have a single line text box, that is wide enough to hold 20 characters and I was wondering how do I make it so that you can keep typing even though it's got 20 characters in it without making it longer and without a vertical scrollbar? I'm sure it's …

Member Avatar for curt22
0
90
Member Avatar for Notsogood.java

(I'm not even close to being sure that this is even a valid approach to what I want to accomplish. Still, all input is welcome. What I was trying to do was create an applet that reads): "Please pass the butter." A quote by jack padron ------------------------------------------- Can you think …

Member Avatar for lookof2day
0
129
Member Avatar for jainam2209

Please can anyone help me out of this problem? I want to know that how can we reboot computer (any OS) using C language?

Member Avatar for Ramy Mahrous
0
125
Member Avatar for gplkrsna

Hi, I have a doubt, in the following program, it prints the string returned by throwstring()function. Is the string which the function is returning is local to the function or outside of the function? Can somebody throw light on underlying mechanism.. [code=c] main() { char* throwstring(); printf("%s\n", throwstring()); } char …

Member Avatar for Narue
0
150
Member Avatar for yassar

I am trying to read source code of a webpage in C++. I haven't gone too much of a way. Can I read it as a text File??

Member Avatar for vijayan121
0
214
Member Avatar for KimJack

Can someone tell me why my data is not printing to my file. It will create the text file but it will not write to it. Here is a snippett: out = new PrintWriter("completeAuto.txt"); while ((car = br.readLine()) != null && (van = br1.readLine())!=null && (truck = br2.readLine()) != null) …

Member Avatar for peter_budo
0
190
Member Avatar for thatsmystapler

I'm not entirely new to Visual Basic--I took a class with vb6 a few years ago. What would be the best (and hopefully cheapest!) way to get up to date and learn some new stuff? What books/websites would you guys recommend?

Member Avatar for thatsmystapler
0
82
Member Avatar for DaveHammer

Hi all, I have been struggling with time/date in perl for several hours now and for some reason i get a quirky error. I have an array called "date" 44 elements in length and "time" 44 elements in length. I created this code to convert UTC to localtime (Alaska). But …

Member Avatar for KevinADC
0
94
Member Avatar for CurtisBridges

/*Please help. I'm trying to throw an IllegalArgumentException. *If any test score in the array is negative or greater than 100 *using a try block, but am having little if any progress after 9 hours of work. * I am still getting an error mesage saying illegal start of expression …

Member Avatar for peter_budo
0
441
Member Avatar for ryy705

Hi, I am writing a desktop application. It would make my life easier if the application can save all it's data in a database software. Do typical desktop applications come packaged with 3rd party database software or do they rely on internal serialized data structure? If 3rd party database applications …

Member Avatar for ryy705
0
197
Member Avatar for grahhh

I have another problem. Same dataset as before. I have a huge collection of floats. I have a multi-dimensional list. About 37 per list, and over 60,000 lists. So something like: [[16166.00, 4123.15, ...], [761.1364, ...]]. I'm trying to find the [url=http://en.wikipedia.org/wiki/Euclidean_distance]Euclidean distance[/url] between one list with each of the …

Member Avatar for grahhh
0
149
Member Avatar for curt22

I have a simple program with a button and an entry field, and I'm wondering how can I organize them (like they were in a table) so that they don't overlap? I'm using the windows api. I tried searching but I'm not sure what to call this.

Member Avatar for curt22
0
122
Member Avatar for Pro2000

Peace, I saw a chat Program on the Net... The Messages In it automatically shows itselves without reloading the web-page.. I saw that and I wondered.... Does Any one know how to do that?

Member Avatar for hacker9801
0
87
Member Avatar for DaveHammer

Hi all, I am in a situation where I don't know much PERL/CGI, but am frantically reading through the learn Perl/learnCGI in 24 hour books. I just got done programing in dbase for some climatology work and now have to switch gears quickly. My mission: to read in a (comma-delimited)web …

Member Avatar for DaveHammer
0
142
Member Avatar for leolima

Hey guys! CAn u tell me if my program is right? First, I need to get a Pkg and validate; Second,get month and validate; Third, determinate max hours; *If FEB; Fourth, get year and validate(1990-2020) check for leap yr. Fifth, get hours and validate against maxhours; and calculate the bill …

Member Avatar for iamthwee
0
118
Member Avatar for abar_sow

How to write these file datas in the new file...It should be done by wrting bytes into characters import java.io.File; import java.io.FileInputStream; import java.io.FileOutputStream; import java.io.FileNotFoundException; import java.io.IOException; public class fileread { public static void main(String[] args) { File file = new File("E:\\ir_Proj estimate_out.txt"); byte[] b = new byte[(int) file.length()]; …

Member Avatar for abar_sow
0
140
Member Avatar for rdanda

Yes, this is homework, but I am trying. The problem is: Simulate coin tossing Program must print Heads or Tails. Toss 100 times and count the number of times each side of the coin appears. Call a function "flip" that takes no arguments and returns 0 for tails and 1 …

Member Avatar for rdanda
0
357
Member Avatar for NuGG

I have obtained the following script which only lets a page load if the visitor has been to the previous page, if they haven’t it sends the visitor to the appropriate page. However, it only works in Mozilla. Can anyone help me adapt this script to work in Internet Explorer? …

Member Avatar for HazardTW
0
282
Member Avatar for praj

I am a student , I have started learning J2ME. I am not expert in Java but I want to learn the Mobile programming. Can somebody can help me out? Thanks in advance.

Member Avatar for Ramy Mahrous
0
118
Member Avatar for BigFormat

Hi guys, I've got troubles with a conversion. My function: void stringFormat (char *input, int nums) receives a string like this: "name;3,45,5,6,77;" and a number indicating how many numbers in the String (in this case 5) I've got to tokenize the string in order to obtain: 1) a string named …

Member Avatar for BigFormat
0
159
Member Avatar for siddharthrainit

hi anyone can help me. My problem is when i compile my graphic program using turbo or borland c it does not show any error nor any output the screen show blank. my computer configuration is dual core processor AMD MSI K9n moter board sata hardisk N-VIDIA geforce chip set …

Member Avatar for Colin Mac
0
165
Member Avatar for Journey:Start

I am serching referance books or pubs to get into electronic device handling fundementals with c++. Any heads up message would help me out. Thanx for attention.

Member Avatar for Journey:Start
0
89
Member Avatar for chait_anya

hi, i have 1 prob. i created 1 desktop database application. which i wanted to deploy on the client machine. my client machine dosent have sql server installed on it , neither .net framework is there. so i used setup and deployment project for creating the setup for my application. …

Member Avatar for JerryShaw
0
85
Member Avatar for tirivamwe

i have this code: include('DB_connection.php'); $result = mysql_query('select * from login'); $count = mysql_num_fields($result); for ($i = 0; $i < $count; $i++){ $header .= mysql_field_name($result, $i)."\t"; } while($row = mysql_fetch_row($result)){ $line = ''; foreach($row as $value){ if(!isset($value) || $value == ""){ $value = "\t"; }else{ # important to escape any …

Member Avatar for JeniF
0
159
Member Avatar for phobia1

Hi Guys What I am trying to do is allow a 3 x 3 grid of images and then have bottom navigation. You can see the existing layout at http://areabulgaria.net/properties.php Here is the code to where I am so far, since I'm no real programmer, its giving me a headache. …

Member Avatar for phobia1
0
142
Member Avatar for sasidhar1229

I want to develope a project in java . How companies developes projects. What are the different stages in development a project from initial stage to product delivery stage. For example SRS,UML Diagrams(please tell me the articales which are good to know these). Is there any sites which gives sample …

Member Avatar for sasidharnet
0
171
Member Avatar for jbennet

Can someone who knows please explain to me the general idea of Level 0 and Level 1 DFD's? I dont get it?

Member Avatar for jbennet
0
278
Member Avatar for mohanme_2001

Hi, I am trying to create a solution in VB.Net (ver 2005). I have created two frames on top of each other and 2 command buttons which will be used to make visible the respective frames when clicked. I have placed the frames exactly on top of each other. The …

Member Avatar for iamthwee
0
170
Member Avatar for vinaii
Member Avatar for Renzokouken_22

import java.sql.*; import javax.swing.*; import java.awt.*; import java.awt.event.*; import java.util.*; public class DisplayQueryResults extends JFrame { private Connection connection; private Statement statement; private ResultSet resultSet; private ResultSetMetaData rsMetaData; private JTable table; private JTextArea inputQuery; private JButton submitQuery; public DisplayQueryResults() { super( "Enter Query.Click Submit to See Results." ); String url …

Member Avatar for iamthwee
0
222
Member Avatar for Phoenix777

[B]Hi[/B] I have recently installed 'VS2003'. However I am not able to create a new 'WebApplication'. I get the error [B]'Unable to create location 'C:\inetpub\wwwrooot\WebApplication1'. Access is denied.'[/B] I had locked the IIS before the installation process ( I had already installed VS2005 and my techsupport had advised me to …

Member Avatar for Infarction
0
87
Member Avatar for zandiago

So far is what I've got: [CODE] #include<fstream> #include<iomanip> #include<string> #include<iostream> #include<cmath> using namespace std; int main() { float matric = 47.60;//matriculation fee int hrz;//semester hours float regroom = 387.29;//rate for regular room float acroom = 496.49;//rate for AC room float dip = 38.00;//diploma fee float food = 619.66;//rate for …

Member Avatar for iamthwee
0
2K
Member Avatar for rime

How can I disable the submit button with JAVA Script untill all the mandatory fieleds are filled? if any body can help.. its urgent please

Member Avatar for world_weapon
0
251
Member Avatar for dmotah

hi every1. im wrtting a chat system!,the problem i dont no how to insert the value of a variable into the db(mysql) i no connection and insertion, but only data, nat variable, plz help

Member Avatar for world_weapon
0
110
Member Avatar for dmotah

hi im creating a chat project in php! ive created a database that is used to authorize loggin! im having problem with the chat page itself. on the page therz a textarea and a form and submit button! im confused! i dont know whether to use a txt file to …

Member Avatar for world_weapon
0
132
Member Avatar for Duki

We're discussing constructors. My problem is this: Define a class called Month that is an ADT for a month with one variable as int to represent a month. Include all of the following member functions: a constructor to set the month using the first three letters in the name of …

Member Avatar for Duki
0
141
Member Avatar for KimJack

I am trying to read a line from a file, then print only the first word in the line. It needs to do this until the end of the file. The file is as follows: Bib 0.9898 .iuiu k.kljlkj .98908 Joel .0909 .iuou k.iopi .jlkj ... I need it to …

Member Avatar for KimJack
0
86
Member Avatar for claudiu_is
Member Avatar for Ezzaral
0
127
Member Avatar for nydana8

- Hi, I have an XML file that is a "Now Playing" title file generated by a radio software. I am trying to FTP this file to my web site. However, the file is missing the header tag & the end tag. I know I have to put in an …

Member Avatar for Fungus1487
0
101
Member Avatar for edmicman

I'm using classic ASP here, and trying to do some Javascript validation. In my form, I'm dynamically creating checkbox groups - each group has a common Name, and each checkbox has a unique ID. Before the form submits (in the onclick on the submit button) I want to check and …

Member Avatar for ~s.o.s~
0
88
Member Avatar for pmahalakshmi

Experts we are final year electronic students we are doing a project involving carbidec++ but we have no idea about it we only know about turbo c++.so please guide us fromthebasics of carbide c++

Member Avatar for vijayan121
0
98
Member Avatar for Ballar32

I'm getting a the error "passing arg1 of 'strcpy' makes pointer from integer without a cast.... [code] #include<stdio.h> #include <stdlib.h> struct node { char make; char model; int year; char color; char plate; struct node* next; }; void menu(); void insert(struct node** head, char make, char , int, char, char); …

Member Avatar for Ballar32
0
267
Member Avatar for jessemr

Hi, I'm trying to figure out how to do this assignment, but I don't even know where to begin. This is a beginning project, all I know is arrays are not allowed. Can somebody get me started? The assignment is.. In cryptarithmetic puzzles, mathematical equations are written using letters. Each …

Member Avatar for iamthwee
0
256

The End.