132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Bulls2012

[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++
Member Avatar for ragedsparrow
0
377
Member Avatar for kwins

[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
Member Avatar for NormR1
0
217
Member Avatar for Buffalo101

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
Member Avatar for Buffalo101
0
166
Member Avatar for NickPatton

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
Member Avatar for NickPatton
0
275
Member Avatar for nethero

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 …

Member Avatar for nethero
0
245
Member Avatar for kwins

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
0
287
Member Avatar for tatarao25

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
Member Avatar for Momerath
0
286
Member Avatar for bennywt

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
Member Avatar for njul1
0
528
Member Avatar for leo88

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
Member Avatar for leo88
0
218
Member Avatar for Avrajit

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
Member Avatar for Avrajit
0
643
Member Avatar for hirenpatel53

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
Member Avatar for hirenpatel53
0
147
Member Avatar for virendra_sharma

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
Member Avatar for abelLazm
0
158
Member Avatar for mattloto

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++
Member Avatar for mike_2000_17
0
137
Member Avatar for music613

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
Member Avatar for abelLazm
0
308
Member Avatar for duonglg

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
Member Avatar for duonglg
0
134
Member Avatar for ctrlaltcasper

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++
Member Avatar for Ancient Dragon
0
225
Member Avatar for Ahmed sunny

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++
Member Avatar for predator78
0
388
Member Avatar for weblover

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
Member Avatar for TrustyTony
0
180
Member Avatar for pseudorandom21

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
Member Avatar for pseudorandom21
0
106
Member Avatar for [V]

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 …

Software Development python regex
Member Avatar for Lardmeister
0
209
Member Avatar for Labdabeta

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
Member Avatar for Labdabeta
0
176
Member Avatar for sofiastrange

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
Member Avatar for drkybelk
0
278
Member Avatar for Uzair Malik

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++
Member Avatar for predator78
0
288
Member Avatar for virusisfound

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
Member Avatar for virusisfound
0
199
Member Avatar for Labdabeta

How can I send an email through C++. I need to make the following: [CODE]bool SendMail(char* from, char* to, char* title, char* msg) { //What now? //Return true on success, false otherwise }[/CODE]

Software Development c++ email
Member Avatar for Labdabeta
0
130
Member Avatar for galhajaj

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
Member Avatar for ddanbe
0
177
Member Avatar for lexusdominus

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
Member Avatar for WaltP
0
147
Member Avatar for n3red

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
Member Avatar for griswolf
0
364
Member Avatar for samreen36

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
Member Avatar for skatamatic
0
205
Member Avatar for Smartflight

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++
Member Avatar for mike_2000_17
0
118
Member Avatar for egmik3

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
Member Avatar for gunasek12
0
7K
Member Avatar for jemz

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 …

Software Development java mysql
Member Avatar for jemz
0
97
Member Avatar for noormoon

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++
Member Avatar for noormoon
0
98
Member Avatar for Simplicity.

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
Member Avatar for Simplicity.
0
448
Member Avatar for harinath_2007

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 ..

Software Development java video
Member Avatar for JamesCherrill
0
624
Member Avatar for jmurph333

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
Member Avatar for jmurph333
0
131
Member Avatar for weblover

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
Member Avatar for ddanbe
0
1K
Member Avatar for yashsaxena

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
Member Avatar for WaltP
0
1K
Member Avatar for darkdai

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
Member Avatar for Narue
0
113
Member Avatar for jwala

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
Member Avatar for \007
0
100
Member Avatar for mohannad2004r

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
Member Avatar for Luc001
0
172
Member Avatar for Sandhya212

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 …

Software Development c c# c++
Member Avatar for Sandhya212
0
233
Member Avatar for pdwivedi

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++
Member Avatar for Caligulaminus
0
116
Member Avatar for MooGeek

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
Member Avatar for Luc001
0
114
Member Avatar for apanimesh061

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#
Member Avatar for cshgurunot
0
91
Member Avatar for 123priya

[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++
Member Avatar for tkud
0
95
Member Avatar for Adil_

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++
Member Avatar for asasasasasa
0
161
Member Avatar for rminator

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
Member Avatar for peter_budo
0
106
Member Avatar for vincezed

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
Member Avatar for ChrisHunter
0
184
Member Avatar for ocramferreira

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 …

Software Development c++ seo
Member Avatar for iamthwee
0
572

The End.