132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for VinC

I'm been working through my textbook and just can't seem to understand the section on covariant return types. ie) what are covariant return types, what they are used for, etc. The definition in the book is as follows. [QUOTE]An overridden method in a derived class can return a type derived …

Software Development java
Member Avatar for DavidKroukamp
0
158
Member Avatar for freedomflyer

I am trying to pass some url information into tokenize_urls from process_and_display_information. To get things up and running, I am simply trying to return and retain some array data from tokenize_urls into process_and_display information. However, I am running into an issue where the variables are created and sent back from …

Software Development c++
Member Avatar for Ancient Dragon
0
183
Member Avatar for Alex_2011

Hi, I am having a problem with the if statement that I created in my code. The condition should be: - Select Both Comboboxes (1&2) to print out a text in TextBox1 - If only One Combobox or No Combobox was selected, an error message appears and Nothing is printed …

Software Development vb.net visual-basic
Member Avatar for Alex_2011
0
3K
Member Avatar for sandeepau

Hello, Can someone tell me the equivalent perl script/command for following unix command: sort -t"|" -k1,1 -T '/temp' input.txt > output.txt Here, I want mention different physical directory for temprary sort file storage. like - T in unix shell command. In other word, How to mention different workspace directory in …

Software Development perl storage unix
Member Avatar for voidyman
0
407
Member Avatar for connect2abhi

Hi Can any one tell me how to call a subclass method from a superclass? For example: I have a class A,B and C. Now B and C extends A. So is there any way that we can call a method of B in A? Thanks Abhishek

Software Development java oop
Member Avatar for DavidKroukamp
0
13K
Member Avatar for chandrag

Hi all. Can i open the web page through perl? I get URL as a result in my perl code. but, ofcourse, it is displayed in command prompt as i'm using windows. I need that web page to be displayed directly. can i do it? i hope somebody can help …

Software Development perl
Member Avatar for creativesuri
0
714
Member Avatar for Atmos1234

Hello all, Im new to VB so go easy on me :-D Im trying to autofill a html form and all textboxes and textarea is working ok.. I now have a problem with a combobox1. I added the items below to the combobox1. So whenever i choose one of those …

Software Development html-css vb.net
Member Avatar for AndreRet
0
345
Member Avatar for enterpise

now i'm try to make the delete and successor method for BST in java[CODE]public void delete(BinarySearchTree<V> pointer) { // 1. The node is a leaf. // 2. The node has no left child. // 3. The node has no right child. // 4. The node has two children. BinarySearchTree<V> current …

Software Development java
Member Avatar for enterpise
0
156
Member Avatar for srm2010

Hi I have a datagridview in my winform application and I have 2events related to it. one is [COLOR="red"]Cellformatting[/COLOR] which is formatting a row in datagridview as per different values. and another is [COLOR="red"]UserdeletedRow[/COLOR] event which allows to delete a particular row. but there is a conflict as I have …

Software Development vb.net
Member Avatar for srm2010
0
188
Member Avatar for SyncMaster170

I am trying to publish this program. I rebuilt it, then hit publish. It starts, then at the end its throwing up 18 errors and they all look similar to the error below. About 15 of the other errors end in .dll.deploy. Ive never seen this type of error before …

Software Development visual-basic
Member Avatar for AndreRet
0
138
Member Avatar for MaxRevenge

[COLOR="Green"]yo evryone. class 11 kids submit a comp project as olevels paper 2. im a few years away from 11 but iwud love to make a project write noe n get an idea n so make an awsum one in 11 after this experience. buti dont hav any idea. i …

Software Development visual-basic
Member Avatar for AndreRet
0
630
Member Avatar for samidha

[code] #include<stdio.h> #include<conio.h> #include<string.h> #include<stdlib.h> #define M 20 #define hr printf("\n----------------------------"); #define br printf("\n"); int mptr=0,pptr=0,sptr=0; struct input_code { char lbl[M]; char instr[M]; char op1[M]; char op2[M]; }input[M]; struct opcode_table { int num; char name[M]; int code; struct opcode_table *chain; }mot[26],pot[26]; struct symbol_table { int num; char sym[M]; int addr; …

Software Development assembly c
0
149
Member Avatar for juce

Matrix given in memory to print the spiral in opposite direction from clockwise (left column down the right lower range, right up column, a series of upper left, etc. until you get to the middle) I'm new here, I have to write code for the task above in assembly,could someone …

Software Development assembly
Member Avatar for Hugo123007
0
2K
Member Avatar for pwolf

Create a function generateNumbers(num) that takes in a positive number as argument and returns a list of number from 0 to that number inclusive. Note: The function range(5) will return a list of number [0, 1, 2, 3, 4]. Examples [CODE] >>> generateNumber(1) [0, 1] >>> generateNumber(10) [0, 1, 2, …

Software Development programming-construct python
Member Avatar for TrustyTony
0
2K
Member Avatar for pwolf

the objective is to create a function to determine, from the three sides of a triangle, whether it is isosceles or not. I wrote the following code, yet its not very efficient, how could i have done this better? and is there anything wrong with this code? i tested it …

Software Development python
Member Avatar for TrustyTony
0
3K
Member Avatar for Joelx

I need to copy a certain line from a text document, this I have done by using a "key-word" in the document. My problem now is that I also want to copy the entire line below this specific line. Help is much appreciated as I am new with programming FILE …

Software Development python
Member Avatar for Joelx
0
181
Member Avatar for raj236712

i want to create shapes like circles,rectangles and others with the help of c language programming.basically i want to make the sign of matrix in my program.how can i do this?

Software Development c
Member Avatar for WaltP
0
585
Member Avatar for sharathg.satya

hi all i am facing a problem with the below code i used keylistener so that when i click letter 'v' the program has to exit. But the following code is not working. Help me please.. i think we should add listener to the code but how to add listener …

Software Development audio java
Member Avatar for stultuske
0
187
Member Avatar for moone009

Im trying to move all files from "C:\SSIS\Test1\" that are new than 2 days old to the C:\SSIS\Test\" but for some reason it keeps skipping over the if statement marked in red. Any help please. Very amateur programmer here! [CODE] Sub Text() Dim sDay As DateTime sDay = DateAdd(DateInterval.Day, -2, …

Software Development vb.net
Member Avatar for Teme64
0
200
Member Avatar for HadoukenGr

[CODE]#include<stdio.h> #include<string.h> void FindWord (char used[30] , char string[30] , int wordsize); char* CleanString (char string[30], int wordsize); int main (void) { FILE *fp; char letters[30]; char words[30]; char used[30]; char *string; int wordsize; int input_size; input_size = wordsize = 0; fp = fopen("dictionary.txt","r");/*contains a list of words in the …

Software Development c
Member Avatar for HadoukenGr
0
152
Member Avatar for Rizvi404

Am trying to BACKUP database in .bak format and when i compile it am getting [B]-2147221504 source file doesnt exist error [/B] can anybody please HELP.. Thanks in advance

Software Development visual-basic
Member Avatar for Rizvi404
0
297
Member Avatar for jbutardo

I have this OLEDB connection string connectionstring as string = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & _ data.toString & ";Extended Properties=""Excel 8.0;HDR=Yes;IMEX=2 I just want to know what is the meaning of HDR and IMEX, and what are their purpose on the connection string Thanks..

Software Development vb.net
Member Avatar for jbutardo
0
1K
Member Avatar for prathapsv3

Hi all, Check this code and please tell me a solution.I have 2 buttons (Pizza & pepsi),the price should display in textbox8 when i click on button, here the price had shown in Textbox8,but it is not getting added with next price when i click second button. [CODE] Private Sub …

Software Development vb.net
Member Avatar for lolafuertes
0
183
Member Avatar for newbie26

'why is that when i change something on one form, when i ran the program,the changes i made don't seem to take effect? example, i set a button's visibility to false, when i ran that form, the button still appears. even if i already saved it before running i already …

Software Development vb.net visual-studio
Member Avatar for newbie26
0
176
Member Avatar for Dorayaki

Hello, I have this code for sending and receiving file transfer using C#. But I don't know how to send the file name and save it as file name.. have tried many methods and googling too and still haven't found any clue. Here the client send file: [CODE]Stream Fs = …

Software Development client-server file-stream file-system
Member Avatar for Dorayaki
0
699
Member Avatar for mackieben04

I Having Problems with my program. I hope someone will help me with my problems. By the way, I need help regarding Going Back to Menu using Loop. Thank you very much! if you have seen any problems, please post your message. Thanks! [CODE]#include <stdio.h> void main() { float usd, …

Software Development c
Member Avatar for mackieben04
0
222
Member Avatar for weeraa

I know to work with VB.net + crystal report + SQL server. But now i want to work with SQL server compact edition instead of SQL server. When we creating Crystal report it is asked provider in one moment. If we work with SQL server we select "Microsoft OLE DB …

Software Development sql vb.net
Member Avatar for poojavb
0
284
Member Avatar for XeDK

I was wondering if someone could help me, im looking to make a program to check if an item is in stock on a website, but im not too sure about how to go about it. Any pointers?

Software Development vb.net
Member Avatar for ChrisPadgham
0
71
Member Avatar for uva1102

Hi everyone.. Problem: no space between each tables.Could anyone please advice.. solutions: here is the coding: protected void btnShow_Click(object sender, EventArgs e) { if (ddlMonth.Text != "") {d.Controls.Clear(); DateTime start = DateTime.Parse(ddlMonth.SelectedValue); DateTime end = start.AddMonths(1).Subtract(new TimeSpan(1, 0, 0, 0)); switch (ddlRecurr.Text) { #region Daily case "Daily":{ foreach (preventive p …

Software Development session
Member Avatar for uva1102
0
147
Member Avatar for Diogo Martinho

I made a function that would allow me to get the current date and put it on a string in YYYY.MM.DD format. [CODE]string Date::getCurrentDate(){ char datenew[8]; char currentdate[8]; string s; int size; _strdate(datenew); currentdate[0]=datenew[6]; currentdate[1]=datenew[7]; currentdate[2]=datenew[5]; currentdate[3]=datenew[0]; currentdate[4]=datenew[1]; currentdate[5]=datenew[2]; currentdate[6]=datenew[3]; currentdate[7]=datenew[4]; size=sizeof(currentdate); s.assign(currentdate,size); return s; }[/CODE] I keep getting a …

Software Development c++
Member Avatar for Diogo Martinho
0
113
Member Avatar for matharoo

Hi I am trying to write a script in Bash Shell. I have the file test.txt and has the following data: AIR DR [ 4] Pressure :50 AIR UR [ 3] Pressure :70 WATER DR [ 3] Pressure :90 [ 3] PIS: 402ps WATER UR [ 3] Pressure :110 [ …

Software Development file-system shell-scripting
Member Avatar for L7Sqr
0
328
Member Avatar for manpreet87

Hi, Each line of file contains a timestamp value(ex: 2012-01-16 14:43:23) which denotes the time at which a particular action was performed. I want to extract the logs for all the actions performed in the last 2 hours using awk. That is, where timestamp should greater currentTime - 2 hours …

Software Development shell-scripting
Member Avatar for L7Sqr
0
119
Member Avatar for Idestruction

Hey all! I am writing an application that will read data coming in through a serial port (RS232) and write that data to a file. This file will then be parsed by a php script and the data will uploaded to a server. Is there a function that allows me …

Software Development c++ file-system
Member Avatar for L7Sqr
0
282
Member Avatar for gowans07

I currently have the following code [CODE]Data1.Recordset.Sort = ("Barcode ID DEC")[/CODE] In which i want to sort all the Barcode ID records in Descending order. The barcodes have leading zero's which i think may be the problem. For example 00000055. Any suggestions?

Software Development visual-basic
Member Avatar for ChrisPadgham
0
1K
Member Avatar for khanayub_chand

I am working as a programmer for a hospital. I want to use barcode scanner in my application. I just want to know how can i provide input to my application which can read the barcode of a particular medicine and accordingly makes necessary updation in the database. Any One …

Software Development visual-basic
Member Avatar for ChrisPadgham
0
2K
Member Avatar for november_pooh

Hi masters, I want to replace a string with another string in textbox How i can do this? Please help Thank you

Software Development visual-basic
Member Avatar for ChrisPadgham
0
235
Member Avatar for aishapot

I was just wondering if I can retrieve two tables from my database to one form? because i'm trying it but it doesn't seem to be working. just the first table i'm trying to retrieve is working.

Software Development vb.net
Member Avatar for adam_k
0
179
Member Avatar for Teleka

I have an application and an sql server i would like to add Registration Code for the system. that should include the number of user

Software Development vb.net
Member Avatar for adam_k
0
218
Member Avatar for cangan

Hi, i am adding a few lines to the multiline textBox in a Windows forms Clr application. However each and every time the vertical scrollbar goes to the bottom. How/Can it be stopped ?? [CODE] textBox1->AppendText(array[i]); [/CODE]

Software Development c++
Member Avatar for thines01
0
160
Member Avatar for rue64ja

Never Mind the title of the post guys and gals… it turns out that writing the post helped me vent my frustration and clear my mind. I found the issue and solved the problem while I was writing the initial post! I'm writing this because I haven't figured out how to …

Software Development objective-c
Member Avatar for rue64ja
0
171
Member Avatar for FierstArter

I've looked around for about an hour and can't find anything that was to terribly helpful, or I didn't know how to use it. So here it is. [CODE]#include<iostream> #include<new> #include<cstdlib> #include<string> using namespace std; struct student { string name; double gpa; }; student doSurvey(student s); void reportSurvey(student s); int …

Software Development c++
Member Avatar for FierstArter
0
268
Member Avatar for dedenfk

I want to know how to write a program to print A B C D E F G H I J K L M N O P Q R S T U V W X Y Z Input = A M output = N z

Software Development c
Member Avatar for Greg_R
0
138
Member Avatar for monkl

I am trying to get a program to return a coord that increases or decreases in either X or Y given an input of either X, -X, Y, or -Y. It starts at (0 , 0). When I run it however, it always returns (0 , 0). What am I …

Software Development python
Member Avatar for woooee
0
225
Member Avatar for jasleen_kaur

Ok I have Googled for the answer but couldn't find one. I want to run my project on another computer without visual studio. I have created a setup file but after installing also i need visual studio.Isn't there any another way round?

Software Development asp.net vb.net visual-studio
Member Avatar for Reverend Jim
0
157
Member Avatar for krejar

I think my issue is in line 18. The program runs just fine, but my answer isn't correct when I enter a radius and height. Not sure what I am doing wrong here. [CODE]import java.util.Scanner; import java.text.DecimalFormat; public class ConeA { public static void main (String[] args) { double surface; …

Software Development java
Member Avatar for krejar
0
190
Member Avatar for yumyam09

Some one help me here my problem is on the [CODE]conn.Open()[/CODE] it stated that "A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to …

Software Development vb.net
Member Avatar for Begginnerdev
0
202
Member Avatar for lxXTaCoXxl

I've been trying to better my lesser side of knowledge in the C# programming language by tackling graphics head on. I've learned a little bit, but I'm getting stumped right now because I can't explain 100% what's going on here. I've developed a Pong game to teach myself how to …

Software Development
Member Avatar for lxXTaCoXxl
0
143
Member Avatar for rahul.ch

A snippet: package com.deitel.jhtp7.ch14; public class AccountRecord { ..... Doubt: 1. What does the above package statement imply. As in how(path) this AccountRecord.java will be stored? As in what folder hierarchy should I create? 2. In Command prompt I have set my Current Directory as : E:\RDL\Dropbox\Coding\Core Java\File So will …

Software Development java
Member Avatar for DavidKroukamp
0
244
Member Avatar for mortanto

I wouldn't normally ask for help like this but im getting quite desperate. I really need help with a java assignment that I'm really struggling with (I haven't done any coding in over 2 years so lost just about any knowledge i had) the assignment needs to have a collection …

Software Development java user-interface
Member Avatar for StephNicolaou
0
152
Member Avatar for siabenie

I am a bit confused here; I have this expression [CODE] ! (1 && !(0 || 1)) [/CODE] What would this evaluate? I tried to see it in logic as I go the steps: NOT (1 AND NOT(0 OR 1)) //0 NOT 1? what is this mean? How I can …

Software Development c++
Member Avatar for siabenie
0
114

The End.