132,726 Archived Topics
Remove Filter ![]() | |
[B][U]Write a class named Employee that has the following member variables:[/U][/B] [B]name:[/B] The name attribute holds an employee’s first and last name [B]idNumber: [/B] The idNumber attribute is a string variable that holds an employee’s ID number [B]department: [/B] The department attribute holds the name of the employee’s department [B]position:[/B] … Software Development c++ | |
[CODE]import javax.swing.*; import java.awt.*; import java.awt.event.ActionListener; import java.awt.event.ActionEvent; public class Absolute extends JFrame implements ActionListener //Error: Absolute is not abstract method actionPerformed(java.awt.event.ActionEvent) in java.awt.event.ActionListener { public JTextField textField1,textField2,textField3; public JLabel label1; String Operatn[] = {"Add","Mult","Divide","Sub"}; //Constructor public Absolute() { JFrame frame = new JFrame(); frame.setLayout(null); JLabel label1 = new JLabel … Software Development java java-swing | |
Hello, After completing my application, my teacher told me I can't use serialization. I currently send objects using the writeObject / readObject methods. What's the easiest way of transitioning from this to something else? I'm thinking: [code=java] in = new BufferedReader(new InputStreamReader(socket.getInputStream())); out = new PrintWriter(new BufferedWriter( new OutputStreamWriter( socket.getOutputStream())),true); … Software Development java | |
I'm using sockets in C to write 10 bytes to a socket and then read 10 bytes from that socket. I create a parent process that forks, creating a child that acts as the socket server that writes the 10 bytes. After the 10 bytes are wrote, back in the … Software Development c multithreading | |
Hi there, I'm kind of new to python and I'm trying to extract a protein sequence from this webpage... [url]http://www.ncbi.nlm.nih.gov/protein/BAH23558.1[/url] When I use urllib.urlopen the html it gets does not contain the sequence data. When I open this page in firefox and use firebug to look at the page I … Software Development data-structure html-amp html-css open-source python | |
I am a beginner in MIPS and we're given this assignment to write a programs in MIPS to convert binary string to decimal i do some research and I found some helpful information: TO convert a binary number to decimal Let X be a binary number, n digits in length, … Software Development assembly | |
I am using Mysql Database with C#. problem is i am using datediff() function returns int that value is stored in C# property int variable while assign giving error as cannot covert system.Int64 to System.Int32. please provide me some idea abut this error. Software Development | |
Hello, I am new to vb and I need some help from you all. I have to do a project which is interface an vane anemometer to computer by parallel port. I have done almost everything now i only left with the programme. My idea is the anemometer will give … Software Development visual-basic | |
hi, now I wants to insert some records into table in Microsoft Access and C#, below is my codes : [CODE] SQLStr = "Insert Into RegisterEmployee(EmployeeName,Password,Gender,ContactNumber,Position) " + "Values ('" + SQLStrCmd.ReplaceStr(nameReg.Text) + "', '" + SQLStrCmd.ReplaceStr(passReg.Text) + "', '" + SQLStrCmd.ReplaceStr(genReg.Text) + "', '" + SQLStrCmd.ReplaceStr(Hptxt.Text) + "', '" … Software Development microsoft-access sql | |
Hi, I am unable to run my c# application on a different computer other than my own computer. I have an attached mdf database file in my project. I have 'SQL SERVER 2008' as pre-requisite in the setup project. The application is installing & running fine on my machine, but … Software Development sql user-interface | |
hi all i am creating a software which is used by the textile company into that i want to create a barcode system like it can be created by the combination of product code ,size and Colour so anynody have idea about this Please help me on this topic i … Software Development | |
Hi frnz , i want to indert , update , delete and search data in .csv file . data like record first name, last name, phone no , email-id . Software Development | |
I'm trying to make a calculator that parses input like [TEX]( 3 + 2 ) * 5[/TEX] I want to use formal grammar for this, and I'm wondering how to organize this. I was thinking having a class for Value, which would basically just be a number. Then I want … Software Development c++ | |
I need to tackle the question of threading in Visual C# application development. In its most basic use, I will need to "branch out" to SQL SPs (for example), but need to be able to inform the user that "I'm doing something" - such as the following outline: 1- user … Software Development c# multithreading sql | |
i have 2 column PRICE and PAYMENT in Datagrid when i change value of 1 any cell in this Datagrid, other cells also change the value. Example: PRICE | PAYMENT 100 | 80 | 20 | 10 | 10 | 5 | Note: Row2.cells[0] = row1.cells[0] - row1.cells[1] similar: row3.cells[0] … Software Development | |
Ok this is my situation I have this header file: [CODE]struct dir { char name[3]; int root_dir; int has_children; int num_children; int offset_to_children[2]; int offset_to_files[16]; }; struct files { char name[5]; int size; int offset_to_beginning; int has_fragment; int next_fragment; }; struct fat { int files; int dirs; struct dir *dir_array; … Software Development c++ | |
hello.. [COLOR="Red"]i need code for finding all possible combination of repetitive characters using recursion function.[/COLOR] actually the question i s "Imagine a robot sitting on upper left corner of NxN grid. the robot can only move in two direction "Right" and "Down". write a recursive function to find all possible … Software Development c++ | |
Hello all, i was working on an R script that will read a huge text file and make some calculation inside it, but i figured out that it will need long time to do the job , so i'm trying to convert it into python. is there any way to … Software Development python | |
I wanted to minimize changes to code in my save-file function by only making changes in the class that will be saved. Instead of making a "save-file" function in the class, I decided to try making it serializable but I receive a runtime error saying "PublicKeyToken=null" not marked as serializable. … Software Development | |
I have a string that looks like: IiiiiiiiiiiHHHHHHHHHHHHHHHHHHHHHHHHHooooooooooooooooHHHHHHHHHHHHHHHHHHHHiiiiiiiiiiiiiiiiiiHHHHHHHHHHHHHHHHHHHHHHHHHooooooooooooooooHHHHHHHHHHHHHHHHHHHHHHHHHiiiiiiiiiiiiHHHHHHHHHHHHHHHHHHHHoooooooooooooooOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOooooHHHHHHHHHHHHHHHHHHHHHHHHHiiiiiiiiiiiiiiiiiiHHHHHHHHHHHHHHHHHHHHooooooooooooooooooooooHHHHHHHHHHHHHHHHHHHHHHHHHiiiiiiiiiiiiHHHHHHHHHHHHHHHHHHHHHHHHHooooooooooooooooooooooHHHHHHHHHHHHHHHHHHHHi I want to to capture all the segments that have H's in them and return their respective start & stop string positions. [CODE] tms = re.compile("H+") print tms.findall(string) [/CODE] This will find all the Hs but I cant get the string positions … | |
I have the following working fine from the command line: [CODE] telnet (my email smtp) 25 helo mail from:(my email address) rcpt to:(my email address) DATA SUBJECT:(my subject) (my message) . [/CODE] This is sending me an email. My problem is that I need to emulate all of this from … Software Development shell-scripting | |
Hello everyone, i have written a program in c++ using Microsoft visual studio which runs perfectly, at least to my satisfaction. However i thought it would be nice to create a graphical user interface to it, and i have used Ms Visual C++ to design one and Visual c++ can … Software Development c++ user-interface visual-studio | |
can some one tell me a prog of making different combinations using recursion in c/c++ and it should also be a function Software Development c++ | |
I want to pass multiple select queary to datareader. how to do it. I know how to pass queary for one condition : [CODE] SqlConnection cn = new SqlConnection(); cn.ConnectionString = ""; cn.Open(); SqlCommand cmd = new SqlCommand(); SqlDataReader rdr; string s = "select * from abc where id like@find"; … Software Development | |
Hello! i am new in C# and i am trying to make a simple chess game but i need to clearify some things i guess... i understand how to add components to the Form1 with code - in my example i manage to add 8X8 squares class that inherit from … Software Development | |
Hey, does anyone know which function/s i need to use to copy a file from one subdirectory to another, without changing the name? im on windows if that helps. Software Development c++ file-system | |
Hi, i am still learning i want to make a simple shell script. I wish to make a function that will receive 2 arguments (two dates) and will return all users who logged in during that period, how many times and how long were they logged in. I wish to … Software Development ruby shell-scripting | |
hello i am making a project shape detection i started in c# but i have to face alot of problem in it. Infact i am working on background subtraction till last 4 weeks kindly help me it is better to make in c# or matlab? i have no idea about … Software Development image | |
![]() | Ok, I received an assignment today, and we have our weekly test tomorrow. I was going through the 25 questions, and this is my first problem... The question is as follows: Write a program to keep count of created objects for a class. Make suitable assumptions. For example, in the … Software Development c++ |
I am a noob at shell scripting and have been reading up on this topic in random google searches. The only way that I saw that worked was creating a tmpfile. IE: [CODE] crontab -l > $tmpfile edit $tmpfile crontab $tmpfile rm $tmpfile [/CODE] I need a script that will … Software Development shell-scripting | |
Hello can you help me please, Hi,.I Downloaded the Mysql community server and i installed it to my windows xp.The problem is i don't know how to set up the database.I want to use this in my program because i have never been using Mysql as my database i always … | |
Hi every one, in fact need helps very quicly, I have project system have to use c++ program but i dont know how to include file in program to read and write. I will put my soluation to help me some one and the question, to know the person who … Software Development c++ | |
I've tried to make the code below to solve one of the Euler equation for the Gas Dynamics. I understand my code is not perfect, that is why I'm getting an error which I don't understand. The error message is: " File "eulersys.py", line 50, in <module> u_data = Evolve_in_One_Timestep(u_data) … Software Development python | |
Hello.. I am in search of how to play a video in full screen java application. I already know how to play a video using the JMF. but i want to play the video in full screen desktop java applicaton .. | |
I use a Form to gather Input from the user, and my program needs to format the info and show it in a Text Box. Everything works except 2 of my variables need to look like this in the output: "variable". The problem is that I can't find a way … Software Development | |
Hello all, i have a text file that contain data like this: [CODE] 1 0.3232 0.361 0.5214 0.233 -0.7678 2 0.3451 0.321 0.134 0.224 -0.706268 3 0.3123 0.351 0.155 0.523 -0.70626 4 0.36 0.312 0.216 0.233 -0.6453351 5 0.269 0.3331 0.162 0.224 -0.584962 [/CODE] i did this using [CODE]string[] data … Software Development | |
Hello All I want to accept the string from user till he press "enter" key. For that I used gets() function on Windows. But the same program not run on Linux. Can any one tell me alternative for this function? Software Development c | |
hi all, i have a code which searches for a string in a file, the searching works well except that it will only return that the string is found if it is the first word in the file, otherwise it will return not found. help me please [CODE] #include<stdio.h> #include<string.h> … Software Development c file-system | |
hello i am a computer engineering student...i want to do my mior project in java...i was thinking to do a project in "image processing + viewer" ....do u think java is an appropriate language for making a "image processor" ??? please help if u have any reference projects ,books or … Software Development engineering java | |
HI can some one Help in my graduation project im making database access connection this is my class ___________________________ Imports System.Data.OleDb Public Class DataBaseConn Dim conn As New OleDbConnection Dim comm As New OleDbCommand Dim s As String = "Provider=Microsoft.Jet.OLEDB.4.0;Data [COLOR="Red"]Source=D:\G-project Crab\GP\GP\Database1-2.mdb"[/COLOR] Sub adconn() conn.ConnectionString = s conn.Open() End Sub … Software Development microsoft-access open-source vb.net | |
Hi, I need to find the 'length' of union between 2 vectors. The code I have is[CODE] vector<int> v1,v2; vector<int> unionsetv; vector<int>::iterator it; v1.push_back(1);v1.push_back(2);v1.push_back(3); v2.push_back(3);v2.push_back(2);v2.push_back(4); it = set_union(v1.begin(),v1.end(),v2.begin(),v2.end(),back_inserter(unionsetv)); cout << unionsetv.size()<< " "; cout << int(it - unionsetv.begin())<< " " ; [/CODE] I could not get this to work and … | |
Can any body suggest me how can I free the dynamic memory in the given code [CODE]int fun(CString qry, CStringList *List,int n) { using namespace std; string sqlStmt = qry; int i; this->stmt = this->conn->createStatement (sqlStmt); ResultSet *rset = this->stmt->executeQuery (); string **oraRecordsStr=NULL; try { while (rset->next()) { if(oraRecordsStr == … Software Development c++ | |
Hi guys, I'm kinda new in VB.net. Do you guys know anything tutorials on how to database MSACCESS? I'd like it very very simple. but I want it to be [B][U]pure in Code[/U][/B] not like some Setup or something. a sample downloadable project will do! thanks! :D Software Development vb.net | |
What libraries do I require so that I can make an application for recording a sound through the microphone ? I there is something else please do let me know ..... 'cause there are code snippets available on the net .... but I wish to develop it myself ! Thanx … Software Development c# | |
[CODE]#include<iostream.h> void main() { void prn(int a); void prn(int a,int b); int x,y; cout<<”\n enter a number”; cin>>x; prn(x); cout<<”\n enter two numbers”; cin>>x>>y; prn(x,y); getch(); } void prn(int a) { cout<<a; return ; } void prn(int a,int b) { cout<<a<<b; return ; }[/CODE] Software Development c++ | |
Well, I'm not exactly an expert with C++, and I have been making a text RP for general use. I'm having some problems.[CODE]#include "Library.h" void main() { //welcome screen cout <<"####Welcome to Xe0n RP, part of the Xe0n project started by Adil\n"; cout <<"####Programmed in C++\n"; cout <<"####Currently in beta\n"; … Software Development c++ | |
Hello, I have a problem not far from the one quoted above, namely retrieving data from a text file containing the log file, and then come out the graphic representation. And so far my code is not working as it should, and I just can not seem to get them … Software Development | |
Hi all .. i have given this code in my project.. it is showing Access to the path 'C:\Documents and Settings' is denied. I dont know what is wrong.. this code works if i give the path different... can any help me... Thnaks vince [CODE] private void FileView() { TreeNode … Software Development | |
Hi all, well my problem isn't a practical problem. I have a project to do which is a word game.First of all i have a .txt (a dictionary) my program has to fetch a random word and shuffle it. With the combination of those letters the program has to find … ![]() |
The End.