132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for emitremmit

I am having problems with my program to add and multiply two 4 bit binary numbers. The part in which I am currently having trouble is when I run the program the output for the addition function is not correct. Instead of displaying the correct answer it is just displaying …

Software Development c++ oop
Member Avatar for emitremmit
0
277
Member Avatar for mc3330418

I have a text file with names, wins, losse. I have to take those in a write a function to find the average, and a function to sort the names in alphabetical order. I finally got everything into arrays but I cant do anything else. I don't think I'm understanding …

Software Development c++
Member Avatar for Ancient Dragon
0
132
Member Avatar for santakdalai90

I am a beginner in java. I wrote the following code in netbeans. [ICODE] /* * To change this template, choose Tools | Templates * and open the template in the editor. */ package sanfile; import java.io.*; /** * * @author santak */ public class SanFile { /** * @param …

Software Development file-system java java-netbeans
Member Avatar for santakdalai90
0
139
Member Avatar for rockout15

how can i pass a database value to a textbox if i click a button.. should i use a query statement..? what kind? help pls ...

Software Development
Member Avatar for rockout15
0
77
Member Avatar for venkat4krish

Actually i got the source code form official website but its looking like latin & greek !!!! So in order to understand the source code !! from where should i start ???? how can understand where to begin with and go on to end..... provided i have the knowledge of …

Software Development c
Member Avatar for zeroliken
0
235
Member Avatar for Amiet Mhaske

Hello guys, I am new to vb programming. Can anyone tell me how to access command button of one form onto another? I have one mdiParent form on which i have command button "PRINT" and "Add New Client", I want to disable Print button, when i clicked on "Add New …

Software Development gui microsoft-access visual-basic
Member Avatar for Amiet Mhaske
0
177
Member Avatar for Hiiero

I am currently trying to create a list of skills and each list of skills generates 3 to 10 skills to put in the list and then randomly generates the skills that it places in that list. But I don't want skills repeating,meaning if I have 8 skills going in …

Software Development c++
Member Avatar for Hiiero
0
147
Member Avatar for Ahsan_1

hi ... i want to send mms from pc. and using jmmslib .....but here i have problem in jwap conection with mobile phone .... it timeout error .... how to make connection using Jwap ....?? what should else i need to get this ....? what steps should i do ..... …

Software Development java
Member Avatar for Rahmat1990
0
193
Member Avatar for kjs5533

Yo guys! How's it going? To give you a quick gist of my goals : I want to allow the user to enter a bunch of criteria for a book (title, author, etc) so I made a structure. Then I store that structure in an array so they can enter …

Software Development c++ data-structure
Member Avatar for pseudorandom21
0
460
Member Avatar for SakuraPink

Hi everyone, I am trying to write a shell script in which my variables take their values from a text file. The text file looks like the following: [CODE][0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,..,19][/CODE] One can say it is a large file so what I need to do is to write: [CODE]variabledin = [0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,2,2,2,2,2,2,2,2,2,3,3,3,3,3,3,3,3,3,..,19][/CODE] In …

Software Development file-system shell-scripting
Member Avatar for SakuraPink
0
240
Member Avatar for zaneulhaq

Hey guys, what i'm basically trying to do in this code is to write an array which is automatically written to a txt file in the order I have shown below, however, I not only get this error [code] --------------------Configuration: testmtl - Win32 Debug-------------------- Linking... LIBCD.lib(crt0.obj) : error LNK2001: unresolved …

Software Development c++
Member Avatar for Schol-R-LEA
0
267
Member Avatar for twinkle2011

Hi guys, after my "Calculator" was done with your help. I'm planning now to create a new program using Java a "Basketball, 24 shot clock timer" I can't imagine how to start or how I can make a Shot Clock Timer using Java. I need your best advice guys and …

Software Development java
Member Avatar for hfx642
0
541
Member Avatar for jeraldmuthu

[CODE] import java.sql.*; import javax.xml.parsers.*; import javax.xml.transform.*; import javax.xml.transform.dom.*; import javax.xml.transform.stream.*; import java.io.*; import javax.servlet.ServletException; import javax.servlet.ServletConfig; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletResponse; import javax.servlet.http.HttpServletRequest; public class MySer extends HttpServlet { public void init(ServletConfig config) throws ServletException { super.init(config); } public void doGet(HttpServletRequest req,HttpServletResponse res) throws ServletException,java.io.IOException { String xml; Connection conn …

Software Development file-stream java xml
Member Avatar for hfx642
0
236
Member Avatar for Jah-Jah

how do you write a program that converts a number entered in Roman numerals to decimal? The dicimal values of the roman numerals are M 1000 D 500 C 100 L 50 X 10 V 5 I 1

Software Development java
Member Avatar for hfx642
0
77
Member Avatar for eve_91

Hi, Basically I am working on a uni project but I am pretty new to Java. I've been trying to figure out how to do this for days now but just can't get it right. Really need to get it done as the deadline is approaching! I have 3 (large) …

Software Development java
Member Avatar for eve_91
0
4K
Member Avatar for gowans07

Hi, I'm creating a program and a feature i wish to include is for customer orders to be printed out. I've got this code below which will add in the relevant data and create the text file, but when i come to print it will include the standard &f header …

Software Development printer visual-basic
Member Avatar for gowans07
0
186
Member Avatar for eoop.org

hey, I have created two forms. in one form there is a panel, which is Form1: [CODE]Panel1.visibel = false;[/CODE] Form2: When the [CODE]WindowState == FormWindowState.Minimized[/CODE] then the panel1 in form1 needs to be visible, but how to do that ? :S Waleed Ahmed

Software Development c#
Member Avatar for vadriaan
0
337
Member Avatar for king_saqib

HI TO EVERY HELP ME! HOW CAN I CAPTURE DISPLAT (PRINT SVREEN IN VB BY USING VB CODE AND HOW I CAN SAVE I AS .png FORMATE PLEASE PLEASE HELP ME I WILL BE VERY THANKFUL OF YOU

Software Development display visual-basic
Member Avatar for gowans07
0
99
Member Avatar for coolbeanbob

Not sure I understand what is going on with setw(). [CODE] I would expect the program below to output something like this 77 77 77 77 Instead, it does this: 77 77 77 77 77 77[/CODE] Why are the first three 77's not indented? [CODE]#include "utility.h" // setw example #include …

Software Development c++
Member Avatar for Schol-R-LEA
0
226
Member Avatar for dress237935
Member Avatar for ranawaqar
0
210
Member Avatar for trubilo

Hello, there. I'm using Visual C#, creating a small game currently. After Graphics g = CreateGraphics(); g.DrawLine(new Pen(Color.White, 1), new Point(x, y), new Point(x, y); How do i delete that line?

Software Development c#
Member Avatar for trubilo
0
189
Member Avatar for Ntropy

Hello there java gang. I've written a program which basically checks the dates that i have written for the program in question and then validates it against a set of rules, using arrays to ensure that what a user enters is valid. So for example, you can have 1,(day) 5,(month), …

Software Development java
Member Avatar for JamesCherrill
0
239
Member Avatar for addision

Ugh! need help. Ok I am creating a form to calculate a conversion, actually one of 24 conversions to be decided by radio button. I placed the code to make the conversion under the "checkchanged" event of each of the radio buttons, turns out that's not a good idea as …

Software Development c++
Member Avatar for thines01
0
245
Member Avatar for jaxi

Tried to compile the following code and got these errors: [CODE]Course.java:43: incompatible types found : java.lang.String required: double double cStart = df.format(cStart); ^ Course.java:44: incompatible types found : java.lang.String required: double double cEnd = df.format(cEnd); ^ [/CODE] Here are my two classes: [CODE] import java.text.DecimalFormat; public class Course implements Comparable<Course>{ …

Software Development java
Member Avatar for jaxi
0
350
Member Avatar for behemothdave

Alright I have a school assignment I had to create a loop to accept grade percentages from 0 to 100 and it needs to give the average percentage and letter grade, this is what I have but it is not working correctly, it always gives an F and no percentage. …

Software Development
Member Avatar for ddanbe
0
108
Member Avatar for cool_zephyr

hello everyone..i'm trying to get a file in a server using a WebRequest..the server sends some headers saying "Transfer-Encoding :chunked"..what does this basically mean??? I'm using a BinaryReader to read the data..but after some few hundred bytes the transfer just stops..do i have to make a WebRequest again to get …

Software Development
Member Avatar for thines01
0
2K
Member Avatar for Andy90

Hello, I just started learning this wonderful language! but I m facing some difficulties, which I would like to share, and hope for some help from you guys. Yesterday while learning I created a program which gets the screen resolution of desktop and displays the form in top-center of screen. …

Software Development
Member Avatar for Andy90
0
191
Member Avatar for naveedqadri

Dear Experts, I am trying to get out put, as this is working fine on my local machine running on server 2003, 32 bit, BUT when i upload it to VPS with same specifications , it gives following errors. -System.ArgumentNullException: Value cannot be null. Parameter name: path at System.Web.HttpServerUtility.Execute(String path, …

Software Development asp.net html-css pdf session
Member Avatar for thines01
0
1K
Member Avatar for AceStryker

I need to create a KeyStroke encryption, i studied about it and the theory is this: [LIST] [*]Check the keystate before keyloggers do it [*]Cancel the action of the key [*]get the active window [*]Simulate a virtual key in this window [/LIST] I can make the last three items, but …

Software Development encryption pascal
Member Avatar for Morten Brendefu
0
217
Member Avatar for willleung9

I need help coding this in java: Write a class named GroceryList that represents a list of items to buy from the market, and another class named GroceryItemOrder that represents a request to purchase a particular item in a given quantity. The GroceryList should use an ArrayList of type GroceryItemOrder …

Software Development java
Member Avatar for thines01
0
6K
Member Avatar for skp03

what to do in order to get the same setting in the execution of the form which has been done during the previous execution of the form in VB.net

Software Development vb.net
Member Avatar for adam_k
0
428
Member Avatar for hszforu

today i was learning about jagged arrays.So i wrote the following code, i wanted to use foreach loop with it, but i am getting following error: Cannot convert type 'int[]' to 'int' on line 31. The code is as follows:[CODE]using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ArraysExplained { …

Software Development
Member Avatar for hszforu
0
274
Member Avatar for coolsport04

I understand the definition of canonical, but I need an example. For instance, what would the canonical form of the string [CODE]String s = new String("foobar");[/CODE] be? Thanks.

Software Development java
Member Avatar for gusano79
0
105
Member Avatar for rajatchak

[CODE] #include<iostream.h> #include<stdio.h> #include<fstream.h> #include<string.h> class qa { char question[35]; char option[4][20]; int ans; //correct option no (eg 0 1 2 3) public: void getques() { gets(question); cout<<endl; } void getopts() {cin>>option[0]>>option[1]>>option[2]>>option[3]; } void getans() { cin>>ans; } }; void main() { int n; qa q; fstream file1; file1.open("questions.dat",ios::out); cout<<"\n …

Software Development c++ ios
Member Avatar for rajatchak
0
216
Member Avatar for msmorsan

Hi I have a JTable applet that implements querys with MySQL, and i have a couple of classes in my program. I made it using ECLIPSE, and when i run it using this code: <body> <applet code="AconsultaMysql.class" archive="mysql-connector-java-5.1.17-bin.jar" width="900" height="300"> </applet> </body> </html> It is in a package called webconsultas …

Software Development java
Member Avatar for NormR1
0
325
Member Avatar for asuprem

This is for an extra credit assignment for class. Requirements I am having trouble with: 1. User enters number specifying numbers of integers 2. User enters integers 3. program will read them and parse. ---------------------------------------------------------- Here is a sample input and what the program should do: How many numbers: 5 …

Software Development c
Member Avatar for asuprem
0
625
Member Avatar for priyamtheone

I have inherited the standard panel control to create a panel having custom border color. The problem is, while the panel is on a form and any other form is moved across it, it paints hapazard lines of the same color as the panel custom border color, all throughout background …

Software Development asp.net vb.net visual-studio
Member Avatar for priyamtheone
0
811
Member Avatar for priyamtheone

I have a readonly datagridview that is bound to a datasource. It has two columns. Now I want the first column to have no cell borderstyle; and the second one to have 'All' (i.e. all sides of the cell shall have a border) as cell borderstyle. Before binding the datagridview …

Software Development asp.net vb.net visual-studio
Member Avatar for priyamtheone
0
4K
Member Avatar for behemothdave

Okay I have created a validation loop which addresses the user entering a number between 10 and 50, as long as it is within these parameters it is supposed to ask for another number. When it is out of these parameters the program should let the user know it is …

Software Development
Member Avatar for thines01
0
190
Member Avatar for riahc3

Hey AFAIK, you have to pay for Mono for Android so you cant write C# applications that run on Android. Is there any alternative?

Software Development android android-development c#
Member Avatar for riahc3
0
185
Member Avatar for Morten Brendefu

Dear knowledgeable ones. Some time ago I made a few of my routines kind of universal, and I wonder if there is any way in Delphi (My version is Delphi9) that can be used to reuse this code in example below. As you see, the two procedures are almost identical, …

Software Development delphi pascal
Member Avatar for pritaeas
0
284
Member Avatar for Sprewell184

Hi guys, I been working on a project that involves in managing a phone inventory for a company. So for this project we are to use classes. For the most part I got everything except two areas of code that I am having trouble with. I have two classes, Class …

Software Development python
Member Avatar for TrustyTony
0
132
Member Avatar for Diogo Martinho

Hello everyone. I'm having quite a rough time with my program because my code isnt just working [CODE]#include <string> #include <iostream> #include <string> #include <stdlib.h> #include <windows.h> using namespace std; #include "DBase.h" #include "Client.h" list <Client> l; DBase *example; int main (void) { string user= "my username"; string pass = …

Software Development c++
Member Avatar for Narue
0
275
Member Avatar for MylesDBaker

Dear all, I have a quick question about if-else-if control flow (you'd think by now these questions would be unnecessary, but here I am): If I was told to rewrite a function that looked like this (this is an exam question so I am not asking the exact question in …

Software Development c
Member Avatar for MylesDBaker
0
142
Member Avatar for sandeepau

Can someone help me on perl script for "how to sort flat file on third field & stored sorted output in the output flat file"? In this example - I have input file with unique key column (third field)& I want sorted output get stored in the output file. e.g. …

Software Development file-system perl
Member Avatar for sandeepau
0
868
Member Avatar for daniwaber

Hi:) I want to change the formatting of a rich text box's selected text with lines of different sizes. For example if I have written " [B]I code in VB[/B] " (any font, size 72, bold) on the first line and " [I]VB is easy[/I] " (any font, size 48, …

Software Development vb.net
Member Avatar for codeorder
0
331
Member Avatar for Kitson

Hi, I have data in the form: rpm Torque 1000 36 2000 40 3000 45 4000 50 . . I need to find the torque at a specific rpm. I found numpy.interp() which will give me a linear interpolation, but my tutor said it wouldn't be accurate enough. I found …

Software Development python
Member Avatar for Kitson
0
485
Member Avatar for airtoncbr

I've Just finished a program and it's taking various errors. Can you show me Where its wrong? [CODE]/******************************************************************** * Autor: Antônio Airton Cabral Neto * * Compilador: BC 3.1 Borland * * Ambiente: Tela de scroll do DOS * * Modelo de memoria: Small * * Data: 12/09 e 14/09 …

Software Development c++ linked-list
Member Avatar for airtoncbr
0
407
Member Avatar for chinee

this project is an order processing prograam for a flower shop Orders are checked to see how the payment is to be made. Orders may be prepaid or, if the customer has a good credit line, they must be invoiced. Credit must be refused if the customer has paid late …

Software Development java oop
Member Avatar for NormR1
0
341
Member Avatar for riahc3

Hey I was wondering how I could write a binary file in Java with code in C++ using the reinterpret_cast function. If I remember the line correctly (not currently at work) it was: [CODE] file.write=reinterpret_cast<char *(&x)>,sizeof x; [/CODE] with x being a variable. How can I do that in Java? …

Software Development c++ file-system ide java
Member Avatar for riahc3
0
939

The End.