132,726 Archived Topics
Remove Filter ![]() | |
Please help me how can i implement Multilevel feedback queue scheduling. i tried something and got scrap liek this [code = java] package osp.Threads; import java.util.Vector; import java.util.Enumeration; import osp.Utilities.*; import osp.IFLModules.*; import osp.Tasks.*; import osp.EventEngine.*; import osp.Hardware.*; import osp.Devices.*; import osp.Memory.*; import osp.Resources.*; /** This class is responsible for … | |
/cry i am having troubles with my c++ program i was asked to [quote] You will modify your program to allow the user to enter their move as strings of “paper”, “rock”, and “scissors”. Modify how the computer’s move is stored such that it is also a string of either … Software Development c++ | |
what is %r mean? [code=python] "%r tag requires exactly two arguments" % token.contents.split()[0] [/code] Software Development python | |
Is there a way to limit size of a list in Python, so it does not use all memory? Software Development python | |
I am having issues getting this function to work. This is a currency conversion program that gives the user choices of input of three other currencies other than USD and converts it. It is supposed to be a value returning function, not a void function. The program compiles, runs fine, … Software Development c++ | |
this is my current code: [code] #include <iostream> using namespace std; void celsius(double); //Main int main() { cout << "Now displaying the first 20 fahrenheit temperatures and\n" << "showing the Celsius equivalent.\n"; //Loop for displaying the table for (int couter = 0; couter <= 20; couter++) celsius(couter); return 0; } … Software Development c++ | |
This is what I've got so far: [CODE] #include <iomanip> #include <cmath> #include <fstream> #include<string> #include<iostream> using namespace std; int main() { double numA=0; double numB=0; double productB; double accumulator = 0; cout<<"Your two numbers to multiply are?"<<endl; cin>>numA>>numB; double productA = (numA * numB); if (numA>numB||numA%2==1)//check if larger and … | |
hi everyone, i'm new to programming and will like to know how i can run my vb/access application on a server? Thanks for your contributions. Software Development visual-basic | |
hey guys im tryin to do a conversion program im trying to convert pounds to kilograms i input 10 pounds and 4 ounces and it gives me a total of 4.65 kilograms but i want to split that up so it says kilograms and grams so it would be like … Software Development c++ | |
hello .. after i write this program there's error i don't know why ? what's the wrong thing? [CODE]#include<iostream> using namespace std; class Account { private: int Acc_no ; double balance; public: void SetAccInfo() { cout<< " please enter your account number\n"; cin>> Acc_no ; cout<< " please enter your … Software Development c++ | |
![]() | hi guys how do you export your database to html format? my project goes like this: we built a simple music manager that adds, edits, deletes, searches and sorts records (that's track listings) excluding the multimedia part (i.e. play a track, etc.. our prof didn't require us to do that, … Software Development html-css java multimedia |
Hi, if we define a vector class, class vector { private: int size; int* array; ........... public: vector (int n=10); ......... } then we use it in main like this: int main() { const vector v(5); cout <<v(1) <<endl; return 0; } there's a problem with compiling this code, i … Software Development c++ | |
hello...can anybody add a code to this program to make this a memory resident program...please... [B]*sound progam* jmp input beat db 8 nota dw 3531 nota1 dw 3032 nota2 dw 4030 nota3 dw 2728 nota4 dw 2425 nota5 dw 2023 nota6 dw 1520 nota7 dw 1313 music: mov si,0 balik_sound: … Software Development assembly | |
I am creating a c++ class which randomly puts a number of particles on a lattice and then lets those particles jump on the lattice in a random fashion. I have managed to implement this, but using the random number generators rand(), which I understand is not a very good … Software Development c++ | |
Hello - I am working on one of my labs, but I am having difficulty with the results being inconsistent. The passing by reference is working. I tested random data and I don't understand why some works and others produces incorrect results. Data tested: 5, 9, 7 = perimeter of … Software Development c++ | |
I'm pretty new to C#, but I've used winsock in VB a lot in the past, anyways, the problem is, I can't get .GetData to work. [CODE]private void axWinsock1_DataArrival(object sender, AxMSWinsockLib.DMSWinsockControlEvents_DataArrivalEvent e) { string R_DATA; axWinsock1.GetData(R_DATA); }[/CODE] Gives error: 'Cannot convert string to ref object' Or [CODE] private void axWinsock1_DataArrival(object … | |
Can someone tell me what is the different between default_age and self.default_age? Only one default_age variable is created for all instance of class Student and self.default_age means very instances of class Student gets a variable default_age? How do you specify a static class(singleton class) in python? [code=python] class Student: default_age … Software Development python | |
Hello there, I met a problem which is to update inputs in a text file, but every time I update is only insert the data, not update. May anyone give me some advises? Thanks~ [code] string input; ifstream fin; ofstream fout; string title,author,category; float price; fin.open("library.txt"); cout << "******Update Book******"<<endl; … | |
>>i have defined a stack class using single linked list and a template. as follow: template <class T> class genStack{ public: void push(T a){.....} T pop(){........} .... .... private: SLList<T>: lst; } i know when i want the stack to store int, i should declare a stack like this: genStack<int> … Software Development c++ linked-list | |
i have load two data files into a mysql table.now i want the compare the data from these two files (i.e want to compare a particular column of the table and want to get the difference between the values from these two files). i dont know how to do this.can … Software Development visual-basic | |
Okay, I got abotu 5 problems solved today and I am on the hardest part! Basically my code ask the user to enter series of random numbers and then use sentinel to mark the end of numbers needed to be entered. Now I want to be able to tell my … Software Development c++ | |
[code] #include <iostream.h> int main(void){ int base; char num; cout<< "Enter a base: "; cin >> base; while((base>=2)&&(base<=10)){ } cin>>num; while((num-'0') < (base)) && (c>='0'){ base>=base*2+(num-'0') cin.get>>num; } cout<<base; cin.putback>>num; return 0; } [/code] Clearly, this program doesn't work very well. I am in need of help. The teacher really … Software Development c++ | |
Hiya! I've got a problem writing GUI's. Basically the design portion in code. What I've done is I've broken the GUI components into seperate classes, for example: [code] //custom menu bar public class MyMenuBar extends JMenuBar { ... } //custom generic menu. all //look-and-feel is set //here i.e. fonts etc … | |
![]() | Yeah, just wonderin how many of you guys are using dotnet 3.0. If you are, what is it like etc? Can you use it with the express versions? Software Development |
I'm trying to create a Cash register that accepts euros. I don't even know where to begin. So far I have: public class Coin { public Coin() { name = " "; value = 0; } public Coin(String n, int v) { name = n; value = v; } public … Software Development java | |
Dear all gurus, Given 30 files, with same format (2 columns, column1 is string and column2 is int. contains thousands of lines) and uniform file name, eg: file1.txt, file2.txt,...,file30.txt, How can i read it in a loop, and then load them into my 2D array (eg: string words [filesize][maxline], and … | |
Hi all. I'm a newbie to this forum so please forgive the odd question as first post... :-) I'm writing myself a [B]property[/B] class (just because I want to play with them). My property header looks something like this (all the usual clutter is removed): [code]#define property_readwrite( c, v, r, … Software Development c++ | |
How can I enlarge the size of the letters that will appear in a pictures box? Software Development visual-basic | |
I am having trouble figuring out how to get my non recursive quicksort program to finish sorting. Here is my code [code] #include<iostream> using namespace std; /** * Swaps two items * * @pre x and y are the items being swapped * @post Contents of actual locations that x … | |
hey all, still very new, i'm trying to create an array and then get an average of the numbers. this is for a class of mine and a friend says i'm close but the book doesnt really give any further help. can you tell me where i'm going wrong? mucho … Software Development java | |
My assignment is: "Write a program that accepts the letter grades for a student, calculates the student's gpa, and prints it out, along with one of the following five messages: Eligible Ineligible, taking less than 4 classes Ineligible, gpa below 2.0 Ineligible, gpa above 2.0 but has F grade (note: … Software Development java java-swing | |
Hi Everybody, I was wondering if someone could help me figure out what is wrong with this part of my program. My program is a fraction calculator, and I'm wondering if the code I have is ok and if it will display correctly. Thanks much!! Also should I add a … Software Development java | |
Hi, I was just learning about buffer overflow attacks... I was curious as to how to generate a simple shellcode. For example, I've written two codes - One is the typical program that has a vulnerability inside and the other is the shellcode. main program: [code] void test(); int main() … Software Development assembly | |
I'm having problem with storing values in multi dimensional arrays. I need to have 10 * 10 array with rows and columns. I have intitialized the array with blank spaces " ". But after this I need to store letters like 'A' 'C' 'S' on specific locations in that array. … Software Development c | |
This is my first time working with outputting data to a file, so I've got some rough code that I need some pointers on. [code=cpp] else if (decision == "S" || decision == "s"){ cout << "File name? " <<"("<<filename<<")"<< endl; cin >> newfile; if (newfile == '/0'){ outdata.open("filename"); for … Software Development c++ | |
Hey guys, Im a beginner in programming...so please bare with me. my project is to create a simple calculator program with a twist. the user needs to input 3 variables which is 1st number, 2nd number and the operator(+ - * /). but when the user wants a square root … Software Development c++ | |
Hi all, I have been trying to drop a stored proc for sometime using SMO. I can create with ease but can't seem to drop. Any ideas? I thought it might be permission but for testing used SA account. No luck... [CODE] private void btnCreate_Click_1(object sender, EventArgs e) { SqlConnection … | |
Hi, I am converting a given html document into a tree structure and displaying it using JTree and DefaultMutable classes. By using the html parser and the JTree functionality, I can display the html doc as tree structure, but now I would like to get the subtrees only of that … Software Development java | |
Hello, I am trying to pull the relationships from an Access database. I would like to know which fields have what type of relation with other tables in the database. Does anyone know how to do this? Thanks, Ben Software Development vb.net | |
ok, i need a way to make an invoice. i have a products table with the number the name and the price of all my products and need to add only the products I want on the report, not all of them but more than 1 ...... Software Development visual-basic | |
I getting the following errors.. please help .. below is error i get and below that is the file that the error is refferring to [code] E:\JAVA\Java Files\lab employee\FullTimeEmployee.java:22: cannot find symbol symbol : class DateComponent location: class FullTimeEmployee DateComponent dc = new DateComponent(date); ^ E:\JAVA\Java Files\lab employee\FullTimeEmployee.java:22: cannot find … Software Development java | |
Im trying to compile this code, but I keep getting a compile error: [B]'(' or '[' Expected[/B] What am I doing wrong? Thanks in advance [CODE] public class Postfix { public static void main(String[] args) { Stack<Integer> stack = new Stack<Integer>(); ------> HERE while (!StdIn.isEmpty()) { String s = StdIn.readString(); … Software Development java | |
Hi! can u plz tell me what is the code for setting the focus to a checkbox in vb.net 2003 project. How is this possible? I have tried checkbox1.setfocus=true but itdoes not work. Secondly, I wish to fire the click event for a button when I press the enter key. … Software Development vb.net | |
ive posted this messge in 3 other forums, i hope i get a better response here. the following code has a button that removes the selected row from the grid. reset index, is what i am going to use so that the first column is always secquential, so all rows … Software Development visual-basic | |
Hi all I am trying to compile some of the snippets on this site and only some of them work and I was thinknig wether its because I have a different version of .NET framwork installed would this affect it? I have V1.1 2.0 3.0 3.5 All installed on 1 … Software Development | |
Hi all, When RUN the Project that erros apears : [COLOR="red"]"Application.java": cannot find symbol; symbol : class FirstWorld, location: class Application at line 3, column 7[/COLOR] [COLOR="red"]"Application.java": cannot find symbol; symbol : class FirstWorld, location: class Application at line 3, column 30[/COLOR] Please help me .. Thanks..:) Software Development java | |
I didn't want to fill up a thread with a bunch of code, but I couldn't find a way to attach a file to an e-mail using this site's "send a message" system. I would have inserted the .CPP file. This is a basic windows program to run tests on … Software Development c++ | |
Hello Everybody. I am trying to write a program that asks the user to enter the amount of dice they want to use, and how many rolls they would like to make. Eventually I will need to store the output in strings, so I can print out how many times … Software Development java | |
hello i'm new here but i have made a little python calculator and was wondering, if i wanted to give a copy to my friend how would i change it from a python file to a umm .zip(just an example) file where my friend can just unzip it and use … Software Development python | |
I'm new to C++ graphics, and a friend tipped me off to OpenGL. I'm currently trying to work with the GL Utility Toolkit ([INLINECODE]#include gl\glut.h[/INLINECODE]), which I had to download from the web. Due to all the download sites being intended for people with older versions of Windows (I think), … |
The End.