199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for usustarr

I have a .ksh script does a system call as follows. [CODE] recoveryProgram auto > /dev/null MYRESULT=$? if [ $MYRESULT != "0" ] ; then # If 'recovery' failed releaseBrokenStation $SYSTEM emailFailure fi[/CODE] Sometimes, this system call (recoveryProgram auto) gets hung. I would like to be able to have a …

Member Avatar for Fest3er
0
774
Member Avatar for paranoidSandra

hi everyone!i'm working on a project and i'm getting two errors of the type mentioned in the title. here's the part of the code that generates the problem: [CODE] #include "Instance.h" //default constructor Instance::Instance(unsigned features) { num_of_features = features; fileName = "-"; category = true; keywords = new string[num_of_features]; featureID …

Member Avatar for paranoidSandra
0
175
Member Avatar for maxxxx

Can I add an alert to this JavaScript? <script type="text/javascript"> document.getElementById('send').reset(); </script> <body> <input type="button" id="send" value="send order"/> </body>

0
84
Member Avatar for Daigan

Hi. So my problem is that my loop doesn't stop. Here's my code. [CODE]public void askData () { String word; String stop = null; int line = 0; File dataInput = new File ("dataIn.text"); c.println ("In order to stop, just leave it blank."); c.println (); while (true) { try { …

Member Avatar for Daigan
0
171
Member Avatar for rockerjhr

UniversityDatabse.h [CODE]#include<string> #include<stdexcept> #include<iostream> #include<map> #include "UniversityPerson.h" class UniversityPerson ; using namespace std ; #ifndef UNIVERSITYDATABASE_H #define UNIVERSITYDATABASE_H class UniversityDatabase { public: UniversityDatabase() ; ~UniversityDatabase() ; void print() ; void Create(UniversityPerson *p ) ; void Delete1( string name ) ; void Delete2( string id ) ; UniversityPerson *Lookup1(string id ) …

Member Avatar for ravenous
0
426
Member Avatar for gourav1

[CODE]#include<stdio.h> #include<conio.h> struct egde { int nodeno; struct edge*next; }; struct node { int nodeno; struct node *next; struct edge *link; }; struct node*graph=NULL; typedef struct node node; typedef struct egde edge; node*find(int); void insert_egde(); void insert_node(); void display(); int main() { int ch,i,j; do{ printf("\ninsert node"); printf("\ninsert edge"); printf("\ndisplay"); …

Member Avatar for mikrosfoititis
0
254
Member Avatar for Hamilton89

I'm trying to make a thermometer that can show when the temperature goes out of the range of 17 and 24 degrees, when it goes below 17 degrees i want it to count how many times it goes below 17 degrees and how may times it goes above 24 degrees …

Member Avatar for mikrosfoititis
0
742
Member Avatar for viswa_007

I am using a datagridview in my windows application in VS-2005. How can I convert some cells in a particular textbox column in my datagridview to checkbox cell types. Please provide some suggestions with code (if possible) Thanks in advance

Member Avatar for Janice44
0
1K
Member Avatar for ale89

Hi all! I'm making an admin, with gallery of photos. What I am doing is to first create the name of a main photo portfolio with a folder with the name entered and stored within the image that rose. When ready all the portfolios which are the folders with the …

Member Avatar for ale89
0
96
Member Avatar for jemz

Hi, Can you help me please.I want to learn cobol language i have already editor the old version of microsoft "cobol compiler version 2.20"...first thing i want to know on how can i print the "Welcome in Cobol".can you help me please in step by step...saving the code,compile and run …

Member Avatar for TrustyTony
0
133
Member Avatar for sum337

Hey ive tried to learn C++ by myself at home and decided that the best way to motivate myself was creating ye old dos text game. Im stuck at this so far and was wondering how can i improve my basic layout? also since its a text game how could …

Member Avatar for WaltP
0
3K
Member Avatar for techguy2012

This is python code and I am new to programming and I can't get just the first word of the sentence to capitalize. [CODE] def main(): input= 'the money is in the bag. however you dont want it.' words = input.split('.') capitalized_words = [] for word in words: word=word.strip() title_case_word …

Member Avatar for TrustyTony
0
281
Member Avatar for vyrte

hello everyone! i have a question about reading from a binary file.what if i want to start reading a file from a certain line of the file and end the reading to a certain line too? is there a way to do this using an ifstream?

Member Avatar for WaltP
0
168
Member Avatar for Srinivas0

[CODE]#include <iostream> using namespace std; class LoopEx { int x,y; public: void Ex; { x=3; y=x; // y=3 while(y<=1) // 3<=1 y--; // 3, 2 x=x*y; // x= 3*3=9 cout<<x; } }; int main() { LoopEx F; F.LoopEx(); return 0; } [/CODE] im trying to write a program for factorial …

Member Avatar for Srinivas0
0
109
Member Avatar for Taino

Hi, I am trying to complete this application. just using a simple Array. I have most of the instructions down and included some additional stuff I thought was practical; it seems to work up to a point. I will continue to explain. These are the instructions: 13.13 ( Cafeteria Survey …

Member Avatar for WaltP
0
396
Member Avatar for awmantonio

Hi! I have a problem in Crystal Reports on VB.NET 2008. I have two GroupHeaderSection, one is grouping per Department and the other is per Section. Under the Section grouping, I have series of Summaries, i.e. EmpA, EmpB, EmpC. These summaries are the Sum of all the workOutputHrs of employees …

0
93
Member Avatar for gourav1

can anyone explain me this concept that "static members of a class can access only static variables?" any simple code as an example to show this?

Member Avatar for gourav1
0
106
Member Avatar for n3red

Hello, To get right to the point i would like to ask for some suggestions regarding writing Java GUI applications. I have so far only done small GUI or Console applications that consisted of max 2 classes aka. 2 files. But now while back i decided to take on a …

Member Avatar for JamesCherrill
0
237
Member Avatar for midgarsorm

Hi I have a question how can you store data. for example i have a txt document stored this data Jones Jr, brown K. johnson, James S. Smith, Mark J. and i want to divide it to last name and first middle initial like i want to store it to …

Member Avatar for Clinton Portis
0
158
Member Avatar for LateNightCoder

In my program I read in a text file an decrypt the text from an array. once decrypted i then have to do through it again and search for every tenth array member and show their memory location. The code so far: [CODE] int main( ) { int* pCrypted = …

Member Avatar for LateNightCoder
0
422
Member Avatar for creative_m

I am trying to implement an enrollment organizer for a university but I would ask how to implement the aggregation relationship in Java. this relationship exist for academicStaff class and the supervisor class in which the academicStaff (e.g prof.) can be a supervisor to multiple courses in a specific semester. …

Member Avatar for JamesCherrill
0
192
Member Avatar for carmstr4

Hey guys, Is it possible to change the color of characters in a list if they do/dont meet certain conditions? So here's my code: [CODE]def checkWord(real, guess, remReal, remGuess, wrongSpot): # Format the letters so user knows whats wrong/right fullWord= real # Create copy list of real word realWord= list(fullWord) …

Member Avatar for carmstr4
0
1K
Member Avatar for VIPER5646

I have two arraylists. The JobArraylist gets adresses from a database table and JobIDArray Gets the ID for those addresses. I'm populating a Combobox with the JobArrayList which is working ok. When I select a an address in the combobox I use the sectectindex to get the AdressID from JobIDArray. …

Member Avatar for VIPER5646
0
152
Member Avatar for Semeno

Hi. I'm new in C++ and I need your help. I've got a structure and file in .csv format. It looks like this: [CODE]Twelve Monkeys;Sci-Fi / Thriller;USA;1995;129;Terry Gilliam;MUSIC;Bruce Willis, Madeleine Stowe, Brad Pitt; American Gangster;Drama;USA;2007;157;Ridley Scott;Marc Streitenfeld;Denzel Washington, Russell Crowe; Star Wars: Episode VI - Return of the Jedi;Sci-Fi / …

Member Avatar for NathanOliver
0
266
Member Avatar for twistercool

Just a Question on C programming basic some instructors have different ways of using either getche() or return 0; as bottom code on main function. Which is more better to use getche() or return 0;?[code]Getche() vs return 0;[/code]

Member Avatar for Moschops
0
277
Member Avatar for geoamins2

I am facing the problem when i m attaching the ms sql 2005 database file in win7... MICROSOFT SQL SERVER ERROR 5120

Member Avatar for geoamins2
0
192
Member Avatar for iffrah

we are to input list of 2 types of scores both of double type.The scores are to be stored in a two-dimensional array. How do i do that?

Member Avatar for WaltP
0
164
Member Avatar for ConfusedLearner

Using a text editor (i.e. Notepad), create a text file called Text1.txt and place it into a folder of your choosing. Fill Text1.txt with a sentence and save the file. Then, write a C++ program that performs the following: 1. Reads the sentence from the file Text1.txt and display it …

Member Avatar for bboy_fresh
0
274
Member Avatar for sk8ergirl

I have Java final test tomorrow it is my first time learning and I don't know when to use some code or how to use it ? I have prepared the questions that I don't know can you answer them please 1-how can I know that I need an array? …

Member Avatar for hfx642
0
123
Member Avatar for rse

I have an ajax call that sends some data to process.php and return back the image name. In process.php I returned the name as follows: [code=php] echo "image.png"; [/code] The ajax call is: [code=javascript] var $chart = $( '#chart' ); var $test = $( '#test' ); $.get("process.php", {date: DateStr, birthday: …

Member Avatar for rse
0
143
Member Avatar for tleverington1

Hi there, I am trying to display three Attributes assigned to each "Student" which variables are defined in my 'Student' Class. In my show student class, I can get the user to decide how many Students they would like to add, and i also get the user to input the …

Member Avatar for tleverington1
0
2K
Member Avatar for BlackStar0703

I realise some members have discussed this topic before but it seems quite complex. I'm starting Java and have a longterm goal of creating an internet messanger for school computers. I was just wondering what the pseudocode of this project/task would be. Thanks

Member Avatar for BlackStar0703
0
320
Member Avatar for leechyeah

Dear, I am new to PHP and MySQL. I have a simple order form on my site: 1 column with "member" and one with "comment". I am able to Insert rows when a user submits the form. But when a user wants to modify that data, the form inserts another …

Member Avatar for leechyeah
0
217
Member Avatar for aaloo

this is my html code in which i want to get info from the server and insert it into the list items and show it in the browser, using loop .so i am using php but this code is not working for me . please somebody help me !!!!!!!!![CODE]<body> <div …

Member Avatar for aaloo
0
170
Member Avatar for shamsidah

hello... i have a question about my final year project.. in my database i want to find 5 maximum values from total of defects from car's body... and the data that i'm found must valid for one year, and after one year (next year) maybe the 5 max values may …

Member Avatar for diafol
0
90
Member Avatar for lagoni123

Hey Daniweb, can somebody explain to my how to call a value from my database after i logged in? Like i log in with the username and password, then i want on my member page to show what email this user has or any other thing from the database. What …

Member Avatar for diafol
0
142
Member Avatar for Catchamouse

I would like to know how to use [ICODE]system("pause")[/ICODE]from C++ in Python 2.7 to get similar effect. Could you help me?

Member Avatar for Catchamouse
0
5K
Member Avatar for masterjiraya

I wanna try my self as an experience. Scenario: I have a member join and member log-in wherein the pass word is encrypted in the database (MySQL) Now let's say he forgot the password it too lazy to just open your email account for just getting the password recovery. What …

Member Avatar for cereal
0
198
Member Avatar for shers

Hi, I have a User Control that contains a Button. This button works for the first click. But the Click Event is not fired in the second click. Please help. Here's my code: [CODE] Public Sub New() MyBase.New() ' This call is required by the Windows Form Designer. InitializeComponent() ' …

Member Avatar for GeekByChoiCe
0
176
Member Avatar for JavaPrograms

The issue with my program is that it does not calculate how many times the specific value has occurred. I believe that I have everything in place, but I'm not sure to as why it wouldn't work. Any help and/or feedback is kindly appreciated. Thanks! Ok, so basically this program …

Member Avatar for bibiki
0
485
Member Avatar for BenzZz

I create the session variable $_SESSION['SESS_MEM_ID'] within my validateLogin.php file shown here: [CODE] <?php include'db_config.inc'; require_once('InitDB.php'); $error_msg = ''; $error_flag = false; function clean($str) { $str = @trim($str); if(get_magic_quotes_gpc()) { $str = stripslashes($str); } return mysql_real_escape_string($str); } try { $dbh = new PDO("mysql:host=127.0.0.1;dbname=$db", $user, $password); } catch (PDOException $e) { …

Member Avatar for BenzZz
0
1K
Member Avatar for bRyANthen

I couldn't save the new things when i tried to pass in new value inside inner class. The error message is local variable item is accessed from within inner class; needs to declared final. Guide me please. thanks in advance [CODE] public class Broadcast{ protected String title; public Broadcast(String title){ …

Member Avatar for JamesCherrill
0
198
Member Avatar for alaa sam

hi I have made a setup for my project and when i download it on my pc it works except that when it needs to read some file that was in the debug file when wrote the code it gives me a message that it can't find this file , …

Member Avatar for alaa sam
0
89
Member Avatar for nasimalotaibi

[CODE] import javax.swing.*; import java.awt.*; import java.awt.event.*; public class Test extends JFrame implements ActionListener { JTextField t1=new JTextField(10); JTextField t2=new JTextField(10); JTextField t3=new JTextField(10); JTextField t4=new JTextField(10); JTextField t5=new JTextField(10); JTextField t6=new JTextField(10); JButton b1=new JButton("MakeReservation"); JButton b2=new JButton("DeleteReservation"); JButton b3=new JButton("searchReservation"); JButton b4=new JButton("printResrevation"); JButton b5=new JButton("clear"); JButton b6=new …

Member Avatar for stultuske
0
345
Member Avatar for oldezwe

Below is what I have been attempting to do. [code]retrive number of rows from MySql table; for(int i = 1; i <= numberOfRows; i++){ retrive userID, level at position(i) in table; // next i need to insert userID into array, level amount of times (ex. userID = 4, level = …

Member Avatar for stultuske
0
233
Member Avatar for ethio

I get an error "Exception in thread "AWT-EventQueue-0" java.lang.ClassCastException: javax.swing.JButton cannot be cast to javax.swing.JPasswordField at def3.password$MyActionListener.actionPerformed(password.java:103)" in the following code, what am I doing wrong? [CODE]static class MyActionListener implements ActionListener { private String userInput = "username"; private static final String passText = "password" ; JFrame frame ; MyActionListener(JFrame f){ …

Member Avatar for stultuske
0
832
Member Avatar for cableworm

Hi. I have an array of structs problem. I am having issues with my getname getprice functions. I need to be able to enter a code and return the name and price for that item. The values I return are for all items. It looks like it should be simple …

Member Avatar for cableworm
0
168
Member Avatar for ishlux

Hi all, I have an inbox, if i click on the inbox which will display list of mails. now i have next button, if i click on the next button it should be possible to display the next mail with respect to the current opened mail. how to do this …

Member Avatar for its4enjoy
0
119
Member Avatar for JavaPrograms

The issues with this program are: 1. File: D:\Unit 3 Data Type, Objects, Assignments\CreditCardBill.java [line: 20] Error: Type mismatch: cannot convert from double to int 2. File: D:\Unit 3 Data Type, Objects, Assignments\CreditCardBill.java [line: 21] Error: Type mismatch: cannot convert from double to int EDIT: I have tried type casting, …

Member Avatar for zeroliken
0
4K
Member Avatar for iamthesgt

This is homework. I have to write a bash shell script using awk to process three delimited text files and produce a formatted report. The three files are as follows: [CODE]GRADES file John Bunyan:90:100:75:60 Maria Montessori:80:90:60:82 Alice Cooper:75:80:54:47 Harvey Mudd:89:45:89:95 PROJECTS file test1:30 test2:30 paper2:20 exam:50 LEVELS file A:89.5 B:79.5 …

Member Avatar for Fest3er
0
314

The End.