132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for HelloMe

Hello everybody...!!! I got a little but bothering problem. I create a First in First out algorithm schedule but somehow i have a problem in computing the WT(Waiting Time). Actually i have a WT but it only considers the current AT(Arrival Time) of the current process and does not include …

Software Development algorithm java java-swing
0
87
Member Avatar for amna masood

[CODE]#include<stdio.h> #include<iostream> #include<string> #include<conio.h> #include<fstream> using namespace std; class TESTnonteaching { private: string oname; string osir_name; int oid; public: int count3; void TESTadd(); void TESTsearching(); //void editing(); void TESTdisplay3(); void TESTsetcount3() { count3=0 ; } }; //ADDING STAFF// void TESTnonteaching::TESTadd() { if(count3>=3) {cout<<"NO SPACE LEFT"; return; } cout<<"ENTER YOUR NAME …

Software Development c++
Member Avatar for ninjatalon
0
440
Member Avatar for phoenix911

Howzit, I need some advice on how to go about doing this little side project. Theres a website that uses xml feeds to populate the whole page (i dont care if thats good or bad), I can access these feeds when I'm logged in, but as soon as I'm logged …

Software Development c c# c++ http-protocol xml
Member Avatar for phoenix911
0
241
Member Avatar for pooran.c

import java.io.*; class InputDiagnosis{ public static void main(String args[]) throws IOException { char ch; int digit=0; int upper=0; int lower=0; int other=0; BufferedReader inputstream =new BufferedReader(new InputStreamReader(System.in)); System.out.println(" Type some text. When done, press Enter to Quit:"); do{ ch=(char) inputstream.read(); if(Character.isDigit(ch)) digit++; else if(Character.isUpperCase(ch)) upper++; else if(Character.isLowerCase(ch)) lower++; else other++; …

Software Development java
Member Avatar for abhishek20
0
191
Member Avatar for dare599z

Hello all, I'm taking a intro computer science course, yet somehow I'm much better at c++ than python. My professor is essentially useless. Can anyone show me how to let these variables persist into global scope? I assumed declaring them globally would make them persist, yet it appears to not. …

Software Development python
Member Avatar for dare599z
0
187
Member Avatar for nemoo

Hey People :) I'm trying to build SimpleVRML project but I received 100 errors like this [CODE] error LNK2001: unresolved external symbol "__declspec(dllimport) public: void __thiscall std::locale::facet::_Register(void)" (__imp_?_Register@facet@locale@std@@QAEXXZ) antlr.lib simpleVRML [/CODE] notice that it's required to build it in Visual Studio 2003 but I'm using 2008 please could anyone help …

Software Development c visual-studio
Member Avatar for thekashyap
0
172
Member Avatar for dariomolnar

Hi, I am building a really complex program, and the only thing that i cannot make work right is the menu. The menu is basicaly 13 textboxes: -txtMenu1 -txtMenu2 _txtMenu3 ..... .... There is also a cursor next to the menu with up/down end enter button. When I click the …

Software Development vb.net
Member Avatar for codeorder
0
479
Member Avatar for lxXTaCoXxl

Okay so I have a few problems that I need help with. The main one being Multi Form Access. [B]Multi-Form Access:[/B] How would I go about accessing items in a secondary form. Like with .NET it would be: [code=]'.NET Syntax' formName.itemName.Enabled = true 'or' formName.itemName.Enabled = false[/code] However this isn't …

Software Development encryption
Member Avatar for Momerath
0
113
Member Avatar for arthurav

I want to use hash_map with struct values. The code is the following: [CODE]#include<stdio.h> #include<string.h> #include<hash_map> using namespace std; using namespace __gnu_cxx; struct row { int number; char type; }; struct eqstr { bool operator()(const char* s1, const char* s2) const { return (strcmp(s1,s2)); } }; int main() { hash_map<const …

Software Development c++
Member Avatar for thekashyap
0
304
Member Avatar for samehere

how can i exit from the form after clicking the "yes" button of a messageBox??

Software Development vb.net
Member Avatar for samehere
0
185
Member Avatar for j_kathiresan

Hi, I'm having XML content as a string. I'm using W3C dom for getting values from the XML. I've a very large XML file with attributes, elements similar like below [CODE=xml]<Shares> <bookDetails bookName="How to Learn English" bookAuthor="English Writer"> <Chapter chapterName="From Alphabetes" chapterPage="23"/> </bookDetails> <company> <name>test</name> <address>test address</address> <contact>test contact</contact> <C02>10.5</C02> …

Software Development java xml
Member Avatar for thekashyap
0
233
Member Avatar for Galois77

Hello All, I have a question related to synchronization in java; there's more like a confirmation. Let's start with the simplified version of my class: [CODE]class MyClass { private List<MyObject> myList = new ArrayList(); public void addEntry(MyObject obj) { myList.add(obj); } public void removeEntry(MyObject obj) { myList.remove(obj); } public double …

Software Development java
Member Avatar for thekashyap
0
198
Member Avatar for RogerInHawaii

I'm adding controls to a panel, using the .Controls.Add() function. How does Windows determine the display priority of the newly added controls? That is, if I position a new control so that it overlaps an existing control, which one shows up "on top", the older control or the newly added …

Software Development display
Member Avatar for ddanbe
0
144
Member Avatar for ispeakbinary

I am trying to create a class for doing number factorization on a random number, so I need to create a pointer to store the factors of the number. But when I compiled it, I got an error. My question is 1)What did I do wrong? I have a feeling …

Software Development c++
Member Avatar for csurfer
0
159
Member Avatar for Ahmed sunny

i am a student of software. i need some help regarding this. am just a beginner so plz help me out....

Software Development c c++
Member Avatar for Adak
0
2K
Member Avatar for spidey32

Hi, im new to this forum and also Java. Im currrently doing my degree 1st year. My lecturer gave me a question on factorial and im unable to solve it. i need to explain why any number of threads can be executing inside of it without causing interference in the …

Software Development java
Member Avatar for spidey32
0
105
Member Avatar for Kadence

I'm having issues because I am using the Boost library, but another library I am using for this project is #define'ing the term 'thread' as well. And addressing the boost thread as boost::thread in my code doesn't help. Here is what the other library's definitino is: [CODE]#if defined(_MSC_VER) # define …

Software Development c++ storage
Member Avatar for Kadence
0
287
Member Avatar for mjavaid

Hi all. How would I modify my current program to make it perform the conversion with the main method calling other methods instead of performing the conversion in the main method itself? I have attached a .pdf file that has a list of all the methods that must be used …

Software Development java pdf
Member Avatar for mjavaid
0
113
Member Avatar for MWE_QUE

This JFrame opens and puts in the empty questions and answers when it starts as it should, but it doesn't print the questionList.size() at line 191. The next button also won't go to the next question which should be retrieved from the text file. I'm not sure if the questionList …

Software Development gui java java-swing
Member Avatar for MWE_QUE
0
239
Member Avatar for aravinda reddy

I have to find the maximum total price for the list of items so that weight should not exceed 14285 and volume should not exceed 17.. I need the best algorithm to find this.. The structure look like this wmax= 14285 vmax= 17 item weight volume price ============================== 1 1190 …

Software Development algorithm
Member Avatar for Momerath
0
134
Member Avatar for zero44

Could someone please explain what this does in the code above? [code] for (; num; num /= base) { // Note: abs() is done on each digit instead of the whole num // to preserve the full range of int result.insert(result.begin(), digits[abs(num % base)]); } [/code]

Software Development c++
Member Avatar for daviddoria
0
102
Member Avatar for gladtoplay5

For an exercise we are supposed to: Write a C++ program that uses three user-defined functions (counting main () as one) and produces the following output: Three blind mice Three blind mice See how they run See how they run One function, called two times, should produce the first two …

Software Development c c# c++
Member Avatar for gladtoplay5
0
281
Member Avatar for nickcolb

So far my professor has given us code and we basically "fill in the blanks" of the methods below the main code. I've done all the other methods, but am now stuck on the Taylor series portion. The code below is to calculate angles, and one of the methods called …

Software Development java
Member Avatar for Slimmy
0
1K
Member Avatar for Emred_Skye

Hello, I have a python script that deletes a line of a text file when the number in the second column is greater than or equal to 5. So my input file is three columns: [CODE]1 3 aaa 2 3 aaa 3 6 aaaaaa 4 2 aaa[/CODE] [CODE]def filter(in_file, output): …

Software Development python
Member Avatar for Emred_Skye
0
190
Member Avatar for Tenjou

Hello everyone, I'm trying to solve a problem in C++ using visual studio. The problem asks to write a program that asks the user for a positive integer no greater than 15, and that the program should then display a square on the screen using the character "X", and that …

Software Development c++ display visual-studio
Member Avatar for sergent
0
2K
Member Avatar for sikelesS

Hi there, first post! First off, I apologise for asking such a basic question, but I am new to Java (done VB before..) and was wondering if you could please help me out with a little problem I'm having! I have a method that reads data from a text file, …

Software Development java seo
Member Avatar for Slimmy
0
192
Member Avatar for computerdude87

Hi, I am trying to calculate how many rooms a hotel has, how many are occupied, and the percentage of rooms that are occupied. It is suppose to do this after a loop iterates once for each floor while skipping the 13th floor. I am new to this, any suggestions? …

Software Development c++
Member Avatar for jonsca
0
109
Member Avatar for ashley11

i have 1 2 : 3 , now i have to remove the ":" , after that need split it . after split, my expected output is shown below: 1 2 3 1 2 3 may i know how to remove the ":" and split it? hope anyone can help …

Software Development c#
Member Avatar for CsharpChico
0
576
Member Avatar for Slyvr

This is my first time trying to use KeyListener and I just need it to move an image over 20 px every time I press the right arrow key. After 400px, it should move down to the next line vertically 'playery.' For Some reason it prints out the console output …

Software Development java
Member Avatar for Slyvr
0
137
Member Avatar for chaliworm

please help need a code tht calculates number of hits and misses in the cache from a adddress file with addresses stored as hexadecimals stored on th hard drive.these hexadecimals should first be changed into binary.. ive read some psuedo codes buh i seriosly dont know were to begin the …

Software Development file-stream hard-drive java
Member Avatar for Ezzaral
0
257
Member Avatar for Labdabeta

I am having trouble with a program that I am writing. I cannot seem to be able to destroy a window. I know the DestroyWindow function but it only works on windows that my application owns. Is there any way to destroy a window that is not owned by my …

Software Development api c++ windows-api
Member Avatar for Labdabeta
0
126
Member Avatar for TechSupportGeek

Hello guys, I just started learning C# (having studied VB.NET for the last 2 years) and I was wondering if you could help me out on this problem I have encountered. All I want is start an application using the [ICODE]Process.Start[/ICODE] method. In VB.NET, this was pretty easy and straightforward …

Software Development assembly
Member Avatar for CsharpChico
0
5K
Member Avatar for Limiter

HI, a pretty frustrating problem arose. I am not going to post any code this time. This should be straight forward question anyways... :) I have a class that contains a constructor with arrays. Also, a methods to add to the array using scanner class. The problem is, I implemented …

Software Development api java
Member Avatar for dononelson
0
338
Member Avatar for Kath_Fish

hi..i am using hashset to to my intersection.But still cannot intersect the two hashset successfully.I need some help from you guys.. Now, my first hashset include the number in string 2 1 3 4 5 my second hashset include the number in string (in line) 1 2 1 2 3 …

Software Development
Member Avatar for Kath_Fish
0
363
Member Avatar for chetan_8187

Hi, I want a code for opening a particular folder or directory on button click. Thanks.

Software Development java
Member Avatar for sairakhushi
0
938
Member Avatar for salmap

Hi, I have a grid view(drg).The first column diplays the value of checkbox(true or false). I am counting the number of "True" values and display it in textbox txtc when I click on it. Private Sub txtc_Click(ByVal sender As Object, ByVal args As System.EventArgs) ' ** Place Event Handling Code …

Software Development vb.net
Member Avatar for codeorder
0
226
Member Avatar for triumphost

I have the following code which finds a window by a partial name given.. I've tested it and it doesnt work in Dev c++ but it definitely works in visual studio 2008.. So I decided to make a form with nothing on it and implement this code to see if …

Software Development c++ visual-studio
Member Avatar for triumphost
0
328
Member Avatar for cnlengr

Hi, I've been learning java, and I have a question about creating an array. Basically, what I want to do is that I wish to create an array with an unknown array length, then ask the user to input values to be stored in the array. The length of the …

Software Development java
Member Avatar for cnlengr
0
116
Member Avatar for SSully

So simple problem. I need to have a division by zero validation in my constructor in this class. It is painfully simple, but I am just starting to learn classes and I just cannot figure out what I have to do. Would it be easier to just put the validation …

Software Development c++ oop
Member Avatar for Kanoisa
0
259
Member Avatar for stereomatching

Sorry I don't know how to express it in English, so I use some codes to show what I am trying to say [code] template<typename strategyOne, typename strategyTwo, typename strategyThree> void someCode(strategyOne stOne, strategyTwo stTwo, strategyThree stThree) { //some codes stOne(some args); //some codes stTwo(some args); //some codes stThree(some args); …

Software Development c++
Member Avatar for stereomatching
0
121
Member Avatar for ThatGuy2244

I would like to know how to display more than 256 colors in DOS I already know about the color palette which can hold 256 colors and can be changed, but as soon as you change them the colors on the screen change. So how would I display more than …

Software Development assembly display
Member Avatar for ThatGuy2244
0
489
Member Avatar for xanawa

Hi, I am doing a Resturant Reservation System and i am thinking of doing a schedule of the tables that are reserved as shown below. _______|08.00| 08.30| 09.00| 09.30| table1 _______ table2 _______ table3 _______ table4 _______ table5 _______ . . . I tried to use datagrid view but i …

Software Development
Member Avatar for xanawa
0
116
Member Avatar for techturtle

I’m fairly new to C#, especially with databases. I’ve worked in VBA and Delphi doing databases, so I was hoping to just use this like a RecordSet or a Tcursor, but so far it’s not panning out like that. I have a SQL database added as a dataset in my …

Software Development dataset delphi
Member Avatar for techturtle
0
197
Member Avatar for HitnBooks

Hello everyone. I'm teaching myself C++ and I've found this lesson online on passing pointers. I've got most of it down, but two of the functions for the program aren't displaying right. Would you wise (experienced) ones have a moment to look at just these functions? Are they looking wrong …

Software Development c++
Member Avatar for venomxxl
0
145
Member Avatar for Kanoisa

Hi all, I'm currently thinking about how to make a thread safe queue. Specified as such: [LIST] [*]Single reader [*]Multiple writers [*]Dynamically sized [*]Suitable for both a reader sleeping on a queue or as a polled queue [/LIST] So what I'm looking at so far (pseudo)code wise is the following …

Software Development c++ queue
Member Avatar for Kanoisa
0
660
Member Avatar for cayman

Hi Folks Im rusty on my pointer passing I would like to pas an array (or pointer thereof) to a function, for use within that function. I cant remember the correct syntax, if somebody could help me out, that'd be FAB heres where I am at [CODE] int main (void) …

Software Development c
Member Avatar for cayman
0
130
Member Avatar for VasquezPL

Dears, I have a problem with belows code: [CODE]mySearcher.Filter = "(&(objectClass=user) (|(cn=" + objectName + ")(sAMAccountName=" + objectName + ")))";[/CODE] i receive errors: NEWLINE IS CONSTANT. Can you tell me whats wrong with that code? THX in advance!

Software Development c#
Member Avatar for VasquezPL
0
112
Member Avatar for SCass2010

Hi everyone, I have an ArrayList containing 40 or so JPanels for a board game developed in Netbeans with java - is it possible to have an event listener or something similar that will "monitor" the ArrayList for any of the JPanels being clicked, rather than having to create an …

Software Development java java-netbeans java-swing
Member Avatar for SCass2010
0
1K
Member Avatar for yashsaxena

Hello All Is it possible to check the ip address of a particular web site? If yes what will be the code?

Software Development c
Member Avatar for venomxxl
0
167
Member Avatar for veda&&

[B]i need help i wanna know how can i pass am array of objects to the constructor header & the .cpp implementation ? & prompt the user to enter the values to fill it ? & how to pass it if it's array of int & its multi dimension ?[/B] …

Software Development c++
Member Avatar for jonsca
0
223

The End.