132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for matharoo

I am trying to store the numbers of a text file into a 2D array.. Here's the text file: 1 2 3 2 3 4 4 5 6 But i get the error: Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 2 at BankerAlg.main(BankerAlg.java:30) Process completed. Here's the code i made: [CODE] import …

Software Development java
Member Avatar for matharoo
0
2K
Member Avatar for menaka4u

i want to make a pharmacy control system, please help me to do this, this system is for small pharmacy, help me with samples.

Software Development c c# c++
Member Avatar for alaa sam
0
60
Member Avatar for SnoBunny85

My professor has given us the fifo algorithm program and asked us to modify it to become the clock algorithm by using reverse_map to find a page table entry and then checking its reference bit. If the reference bit is set, clear it and go on. I am just completely …

Software Development algorithm c++
0
148
Member Avatar for greimykudau

[CODE]#include <iostream> using namespace std; template<class L> class LEST { L *date; int first; int last; public: LEST(int last); L dele(); bool Full(); bool Empty(); bool Add(L value); bool search(L value); void print(); }; template<class L> LEST<L>::LEST(int last) { this->last = last>0 ? last:100; first-1; date = new L(this->last); } …

Software Development c++
Member Avatar for greimykudau
0
162
Member Avatar for omarelmasry

I am trying to use FMOD library in a console application Visual c++ project.... But I can't really get it to work I will tell u exactly what i did... First, I added the following files to the project folder: [B]fmod.h , fmod.dll, fmod_errors.h , fmoddyn.h , fmodvc.lib , wincompat.h …

Software Development c++
Member Avatar for william90049
0
319
Member Avatar for NickPatton

My assignment is to write a program that outputs the following columns of numbers using mathematical operators and the loop index. This is what I want the program to output: [CODE]1 10 0 1 1 0 2 20 1 4 2 0 3 30 2 9 3 0 4 40 …

Software Development c++
Member Avatar for NickPatton
0
243
Member Avatar for slasherpunk

I have created a window containing only one button(park1). All I need is a new dialog(with "OK" and "Cancel" buttons to open when I click on park1. Thanks in advance. [CODE] import java.awt.*; import java.awt.event.*; import javax.swing.*; class MyWin extends JFrame implements ActionListener { JButton park1; MyWin() { setSize(450, 500); …

Software Development java java-swing
Member Avatar for mKorbel
0
3K
Member Avatar for rubenrav

i have one list and one database. The list is made after i've decided a number in a numbericUpDown. So for an example i can get the list fj1Section: 1 34 33 32 31 20 19 18 17 16 each of this sections exists in the database in the 2. …

Software Development sql
Member Avatar for agrothe
0
186
Member Avatar for ChanelN19

hello, all! I am an absolute rookie in the world of C++ language, and not a good one either... I have an assignment to create a random number guessing game, and I am struggling with it. I have most of it done, but we have to generate the number of …

Software Development c++ gaming programming-construct
Member Avatar for frogboy77
0
327
Member Avatar for FinaL111

Hello I have a question regarding linked list: The assignment I was given was rather large so I'm not going to go into the full details of what exactly it does and give you just what is needed to answer the question. First we have a student records structure [CODE]typedef …

Software Development c linked-list
Member Avatar for ashlock
0
112
Member Avatar for dolly_olaide

Hello, I am currently working on a project for human body detection and recognition. I am using OpenCV. So far I've concentrated on the facial detection and recognition. The detection works well using the haarcascade classifier provided from OpenCV. However I'd like to create my own classifier, I tried but …

Software Development c++
Member Avatar for dddua
0
827
Member Avatar for Rizvi404

Am using date time picker control in vb 6 to show time but when i try to store that in a access database it stores the default can somebody help me make it modify to store only time...

Software Development visual-basic
Member Avatar for hkdani
0
139
Member Avatar for Dakot

Hello. I trying to solve this problem. The user inputs 4 numbers to each array (they are 2). I must output the common elements. So this is the problem i'm stucking with . Let's say p = 1,2,2,3 p1 = 3,5,1,2 the output is 2 1 3 1 2 but …

Software Development c++
Member Avatar for Dakot
0
8K
Member Avatar for naveedqadri

Dear Experts, New to C# , My page is in ASP.Net with C# coding, I am getting this error, while debuging. Your help would be appriciated. ---------- System.NullReferenceException was unhandled by user code Message="Object reference not set to an instance of an object." Source="App_Web_print.aspx.c0a41cfd.e1sjotnx" StackTrace: at ASP.soft_reports_print_aspx.__Render__control1(HtmlTextWriter __w, Control parameterContainer) …

Member Avatar for thines01
0
446
Member Avatar for vaironl

Hello forum, Vaironl here. I believe this questions has been answered before, but I cannot find the answer.. weird. I have a class which is called panel and extends a JPanel and a paint method. For some reason my Jlabel is not appearing, I read common painting problems, and tried …

Software Development java
Member Avatar for mKorbel
0
2K
Member Avatar for tedman102

I am almost finished reading one of my tutorial books on C++. I made this program a little while back. The comments explain what the program does. There are still a few errors, like if you enter a character instead of a integer you'll be stuck in an endless loop. …

Software Development algorithm c++
Member Avatar for mazzica1
0
1K
Member Avatar for Rizvi404

With rstp If NewRecord = True Then .AddNew !slno_ID = txtslno.Text !DepartureDate = txtdate.Value !Departuretime = txttime.Text !PlaceofVisit = cmbpov.Text !ApproximateDistance = txtdistance.Text !NoofDaysofStay = Txtstay.Text !BusinessExpected = txtbusiness.Text !Remarks = txtremarks.Text .Update .Requery End With arrtime = (CCur(txttime.Text) + CCur(txtdot.Text)) fm = (CCur(txtdistance.Text) * CCur(txtmr.Text)) arrtime1 = arrtime + …

Software Development visual-basic
Member Avatar for debasisdas
0
125
Member Avatar for JPyo

Hey guys, So I have to convert my previous code into a code using pointers and dynamic storage and the problem is, I have no idea how. I have already read on another forum's examples of Pointers and watched a few tutorials (simple ones) and read from my textbook. Unfortunately, …

Software Development c++ ios storage
Member Avatar for mazzica1
0
137
Member Avatar for gorosh

Hi to all I would like to ask for help with my C# project. It is a Memory game involving pictures. First the user clicks a picture box and the image shows and remains displayed, then the user clicks another picture box to find the first's pair. I'm having problem …

Software Development c# gaming
Member Avatar for mazzica1
0
353
Member Avatar for vlaskiz

short story short, I've got data file which looks like this: [CODE] PrekÄ—s pavadinimas Atvežimo data Pardavimo data Kiekis Kaina --------------------------------------------------------------------------------- Juodos vilnojinÄ—s kojinÄ—s 2011 10 28 2011 10 28 5 6.79 Smulkus cukrus 2011 11 19 2011 10 28 15 3.66 Pigus Batonas 2011 11 23 2011 10 28 …

Software Development c++
Member Avatar for vlaskiz
0
155
Member Avatar for javaNewb37

I want to modify the below code to read the Polynomial Terms from a text file (vs. hard-coded values) Furthermore, read data from text file in the format: P1 = 3 5 1 -1 0 8 P2 = 5 6 2 -1 1 7 0 -4 etc... Name the values …

Software Development file-system java
Member Avatar for stultuske
0
342
Member Avatar for Mike Tyson

I am having trouble completing This hangman project. It mmost be done using model view controller pattern. Here is what i have so far //Header file declarations import javax.swing.*; import java.awt.*; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.io.FileInputStream; import java.io.IOException; import java.util.Scanner; //Class declaration class HangmanModel extends JFrame implements ActionListener { …

Software Development gaming java software-architecture
Member Avatar for stultuske
0
269
Member Avatar for Jungletoe

Ok, I found this code after searching for days, and to my delight it actually worked. It loads a TGA file into the memory... but I have no idea about how to load it into an OpenGL texture that I can use to texture a cube. I have literally spent …

Software Development c++ opengl
Member Avatar for myk45
0
1K
Member Avatar for eblanco1

Write a program that counts number of words in a sentence and displays the average number of letters in each word. Your program should ask the user to type a sentence (or sentences) that are 80 characters or less. If the sentence is longer than 80 characters, truncate it and …

Software Development c++
Member Avatar for Clinton Portis
0
234
Member Avatar for sneekula

I need a function that returns True or False if an integer n is a prime. Any 'high speed' thoughts?

Software Development python
Member Avatar for wallars
0
1K
Member Avatar for Kyle Willett

I'm doing a program that is supposed to reverse a string entered my the user using a recursive function, I almost have it solved except for one little elusive bug that I can not understand. [CODE] //****************************************************************************** //Programer: Kyle Willett //Course: CS-1513 //Program: 3 exercise 7 page 933. //Purpose: Reverse …

Software Development c++ unix
Member Avatar for Kyle Willett
0
211
Member Avatar for Zwiebi

Hello, I'm trying to write a script which is listing files based on different preferences, like filetype or permissions. All is fine, except for one: I want to list files in /home which has a different owner than the home directory it is in. Here is an example: /home/UserA is …

Software Development shell-scripting
Member Avatar for Zwiebi
0
234
Member Avatar for theprofoundgeek

Hello! I have coded a compression technique and I am having trouble in measuring the speed of it. I tried to generate log of start time and end time, but compression time of same file varies a lot under windows. That may be happening because other processes would be consuming …

Software Development c++
Member Avatar for ExpertsGuide
0
322
Member Avatar for BITnur

Im doing my project on number conversion. I found the coding below. can anyone help me to explain the coding. why the coding have "count"? why the "count + 1"? what function of "count"? [CODE]void Bin2Dec() { long int a[20],i,n,count=0,b[20],c[20],sum=0; printf("\n Enter a binary number to convert to decimal form:"); …

Software Development c
Member Avatar for BITnur
0
238
Member Avatar for mc3330418

So wrote this code all in main and it worked then tried to put it into function, per assignment, and i'm getting three errors both in the last function where I call the previous functions to print. [CODE]#include <iostream> #include <fstream> #include <iomanip> #include <string> using namespace std; ifstream infile; …

Software Development c++
Member Avatar for mc3330418
0
209
Member Avatar for engineer61

Hi friends I need urgent help. now three variables we printed to a file received from the user. This variable to another file, the user wants to take that file and the value of the variable is a variable, you need to do. And this event is the first change …

Software Development c file-system
Member Avatar for zeroliken
0
139
Member Avatar for JasperX

I dont know if someone Use this Browser FrameWork , i hope so :) I would use this Browser Framework in my Winform Application c#. I have some questions to do. I'm getting Crazy :( My target is Build a Tabbed WebBrowser with this FrameWork in a WinApps Form. [B]Question …

Software Development api google-api web-browser windows-api
0
162
Member Avatar for Alvi89

Im currently trying to delete a record from a file The structure ive used is this: [code]struct studentRecord { char rollnumber[12]; char name[32]; int attendancePercentage; float quiz; float assignment; int classpart; float mid1; float mid2; float final; float semesterPerformance; float overallPerformance; }; [/code] Now I have 2 problems: 1.I cant …

Software Development c data-structure file-system
Member Avatar for Adak
0
228
Member Avatar for tformed

[ICODE] org 0100h mov dx, msg mov ah, 09h int 21h mov ah, 4ch int 21h msg db 'Hello Wold! \nThis is my first program using Assembly', '$'[/ICODE] Hi guys, I'm learning Assembly Programming using NASM and had a question. Would it be possible to break lines in Assembly? Say …

Software Development assembly
Member Avatar for tformed
0
13K
Member Avatar for Jack_Frost

Hello all, The program I am working on is calculation of areas (of shapes). For example, for triangle area calcuation I have: [CODE] else if (character == 't') { double b,h; cout << "Enter base: "; cin >> b; cout << "Enter height: "; cin >> h; area= h * …

Software Development c++
Member Avatar for Narue
0
171
Member Avatar for PixelExchange

Hello everyone. I've recently written a program which draws some stuff to a DC; however, on a screen invalidation, the things drawn on the DC, dissapear (get erased.) Does anyone know how one would be able to draw to this dc, and have whatever was drawn to the dc remain …

Software Development c++
Member Avatar for PixelExchange
0
97
Member Avatar for Biff123

I managed to get a quicksort function to sort the numbers in a dynamically allocated array of structs, [code]struct Contact { char first[maxstring]; char second[maxstring]; int number; }; //and the dynamically allocated array, Contact *person = new Contact[numberofcontacts]; //The quicksort function I used to sort numbers is: void Quicksortnumber(Contact *person, …

Software Development c++
Member Avatar for Narue
0
122
Member Avatar for Bobonoinc

I am working on an application in which I select a color from a color selection dialog and click on a graphic shape to change its color. Everything is working fine, but now I would like to change the default arrow-shaped cursor to an eyedropper shape when I am in …

Software Development java oracle
Member Avatar for Bobonoinc
0
99
Member Avatar for jhellr13

Hey I'm in an AP Computer Science class working on classes. We have been working on a project that is a date class that does certain things like setYear, getMonth, getDay, etc. I have gotten all of those to work, except for one. The last one is a boolean method …

Software Development java
Member Avatar for stultuske
0
306
Member Avatar for Ravic85

So, I'm trying to write this program here are the listen instructions. 1. You are going to write a program that uses 3 input files and 3 output files 2. your program will include a function template that sorts an array of values in ascending order. the function will receive …

Software Development c++
Member Avatar for griswolf
0
767
Member Avatar for frank33

My Java instructor yesterday gave us a sample test. One line that surprised me was something like [B] if ( m2++ < 10 ) { ………[/B] iow the first thing done is , in effect m2 = m2 + 1, an ASSIGNMENT. Whether the instructor ever actually discussed this in …

Software Development java
Member Avatar for stultuske
0
140
Member Avatar for AdampskiB

I'm attempting to create a number square when it's using a parameter. Whatever the user enters in the parameter it will display something like this (using 4 as an example): 4567 3456 2345 1234 I've come up this so far: [CODE]def numberedSquare(n): for a in range(n, 0, -1): print(a, end="\n") …

Software Development python
Member Avatar for techie1991
0
167
Member Avatar for crankyslap

When I click the "Go" button I want the button event in "wxQuestionMain.cpp" to call "somefunction()" which is inside "otherFile.cpp". That works just fine. But I then want to change the text in the textbox "txtCtrl1" from inside "somefunction()" and that won't work because "somefunction()" is not part of the …

Software Development c++ gui
0
124
Member Avatar for phorce

Hello, I'm writing a program that compares two percentages and I need them to be rounded up or down depending on their number.. I have used this: [code] percentage[i] = Math.Round ((analysis[i] * 100) / char_count); [/code] Bit it throws an error that it's too ambiguous.. Now the "analysis" is …

Software Development
Member Avatar for thines01
0
97
Member Avatar for evilweevil

[B]hey guys: i put a question 2 days ago after having a problem with this equation and u guys helped me alot and solved it but i want to program it in java everything went well but gave me 2 errors here is the code and all information the code …

Software Development java
Member Avatar for stultuske
0
2K
Member Avatar for crc0002

Here is the program assignment: [icode] Graph abstraction is important because it is used in many different areas of science, engineering, computer sciences and software engineering. For instance, the Internet makes use of graphs to represent the Internet router network configuration in order to determine the best route for forwarding …

Member Avatar for mazzica1
0
1K
Member Avatar for mikrosfoititis

Hi everyone, I seem to be experiencing some problem with the linking of header files. I'm sort of creating Date structures and I have the following files: [list] [*][b]Date.h[/b]: Class Date declaration [*][b]Date.cpp[/b]: Class Date functions definitions and auxiliary functions [*][b]DateFormat.h: Class DateFormat declaration (used to format Date objects) [*][b]DateFormat.cpp: …

Software Development c++
Member Avatar for mikrosfoititis
0
291
Member Avatar for lameraz

GUI class with the list. What i want to do is have another class add to this list when button is clicked but im not sure how to do that. [CODE] public class LView extends MasterViewPanel{ private static final long serialVersionUID = 1L; private JButton host, join, quit, start; private …

Software Development gui java
Member Avatar for lameraz
0
170
Member Avatar for Taximus

Hello everyone. I don't know how to call a method from abstract class in protected method. I know that to call method of some class I need to create an object, then object.Method. What are the other ways to call methods? Here is the example code: [CODE] static public List<Figure> …

Software Development
Member Avatar for Narue
0
154
Member Avatar for salah_saleh

Hello, I have a problem in reading p5 PGM file: [CODE] ifstream::pos_type _Start, _End, _Size; ifstream::off_type _newStart; char * memblock; vector<vector<int> > initMatrix ; std::ifstream inf; inf.open("a.pmg", ios_base::in | ios_base::binary); if (inf) { std::string line; for (int i = 0; i<3 ;i++)//skip the first 3 lines that contain the info …

Software Development c++ ios
Member Avatar for mazzica1
0
821

The End.