199,114 Archived Topics
Remove Filter ![]() | |
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 … | |
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 … | |
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> | |
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 { … | |
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 ) … | |
[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"); … | |
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 … | |
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 | |
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 … | |
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 … | |
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 … | |
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 … | |
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? | |
[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 … | |
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 … | |
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 … | |
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? | |
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 … | |
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 … | |
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 = … | |
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. … | |
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) … | |
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. … | |
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 / … | |
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] | |
I am facing the problem when i m attaching the ms sql 2005 database file in win7... MICROSOFT SQL SERVER ERROR 5120 | |
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? | |
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 … | |
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? … ![]() | |
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: … | |
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 … | |
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 | |
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 … | |
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 … | |
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 … ![]() | |
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 … ![]() | |
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? | |
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 … | |
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() ' … | |
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 … | |
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) { … | |
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){ … | |
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 , … | |
[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 … | |
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 = … | |
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){ … | |
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 … | |
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 … | |
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, … | |
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 … |
The End.