132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for winbatch

As seen in another thread, I'm working on a Log class. I'm running into an issue that if I delete the file that's being written to, the Log class doesn't detect it and continues to 'think' it's writing even though the file is gone... (Note that this is on sun …

Software Development c++ file-system
Member Avatar for subtronic
0
2K
Member Avatar for nizar4445

hello all can any body help me to correct this code please :cry: :cry: i want it so it can print whats n is in these different cases. this is my code and thanks alot for your help #include <stdio.h> #include <iostream.h> #include <stdlib.h> void main() { int ave, 1st, …

Software Development c++
Member Avatar for sinrtb
0
307
Member Avatar for Alex123

Hello, I can not fill a dataset and operate with a datatable when it is on other computer (not on the ASP server). I am using MS VIsual Studio .NET 2003 and ASP. I receive the following error when trying to fill a dataset: "The Microsoft Jet database engine cannot …

Member Avatar for BobJacobson
0
133
Member Avatar for Brent_Ritterbec

I am working through the book Visual C#.NET Step by Step, and I came to the section of the book where the author shows how to create comments on your code with XML. ///<summary> ///The obligatory Hello World in C# ///</summary> ///<remarks> ///This program writes out Hello World ///using the …

Software Development c c# c++ visual-studio web-browser xml
Member Avatar for casmith
0
150
Member Avatar for Digital Reaver

I need help writing this program i have everthing set up except i cannot get the program to save the output from it. Here is a copy of my work (It will most likely suck Im new at this sorry.) Any help will be very appreciated. I need the file …

Software Development c++
Member Avatar for winbatch
0
110
Member Avatar for rackus

Hi there, I have got this problem which is rather puzzling, to me at least. My team-mate and I each did our coding and they work as standalone. His part is the UI and mine the backend processing. He did his code using BlueJ using JDK 1.3, I did mine …

Software Development file-system html-css java unix
Member Avatar for rackus
0
512
Member Avatar for moonduke

Please Help my code for this program is listed below what the program is supposed to do is also listed below. I can't get it to work. [B]The problem[/B] Write a program to compress a message consisting of the ten symbols A, B, C, D, E, F, G, H, I, …

Software Development java
Member Avatar for Phaelax
0
223
Member Avatar for innocent_one

Hey.. Can anyone please help me? I am trying to write a round robin scheduler and so i decided that if i got a fcfs scheduler, then all i would have to do is change the process from completing in the processor to it just going into the processor for …

Software Development c queue
Member Avatar for innocent_one
0
563
Member Avatar for bl4ckch3rry

Hi, i searched around and couldn't find any examples on what i'm looking for.. Im a newbie when it comes to Winsock (C++) and im not sure what im doing wrong, if you could just point me in the right direction or provide some source code that'd be very helpfull, …

0
152
Member Avatar for bob901

soz bout all this posting :S i know this is a really n00b question but how do i add a black background to this prog? import java.awt.*; import java.awt.event.*; import javax.swing.*; public class CMP extends JFrame { public void myframe() { JFrame frm = new JFrame(); frm.setBounds(0,0,800,400); frm.setVisible(true); frm.addWindowListener(new WindowAdapter() …

Software Development java java-swing
Member Avatar for bob901
0
196
Member Avatar for kittie

[code] //project.cpp //compile error-price undeclared (first use this function) #include <iostream> //don't I have it declared in the float line?? #include <fstream.h> #include <stdlib.h> using namespace std; int main() //PROBLEM: Create an input file of recently shipped music CD's. The file should consist of // the name of the album, …

Software Development c++
Member Avatar for kittie
0
211
Member Avatar for bobr_1013

When this program runs, I can enter in the name the first time through the while loop (using "cin.getline). When I go through the second time, it skips the name and asks to enter the ss#. The first time through, everything works fine. [code] #include <iomanip> #include <iostream> #include <fstream> …

Software Development c++ ios
Member Avatar for vegaseat
0
232
Member Avatar for markymarkb1000

Hi...I have created a private static main method which instantiates an array of 3 different types of objects depending on the choices entered in on the command line. Here is my code: public static void main(String[] args) { //creates local variable currentIndex //creates employee array of type worker which can …

Software Development java
Member Avatar for server_crash
0
144
Member Avatar for beginprog

hi im purely a beginner and im trying to write a program that will allow us to see graphically the number of people of every diferent age range in a given community then it should show the results graphically. i have done mostly all of the code and i just …

Software Development first-post pascal
Member Avatar for Daaave
0
202
Member Avatar for Ghost

Hi, I'm trying the Space Invaders tutorial ([url]http://www.planetalia.com/cursos/index.jsp[/url]). I'm on part 13, which divides the code into classes. I'm using JBuilder and when I do this, I get error messages saying that the class I put in a new Java file doesn't exist. I put the java file in the …

Software Development java java-jsp
Member Avatar for jwenting
0
139
Member Avatar for chacal

I everyone, I wanted to know if there is a way, when creating a TabStrip control, to make the tabs bigger? Because I'm creating a software that will be used with a touch screen and I want to use TabStrip, but the tabs are too small to be used with …

Software Development visual-basic
Member Avatar for chacal
0
126
Member Avatar for morgryan

Hi there I need to create a command line interface in java. I have something that connects to an oracle database and allows me to do a predetermined select steps. I need some sort of java code that will allow me to have a prompt: Which you like to do? …

Member Avatar for Paul.Esson
0
145
Member Avatar for Ghost

Hi, I was wondering if there was a way to find open ports on a server. I'm trying to write a program that tells the user whether they have any open ports or not and if they do, which ones and how to fix them. Thanks.

Software Development java
Member Avatar for jwenting
0
178
Member Avatar for fatallah

we need to write simulation program to imitate the behavior of a single CPU system that has a preemtive RR scheduler and the collecting data regarding the operation of the simulation, create a input file to represent process arrival and service times 30 0.7 54 17.28 . . this EXP …

Software Development c
Member Avatar for Narue
0
266
Member Avatar for Diode

I am determined to learn assembly. However, I have stumbled upon a little confusion regarding boolean algebra. It seems that the author of the very fine documentation I have been studying hasn't explained a whole lot on boolean algebra symbols. I am learning HLA, and I am studying it from …

Member Avatar for Evenbit
0
214
Member Avatar for LeviFiction

Hello. I'm just starting Assembly and I'm looking for both a good compiler/IDE or whatever is used and good tutorials to help me get started. Do you guys have any recommendations?

Software Development assembly ide
Member Avatar for Evenbit
0
118
Member Avatar for peter_budo

I'm trying to create class/header for my program which should calculate distanaces between cities declared by array "[I]use[/I]" plus arrays of there coordinates as you see in code below [CODE]// file line.h #ifndef LINE_H #define LINE_H const int cities = 6; class Line { private: string use[] = {"Phoenix", "Baton …

Software Development c display storage
Member Avatar for Narue
0
161
Member Avatar for rohitmc

hi i am new to this forum and my major is computer science...this is the best thing i found on the web yet....i will try to help you out anyway i can.....i need help on this program...thanks 1. create a dynamicarray to hold the first 10 odd intergers. now create …

Software Development c++
Member Avatar for rohitmc
0
203
Member Avatar for javalsu

I'm having trouble setting the paper size and the paper bin in the printer object. I've tried the following code. If cboPaperSize.ListIndex = 0 Then Printer.PaperSize = 1 Else Printer.PaperSize = 5 End If If cboPaperSource.ListIndex = 0 Then Printer.PaperBin = 7 Else Printer.PaperBin = 4 End If End If …

Software Development printer visual-basic
Member Avatar for javalsu
0
231
Member Avatar for hessa

Hi, This program supposed to ask the user to enter the names and the ID numbers and the number of children the employee have, the search shoud work like this taylar 845 3 john 123 2 sara 526 2 **search by name** the user should enter the employee name he's …

Software Development c++
Member Avatar for hessa
0
241
Member Avatar for subtronic

These two languages, for the most part, are completely different; especially now. From culture to paradigm. So let's get a seperate C forum going.

Software Development c++
Member Avatar for subtronic
0
296
Member Avatar for bob901

Hey all :) does anyone know of any good tutorials for java?? Ive already done the Invaders one and "Intro to computer science with java". please post with some good ones :) heres the Invaders one.. [URL=http://www.planetalia.com/cursos/index.jsp]here :)[/URL]

Software Development first-post java java-jsp
Member Avatar for bob901
0
144
Member Avatar for bob901

hey all.. does anyone know how to make a decryter if so can you please tell me step by step :) thx

Software Development java
Member Avatar for bob901
0
192
Member Avatar for Bud4java

How do I initialize an array that has been called from a file? There will be 5 values in the array. So should my file "input.dat" have: 5 (number of values) 4 (value) 6 (value) 7 (value) 2 (value) 7 (value) Example: BufferedReader br = new BufferedReader( new FileReader("input.dat")); and …

Software Development java
Member Avatar for paradox814
0
111
Member Avatar for krishnakr

I am new to XML/XSLT and have taken a fascination to XSLT. Please take a look at the following and let me know. ========================================================== <?xml version="1.0"?> <FAMILY> <PERSON name="Freddy"/> <PERSON name="Maartje"/> <PERSON name="Gerard"/> <PERSON name="Peter"/> <PET name="Bonzo" type="dog"/> <PET name="Arnie" type="cat"/> </FAMILY> This file is saved as family.xml ========================================================== <?xml …

Software Development ide xml
Member Avatar for alpha_foobar
0
197
Member Avatar for bob901

hey all when i run this code : import java.awt.Canvas; import java.awt.Color; import java.awt.Dimension; import java.awt.Graphics; import java.awt.event.WindowEvent; import java.awt.event.WindowAdapter; import java.awt.image.BufferedImage; import java.net.URL; import javax.swing.JFrame; import javax.swing.JPanel; import javax.imageio.ImageIO; public class SpaceInvaders { public static final int WIDTH = 800; public static final int HEIGHT = 600; public SpaceInvaders() …

Software Development image java java-swing
Member Avatar for server_crash
0
106
Member Avatar for tgreer

Since nobody answered the thread on Binary File IO, I took a different approach. Now I'm having another problem. As I process a very large (>2GB) binary file, I store the byte position at certain points. Then, I reposition the file as needed. I store the byte positions in a …

Software Development c c# c++
Member Avatar for alpha_foobar
0
357
Member Avatar for nathanj99

HI. Hopefully I can resolve this now with your help. simply, I want to write a String to file. I have been trying it with fstream. The string comes in the form of AnsiString from a c++ Edit component. Can someone provide some code to do this. Since I cannot …

Software Development c++
Member Avatar for Narue
0
311
Member Avatar for zkjian517

when i read linux boot scripts, i often meet this expression: ${1:-}. i can't understand it. what's more, i don't understand this condition: [ -z "${1:-}" ] too. anyone can help me ? thanks!!!

Software Development shell-scripting
Member Avatar for vgersh99
0
303
Member Avatar for crypter

Hi guys i was wondering how it would be possible to make a button enable when i chose an item from within a combobox?? this is in the C# language that is!

Software Development
Member Avatar for Samus
0
165
Member Avatar for stupidenator

coming up in a week or so, I will be taking the AP Computer Science A Exam. I'm getting a little nervous about it. Has anyone ever taken this? What did you think about it? Anything in particular that I should really study up on? I have a book on …

Software Development java
Member Avatar for server_crash
0
278
Member Avatar for peter_budo

Studying Computer Science on Unix platform is ussually fun expect days when you get stuck. And life get [B]tough[/B], this is one of my tough days. To make life easier with my c++ programming I wanted to use the [B]make[/B] tool under unix. I have 5 fieles : - student.h …

Software Development c++ unix
Member Avatar for peter_budo
0
215
Member Avatar for Rose Aashii

Hye. i write this code to get inpur from user such as ram and hard disk capacity as integer type using structures. After that i want to create a file in which i want to save that data. In the code below it is getting input from user but not …

Software Development c++
Member Avatar for alc6379
0
145
Member Avatar for nathanj99

HI I am trying to write and read to file. I am experimenting with a small piece of code before going onto my main program. I am simply trying to write a float variable and a String variable to file using fstream. The variables are float version; Edit1->Text (this is …

Software Development c++ ios
Member Avatar for Narue
0
160
Member Avatar for Acidburn

[php]#include <iostream> using namespace std; class Wheel { public: Wheel(int size); int getDiameter(); protected: int diameter; }; Wheel::Wheel(int size) { diameter = size; } int Wheel::getDiameter() { return diameter; } class Bike : public Wheel { public: Bike(int f, int b); int getFrontsize(); int getBacksize(); bool operator==(Bike ); private: Wheel …

Software Development c++
Member Avatar for Narue
0
198
Member Avatar for Valmont

Reference reading directly related to this post: http://www.math.princeton.edu/matalive/Error/index.html http://www.math.princeton.edu/matalive/Error/index.html http://www.math.princeton.edu/matalive/Error/ErrorLab2/LZCompressor.html http://www.math.princeton.edu/matalive/Error/ErrorLab2/LZCompressor.html Hi all. I've just started learning the ways of compression. I decided to start with the LZ algorithm. The resource I use is: http://www.math.princeton.edu/matalive/Error/index.html http://www.math.princeton.edu/matalive/Error/index.html I understand the fundamentals of parsing the incoming text. Let's call the container that …

Software Development algorithm c first-post
Member Avatar for Narue
0
173
Member Avatar for tyczj

what is the header to time code isnt it; #include "pctimer.h" i keep gettin an error saying no such thing

Software Development c
Member Avatar for tyczj
0
284
Member Avatar for nathanj99

Hi, I really need some help. I need to write a structure to disk in c++ builder. I have been trying now for a couple of weeks and I am now about to give up. I have tried fread,fwrite etc. fstream as well as TFileStream with no luck. I have …

Software Development c++
Member Avatar for Narue
0
212
Member Avatar for phredi++

i have written a console application in c using borland c++. i want to include mouse capabilities in the program ie. run the program using the mouse just like in norton disk doctor(dos-based version). any help? :?:

Software Development c++
Member Avatar for phredi++
0
219
Member Avatar for purplegerbil

The application I am writing involves creating a dos batch file and executing it using the 'Shell' command. The batch file is used to zip up multiple files. The zip file that is created is them emailed. :?: My problem is - creating a pause within the application so the …

Software Development visual-basic
Member Avatar for Comatose
0
196
Member Avatar for feda

Greeting , it will be helpful if any one can provide me with Round Robin algorithm code in c/c++ thanks in-advance

Software Development algorithm c++
Member Avatar for Narue
0
194
Member Avatar for apurva agarwal

can any one provide me with the round robin algorithm code in c/c++ hurry up!!!

Software Development algorithm c++
Member Avatar for Narue
0
338
Member Avatar for luisator

Hi everyone! I am trying to develop an application to communicate with a Microsoft Acces database. For doing that I import the java.sql package to use the DrvierManager class to get a connection. The problem seems to be the application doesnot find the java.sql package. I have the 1.4.2_08 version.. …

Software Development java microsoft sql
Member Avatar for jwenting
0
446
Member Avatar for tat2dlady

Can anyone tell me why this is printing doubles out to the output file? [CODE] IndexFile.seekp(20, ios::beg); for (i = 0; i < NumOfSlots; i++) { if (RandomFile.peek() == 42) { Position = i; RandomFile.seekg(37, ios::cur); //cout << Position << " "; } else if (RandomFile.peek() != 42) { RandomFile.get(R.SSN, …

Software Development c++ ios
Member Avatar for tyczj
0
224
Member Avatar for Rose Aashii

I write the folowing code which is taking RAM and Hard disk capacity from user by using structures and than saving it to a new file after the user complete entring data it is displaying data entered by the user by opening that file. Problm is that i want to …

Software Development c++ display ios
Member Avatar for Narue
0
160

The End.