132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Chocolataria

Hi, I'm a Perl newbie and I have a job to do, but I can't do that! I'm almost crying! =( Please, someone help me? This is my problem: I have a txt file like this Config.txt SourceIP = 10.1.1.1 SourceMAC = 00d0047203fc IPProtocol = 7 -------------------------------------------- Then I have …

Software Development file-system perl
Member Avatar for kanishkablack
0
453
Member Avatar for Instinctlol

Hi guys, I am looking for a way to check for error. I have an array of names. The user will enter a name and it will check the list for that name. If that make is not correct, it will go back and ask the user to try again …

Software Development c++
Member Avatar for Ancient Dragon
0
79
Member Avatar for T.Dott

Hey all, I have a problem with this particular piece of coding I have for my payroll system in Visual Basic 6. I am basically trying to calculate the wages of employee's by entering in the number of hours they have worked. The criteria of how much pay they receive …

Software Development visual-basic
Member Avatar for T.Dott
0
490
Member Avatar for Annettest

Hi everyone: I have written C++ code for populating a matrix/2D array with calculation results. Each column of the array represents results for a distinct time step. My problem arises because the rows of my results vector do NOT correspond to the rows of the matrix. The matrix includes extra …

Software Development c++ matrix-multiplication
Member Avatar for Annettest
0
106
Member Avatar for lionaneesh

[CODE] /* ** showip.c -- show IP addresses for a host given on the command line */ #include <stdio.h> #include <string.h> #include <sys/types.h> #include <sys/socket.h> #include <netdb.h> #include <arpa/inet.h> int main(int argc, char *argv[]) { struct addrinfo hints, *res, *p; int status; char ipstr[INET6_ADDRSTRLEN]; if (argc != 2) { fprintf(stderr,"usage: …

Software Development c linked-list
Member Avatar for jephthah
0
172
Member Avatar for naseerhaider

Hello Every one ! This program is producing some strange output as it is only generating x = 6 :(,can some through some light that why is it behaving like this ? [code] #include <iostream> #include <stdlib.h> using namespace std ; main () { // Random Number Program int num,x …

Software Development c++
Member Avatar for naseerhaider
0
168
Member Avatar for sneekula

I have a text I want to search for all it's upper case letters, then present these letters unique and sorted. I welcome any suggestions.

Software Development python
Member Avatar for twekberg
0
325
Member Avatar for nikc121

I have been working on this code for two weeks. I think I have it down to the last couple of lines ie funtion to call from main. But I just cant seem to get it.. Please help, due at midnight..ANd this is my first class so be gentle. :), …

Software Development c++
Member Avatar for WaltP
0
268
Member Avatar for ttboy04

Hello, For java interface, In one class I have the following code public class ObjectA { public void SampleA() { //do something 1 } public void SampleB((int aPosition) { // user enter some value } } I have another class which is not related to the other class, only interested …

Software Development java user-interface
Member Avatar for ttboy04
0
158
Member Avatar for gradstud

I'm having an issue with my code and after hours of time I can't figure out what I'm doing wrong. There are three classes (GUI, Judging, TestGUI). All programs compile correctly with no syntax errors. The GUI creates an interface that should compute (JButton) a total of 8 scores and …

Software Development gui java java-swing
Member Avatar for gradstud
0
324
Member Avatar for rmontgomery

Hiya, whnever I use this code, I get a File Not Found exception, even though the file paths are all correct. Any ideas? thanks [code] Dim WordReader As String = "C:\Program Files\Microsoft Office\Office10\WINWORD.exe" Dim HelpPath As String = "C:\Documents and Settings\Steven\Desktop\TPBData\Help.doc" Shell(WordReader & HelpPath & "" & AppWinStyle.MaximizedFocus) [/code]

Software Development microsoft-office vb.net
Member Avatar for kronald
0
195
Member Avatar for jms78888

[code]namespace Exam { public partial class Form1 : Form { public Form1() { InitializeComponent(); } Private void btnCalculate_Click (object sender, System.EvenArgs e) { try { If (IsValidData()); { int Numofyrs = Convert.ToInt32(txtnumYrs); Decimal discountRate = Convert.ToDecimal(txtDuiscountRate); Decimal yrlyCashFlow = Convert.ToDecimal(txtYrlyCashFlows); Decimal onetimecosts = Convert.ToDecimal(txtOneTimeCosts); Decimal yrlyrecurrcosts = Convert.ToDecimal(txtRecurCosts); npv = …

Software Development c#
Member Avatar for TheBlindSleuth
0
182
Member Avatar for loliana

hi i wana save the radioo button which user cheched to a file i wrote this code but it dosnt work... can anyone help to found the problem: [CODE] private void button1_Click(object sender, EventArgs e) { FileStream fs = new FileStream(Path1,FileMode.Append,FileAccess.Write); fs.Close(); StreamWriter Wr = new StreamWriter(Path1); if (radioButton1.Checked) { …

Software Development
Member Avatar for loliana
0
101
Member Avatar for sbrown2594

I have been working on a program in java which displays the different steps of sorting a list. My step() method updates the gui with the current iteration of the sort, and works fine when it is called from my button's action listener. My goal is to make an auto-step, …

Software Development gui java
Member Avatar for quuba
0
721
Member Avatar for luvthug

Hi All, I need help with try catch statement at the statement. for code `myChar = s.readLine().charAt(0);` I keep getting error: can't find variable myCar and s if te remove the whole try catch statment I get error: unreported exeception java.io.IOException; must be caught or declared to be thrown on …

Software Development java
Member Avatar for luvthug
0
134
Member Avatar for Twonk

I am trying to write a student database. I've done most of it, however to improve im trying to write something that will display the infomation entered and then ask if this is correct, if it is then continue if not then start back at the entering data part. here …

Software Development c++
Member Avatar for Joneswilliamsc
0
139
Member Avatar for Tvirusx1

I just can't seem to solve this. Heres what I want to do: I want my program to calculate movement, from one point to another. The function _updatepos is the main function, where I have troubles. It is supposed to, as the name says, update the position (posx and posy), …

Software Development c++ mathematics
Member Avatar for Tvirusx1
0
156
Member Avatar for onurozcelik

Hi everyone I have system that has classes derived from QGraphicsWidget. I manage derived class objects in layouts on QGraphicsScene. Now I need a compound item that contain two or more QGraphicsWidget in it and also I need to put that item inside my layout. So I choose QGraphicsItemGroup and …

Software Development c++ qt
Member Avatar for onurozcelik
0
203
Member Avatar for mbrinkley

I have been given an assignment to plan, code, and execute a program to calculate data about a person. I am not here asking about how to code the program, but rather to troubleshoot at what's wrong with my compiler/command prompt. Here's what's happening: I will code a program in …

Software Development c++
Member Avatar for mbrinkley
0
234
Member Avatar for khan17

hello all, i just searched via google and found a set of codes to login to a web site using httpwebrequest. but whenever i tried using the codes i got the very same exception that The remote server returned an error: (407) Proxy Authentication Required. one of the sample code …

Software Development web-server
Member Avatar for khan17
0
162
Member Avatar for emaduddeen

Greetings Everyone, Can you tell me how to take a query that returns a single row of data and load that data into textbox controls. I know about ExecuteScalar but it is only good for a single column of data from the query. Thanks. Truly, Emad

Software Development vb.net
Member Avatar for emaduddeen
0
67
Member Avatar for Anigmalee

[CODE] Dim myConnString As String = _ "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=|DataDirectory|\Userpass.mdb;Jet OLEDB:Database Password=1234567890" Dim ds As New DataSet() Dim con As New OleDb.OleDbConnection(myConnString) Dim daCust As New OleDb.OleDbDataAdapter("Select * From Userpass1", con) Dim m_dtContacts As New DataTable Dim m_datarow As DataRow Dim m_cbCommandBuilder As OleDb.OleDbCommandBuilder Private Sub Form5_Load(ByVal sender As System.Object, ByVal …

Software Development dataset open-source vb.net
Member Avatar for kvprajapati
0
138
Member Avatar for j4jawaid

I want to know that how to get attribute "class" of an html element using webbrowser component in C# .. Normally i am able to get any attribute (except class attribute) of any html tag. but this time i want to get attribute of "class" here is a sample html …

Software Development c# html-css
Member Avatar for Hallupa
0
871
Member Avatar for anchorjoe

I have a problem I am hoping someone might be able to help me with or point me in the right direction. I have been developing a program that simulates an irrigation pivot panel for my job and I am running into a problem when I close the compiled program. …

Software Development visual-basic
Member Avatar for AndreRet
0
118
Member Avatar for priyadarshani s

hellow i am a new user here so plse can u give me some information about vb project.

Software Development visual-basic
Member Avatar for AndreRet
0
89
Member Avatar for DRxACULA

Problem: I need to create a 2-arg constructor to do the following --> 2-arg constructor that accepts a RetailItem object as an argument that is used to initialize the retailCost attribute. The 2-arg constructor is created in the CashRegister class. here are my classes so far: ------------------------------------------------------- [code]/* * Retailitem …

Software Development java
Member Avatar for javaAddict
0
191
Member Avatar for dbphydb

Hi, i am basically from QA. So what we do each morning is open a web browser with the address [url]http://11.12.13.27:8080/cruisecontrol[/url]. Then we click on the build with last nights date. Then we click on a folder say client. Then in that folder we click on an exe file say …

Member Avatar for Udai02
0
5K
Member Avatar for albert1901

Hi everyone, I have a system where a user can order some predefined items. To do this, I have been using a switch statement, e.g: [CODE] System.out.println("Product?"); System.out.println("\n1. Chair\n2. Table\n3. Desk\n4. Other"); int sel = 0; sel = console.nextInt(); switch(sel){ case 1: <code> case 2: <code> case 3: <code> [/CODE] …

Software Development java
Member Avatar for sennat_26
0
144
Member Avatar for IdanS

Hi guys, I have built xsd for my xml. Everything is working ok, but now I need to add support to the XML that a specific attribute will be unique. The attribute that I need it to be unique is the "Id" attribute of the "Test" element, you can find …

Software Development xml
Member Avatar for IdanS
0
109
Member Avatar for jemz

hello, can you help me how can i put icon in my message box is it possible to put icon on message box.?...hoping for your positive responds...

Software Development visual-basic
Member Avatar for jemz
0
220
Member Avatar for ggingerf

hi all i'm trying to solve an exercise; there's an unaligned word, shifted 1/4 word right. it's address (where it should be if was stored correctly) is at register $s0. i'm interested in storing the word at register $t1 using aligned commands only. i tried; [CODE]lw $ta, $s0 sll $t1, …

Software Development assembly
Member Avatar for Salem
0
90
Member Avatar for naktos

Hello! I was writing a code and got an unexpected result, I broke it down in order to analyse it and in the end I have 8 rows of code. The problem I have is that I print x and it gives me the value 0.9 then if I say: …

Software Development python
Member Avatar for TrustyTony
0
115
Member Avatar for sajohnson05

Here is my code for a JDBC program to do account transfer. I am having trouble with my transfer code. Can anyone help. This is urgent. [CODE]import java.sql.*; /***************************************************** class BankAccountTransfer { /** Make a transfer from two accounts owned by same customer. * @param custNum the 6-digit customer number …

Software Development java oracle
Member Avatar for jwenting
0
128
Member Avatar for pharrill

I can not tell if my array is not working at all. Any help appreciated would be great! Here is the code: [code] Friend Class pizzaarray Structure Size Dim sizedecimal As Decimal Dim crustdecimal As Decimal End Structure 'Hold group number and total for 8 groups Private pizzaarray(7) As Array …

Software Development vb.net
Member Avatar for pharrill
0
91
Member Avatar for tbrambor

I am trying to get some data off a Brazilian government website. The data is accessible through a form with some javascript. I am able to get the form and fill it out, but have trouble submitting it (a button needs to be clicked). I am using the library mechanize …

Software Development javascript python web-browser
Member Avatar for tbrambor
0
4K
Member Avatar for DrueY

Hi Everyone, I'm working on a project in Visual C# that requires multiple tabs (similar to an internet browser). I was easy to implement the tabs, however Im unable to use the tab pages with a text box. The textbox is textBox1 and Ive got a lot of code connected …

Software Development c#
Member Avatar for kvprajapati
0
2K
Member Avatar for breakid

Hi, I created a class name -InterestedCompany.cs [CODE] namespace TestingProject { class InterestedCompany { string interests; public string Interests { get { return interests; } set { interests = value; } } } } [/CODE] I have one more class name - Student.cs [CODE] namespace TestingProject { class Student :Person …

Software Development
Member Avatar for kvprajapati
0
87
Member Avatar for Monster Killer

Hello. I am new to using databases in applications and i have a code to select data from the database. However, the first time the application starts, new data is inserted into the database which is needed after. But, the data does not appear until the whole application is restarted. …

Software Development dataset vb.net
Member Avatar for kvprajapati
0
136
Member Avatar for phummon

Hi everyone, I'm a moderately experienced C++ programmer and a network engineer. I’m having a weird problem with using an array of vector<char *>, which I’ve never tried to work with before. I’m working on a program which does the following: 1. Inputs and parses a file called [B]PREFIX_FILE[/B], which …

Software Development c++
Member Avatar for daviddoria
0
215
Member Avatar for leo1937ca

I have created a vb6 program that has 6 forms. I put the button files for all of the BMPs in a (1) Folder named ALL BMPs Form1 loads all the Forms after the the Splash screen exits. when running the vbp file every thing runs OK and the buttons …

Software Development visual-basic
Member Avatar for vb5prgrmr
0
1K
Member Avatar for RayRay1

My project is to create a polynomial with rational coeffients. I am stuck at this point with 2 error messages, one being "illegal indirection" in "function operato<<" . I think that my constructors are not correct. Deadline is fast-approaching. Any help would be appreciated. [code] class Polynomial { int *coeff; …

Software Development c++
Member Avatar for Lerner
0
679
Member Avatar for frozie

Ok i have now made a database and A Login in vb6 but how do i connect it to my database online ?

Software Development visual-basic
Member Avatar for vb5prgrmr
0
159
Member Avatar for BobTheLob

Okay, so i've been trying to get this code to work for quite some time, and i'm about to go bonkers. Hopefully y'all can help me out with this problem because I need to hand this one in soon. My problem is I need to make an array of objects. …

Software Development java
Member Avatar for moutanna
0
233
Member Avatar for enigmaYes

Hey guys. This is an assignment I've been given by my professor for a C++ course. The assignment description is below: [COLOR="Green"]Create a class ThreeDShape that has a default constructor and pure virtual functions double getSurfaceArea(), double getVolume() and void print(). Function getSurfaceArea() should compute and return the surface area …

Software Development c++ oop
Member Avatar for NathanOliver
0
246
Member Avatar for faaz

this program reads in a First name, middle name or initial, last name and then outputs the last name, first name then middle initial. The problem is when you don’t give a middle name or initial then the program output Is not correct. Look below for the output. The output …

Software Development c++
Member Avatar for NathanOliver
0
159
Member Avatar for schwarznavy

Hello! I've done some Googling about this, and many sites say that "hasing" is a better alternative than using a variable name with a variable name. I don't understand the concept of hashing, and what I'm trying to do seems small and insignifant, so I was hoping someone could help …

Software Development perl
Member Avatar for mitchems
0
108
Member Avatar for Sealunar

I am a beginner in programming, so bear with me. I keep getting an error for this code saying: error C2664: 'activity' : cannot convert parameter 1 from 'char' to 'client_activity []' I am testing here to see if my function will pass the array back to main() so that …

Software Development c++
Member Avatar for Lerner
0
107
Member Avatar for coding101

> Each user has a unique five-digit ID number.Whenever a user logs on, the users's ID,lab number,and the computer station number are transmitted to your system.For example,if the user 49193 logs onto station 2 in lab 3, then your sytem recieves(49193,2,3) as input data.Similarly,when a&Acirc;&nbsp;&Acirc;&nbsp;user > logs off a station,then …

Software Development c++
Member Avatar for Lerner
0
234
Member Avatar for Dhanish

hi guys......i need to write a C++ program to allow the user to store new albums in a text file, be ale to view all his records at any time, to delete any particular record in the text file, to search for a particular record n decrement the quantity in …

Software Development app-store c++ ios
Member Avatar for Lerner
0
140
Member Avatar for Umaid

[CODE]for (int I=-1; I<30; I++) { for (int J=0; J<30; J++) { for(int K=1; K<30; K++) { SELECT rowid,Month, Day, Advice from MainCategory where Month= 'May ' and Day in ((cast(strftime('%d',date('now','+(I) day')) as Integer)),(cast(strftime('%d',date('now','+(J) day')) as Integer)),(cast(strftime('%d',date('now','+(K) day')) as Integer))); } } } [/CODE] And for the same reason how …

Software Development
Member Avatar for ch_shoukat222
0
100

The End.