132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Knome

I've searched all over google and this site. I've found a few hints here and there but after i make the changes either my compiler throws a fit or it doesn't produce the desired results. Here's what i want: I want to create a linked list in the main function …

Software Development c linked-list
Member Avatar for Martin B
0
4K
Member Avatar for jemimaloh

Hey. I've got a programme that processes the files in a given directory. However, it can only run those files if the programme itself is saved in the same directory. The error i am experiencing now is that once my programme runs, it also generates a class file which also …

Software Development file-system java
Member Avatar for jemimaloh
0
119
Member Avatar for aaronmk2

I am pretty sure that the answer for this is n^3, because the 3rd for loop is executed n times and the middle is executed n+4 times and the top one is executed n times. I understand how to use sigma notation for the bottom and top for loop because …

Software Development c++
Member Avatar for mrnutty
0
145
Member Avatar for TahoeSands

I love to play Poker and Blackjack online and I would like to duplicate how one of these casinos displays chips on the screen. We have all see this type of button before... An image of a $1 chip is shown at the bottom of the screen. As we mouse …

Software Development java
Member Avatar for kramerd
0
93
Member Avatar for noneta

hi all,, i really don`t know what its wrong in my code ,,, what i want its the user print the sentence and the program count eash sentence and devide it here is my code,,hope u help me :) [code]import javax.swing.*; public class tracing { public static void main(String args[]) …

Software Development java java-swing
Member Avatar for Ezzaral
0
130
Member Avatar for berwick53

I've got to:4. Write a program that asks the user for two strings. The program should then compare the strings and display a message saying whether they are equal or if not, and which one is first alphabetically. For some reason it doesn't print out the parts in the if …

Software Development c
Member Avatar for berwick53
0
100
Member Avatar for BSauer

We have a routine on our website that needs to pull information from a text file. The file is a tab delimited file with double quotes surrounding the text. The routine needs to compare these values to another imported list of values that do not have the double quotes around …

Software Development perl
Member Avatar for d5e5
0
1K
Member Avatar for Nathaniel10

An exercise in Stroupstrup's book is to write a program involving memory allocation with an infinite loop and let it run until it crashes. He says the crash will be due to [i]memory exhaustion[/i]. He also suggests researching the topic. I did and am frightened by what I found. The …

Software Development c++
Member Avatar for Nathaniel10
0
1K
Member Avatar for Beancounter5

Hello , sometime ago I started a small project centred around some crazy mutating breeding rabbits( sounds silly but I have learned an awful lot ,especially about lists). Anyway , as each year passes the number of rabbits grow - not exponentially but very quickly all the same. The next …

Software Development c++
Member Avatar for mike_2000_17
0
104
Member Avatar for L.sha

The question is to - Suppose you have a main() with three local arrays, all the same size but type (say float). The first two are already initialized to values. Write a function called addarrays() that accepts the address of three arrays as arguments add them and put their sum …

Software Development c++
Member Avatar for Intrade
0
2K
Member Avatar for uzn

HI, I'm getting the object refernce not set to an instance of an object error in the code below. I couldnt figure it out, where I'm going wrong. Please help. [CODE] Public Function GetConnection() As SqlConnection Dim connectionString As New SqlConnection() Dim Conn As String = Nothing Conn = ConfigurationManager.ConnectionStrings("connectionString").ConnectionString …

Software Development vb.net
Member Avatar for uzn
0
146
Member Avatar for Vllinator

I need to return the numbers of the lotto ticket to main, then call a print() to print the numbers. But the ticketGenerator only returns 1 number. Please help [code] #include <iostream> #include <ctime> using namespace std; int ticketGenerator(int); void printTicket(int,int); int main() { int size; int numbers; cout << …

Software Development c++
Member Avatar for sid78669
0
112
Member Avatar for jae5086

Ok, I am having two issues with this program, and since I am new to the forum, yes, I am a beginner so I am sure the error is so common it makes you want to cry seeing it again, haha. Anyway, the program is supposed to keep working with …

Software Development c++
Member Avatar for jae5086
0
107
Member Avatar for Software guy

Hi, I have been working on this small console applications for 2-3 days now but I cannot find the problem. The Task is that I have to read a file which has sentences in english and I just have to get the frequency for each character and print it out …

Software Development c++
Member Avatar for Software guy
0
126
Member Avatar for blast

First of all, hello everybody :) I'm startint to learn Python and i have question about keyboard input. e.g. I want to enter grades (e.g. 10, 4, 4, 2) and calculate average. So i guess it should be: [CODE]grades = raw_input("Enter grades:") print "Grades:", grades[/CODE] And finaly - question.. How …

Software Development python
Member Avatar for woooee
0
652
Member Avatar for coastcode

I need help with this stack problem. I think I got it, but I dont. Basically its a program to figure out who will be eaten by the dragon from a village. Names, and <CHOMPED> will be in the "villagers-in.txt" file. Every line of the file is supposed to be …

Software Development
Member Avatar for coastcode
0
109
Member Avatar for sahil1991

hi friends, i was doing functions and i encountered this thing that automatic variables are stored as stacks and static,global as heaps.I am in a bit confusion about these terms......can someone help me out...plz

Software Development c++
Member Avatar for mike_2000_17
0
158
Member Avatar for AngelicOne

I have a book table and a author table which contains book id for the book tbl and author id for the author tbl. Then I create another table which is Book_Author and it must have the book id and author id join together. How to do this?

Software Development
Member Avatar for AngelicOne
0
100
Member Avatar for uzn

Hi, I'm working on searching error files based on time. I have 2 folders which have permanent and temporary error files in it, and the only difference between permanent and temporary error files is creation time. I’m searching for error files in these 2 folders and my search should only …

Software Development vb.net
Member Avatar for uzn
0
127
Member Avatar for hanuinfy

Hi, I am new to XSLT, Please helo me in transforming the XML to XML transform I have XML like this <products> <product> <display value="32" /> <count value="0"/> </product> </products> Through XSLT I need to convert it like this <products> <product display="32" count="0"/> </products> Please help me out. This is …

Software Development xml
Member Avatar for fpmurphy
0
243
Member Avatar for Perry31

Hi friends, I'm new to this community. i just want to read string from a file excluding punctuations like ',' ';' or newline character. Is there any way to read the string by specifying the terminate character.

Software Development c
Member Avatar for Martin B
0
127
Member Avatar for AngelicOne

I search through the web and I only found out how to concatenate. I have a checkedlistbox that is a list of Authors, it is included in my ADD BOOK form. Take note that a book can have many author so I need checkboxlist. Instead of having this in my …

Software Development sql
Member Avatar for AngelicOne
0
244
Member Avatar for bufospro

Hi I am implementing a function that check if user is a man or woman. But it does not worl properly. I press e for example and appears two times Please press m/M for Man w/W for Also sometimes w/W/m/M are not recognised and appears the above. My cose is …

Software Development c
Member Avatar for bufospro
0
99
Member Avatar for jliao20

For the parser class, I need to use parseProgram() to take a filename as a parameter, opens and read the contents of the file, and returns an ArrayList of Statement objects. Since I am new to Java, I do not know where to start from. I also like to know …

Software Development java
Member Avatar for jon.kiparsky
0
160
Member Avatar for ajguitarmaniac

Consider a text file that looks like this ----------------------------------------------------------------- ABC this is the first line XYZ this is the second line or line 2 MNO this is the catch POD this is a line NFY this is a line POR this is a line LKM this is a line ABC …

Software Development perl
Member Avatar for ajguitarmaniac
0
204
Member Avatar for pythonlearning

There is a list of dataset and I need to reshuffle them randomly then partition the dataset into n groups. I am using dictionary to store the list of dataset, but I am not sure how to partition items of a dictionary into n groups? What I can think of …

Software Development dataset python
Member Avatar for pythonlearning
0
161
Member Avatar for Inês

Hello! I need help whith perl. I have 2 files, i whant to open them compare one column and if they iqual i whant to write at the 1ª file some columns of the second file. Exemple: File 1 2; apartamento; T2; manuel; 120.000€; Activo 4; moradia; V4;José; 250.000€; Suspenso …

Software Development perl
Member Avatar for richieking
0
102
Member Avatar for indrasmission

can any one please tell how to write a text editor program in java for running and compiling of any given program

Software Development java
Member Avatar for indrasmission
0
108
Member Avatar for ukfreak

Hi, Can anyone help me on the requirements below? I dont have any idea on an inventory system...please help!!!! Objective Create an inventory system that allows records of company inputs and outputs, tht's viewable through daily, weekly, monthly, yearly report as well as online control over items. Aim To simplify …

Software Development vb.net
Member Avatar for prvnkmr194
0
106
Member Avatar for hi5.ankit

I had been working on perl netssh in office. Now i need to configure it at home bt i am not able to. I installed activeperl. Running command makefile gives error "Mingw or c compiler not installed". then it automatically invokes mingw installation. But this installation terminates in between with …

Software Development perl
Member Avatar for richieking
0
160
Member Avatar for rcanter

I am trying to get a text value from NameForm and pull it in Welcome as a label value. What I have so far, when the Welcome page comes up, it does not give the value of the text but if you click on the label field, it pops up …

Software Development
Member Avatar for kumar169
0
173
Member Avatar for kimlong008

Who have code read file *.prc help me! I want to write program read file *.prc but I don't know struct file ! only read file *.prc

Software Development c file-system
Member Avatar for kimlong008
0
123
Member Avatar for ekailan

I have this tow errors ,how I can solve it.any ideas? error LNK2019: unresolved external symbol _WinMain@16 referenced in function ___tmainCRTStartup MSVCRTD.lib AC fatal error LNK1120: 1 unresolved externals Debug\AC.exe AC

Software Development c++ visual-studio
Member Avatar for ekailan
0
130
Member Avatar for Ogakor

Hello, I've been having problem with understanding merge sort for linked list. I understood merge sort for array though, I think. I've googled it and all I can find are codes. I need to understand the algorithm first before I can understand the code. Please help me understand merge sort …

Software Development algorithm c linked-list
Member Avatar for Martin B
0
199
Member Avatar for sravyen

Hello, I want to copy a jpeg file from linux to my windows machine using scp command.The program will be asking for a password later in the run after it executes the scp command. Is there a way that I can send the password to the program without a keyborad …

Software Development python
Member Avatar for TrustyTony
0
7K
Member Avatar for Abdullah Amjad

Hello,im a beginner in c.How do we call a function in the main function?

Software Development c
Member Avatar for hyperion
0
144
Member Avatar for dheerajlonely
Member Avatar for xyzacorleone
0
89
Member Avatar for Simes

This is an assignment I am working on for uni and I have done quite alot by myself and with some hints along the way from others who know Java better than I do. So I am working on a GUI Traffic Simulator (creating the GUI and drawing it is …

Software Development gui java java-swing oracle
Member Avatar for Simes
0
181
Member Avatar for tukky

I have a list view control on one of my forms in my program. If i click on a selected item and click on the delete button it gets removed. But i want it so that if i havent got an item selected i click on delete i get a …

Software Development listview vb.net
Member Avatar for auxius
0
100
Member Avatar for lilsmurf

No matter what I enter in for my amounts, it always tells me that the total is 13. Here is my code: [CODE] String input = ""; int month = 1; int year = 0; int total = 0; double average = 0.00; int inches = 0; int rainfall = …

Software Development java
Member Avatar for stultuske
0
84
Member Avatar for cedric91

[CODE]void Students_Absence_Report() { int i; double presence[NO_OF_STUDS], absence[NO_OF_STUDS]; for(i=0; i<NO_OF_STUDS; i++) { presence[i] = ((double)student[i].presentDays/14)*100; absence[i] = 100 - presence[i]; } printf("\n\nStudents Presence/Absence Report\n"); printf("--------------------------------\n"); printf(" Name\t\t%%Presence\t%%Absence\n"); for(i=0; i<NO_OF_STUDS; i++) { printf("%-3d %-19s %.2f\t\t%.2f\n", student[i].studNo, strcat(student[i].surname, student[i].givenName), presence[i], absence[i]); } printf("\n******** END OF ATTENDANCE REPORT ********\n"); } [/CODE] Anythings wrong …

Software Development c
Member Avatar for hyperion
0
87
Member Avatar for hveed

hi, I am new to programming and looking for some help, here is the portion of the assignment that is giving me headaches: using one function, upload (i.e., input) the integer value and the color text, ignoring the word "Color:"; the function must only upload one data pair (i.e., the …

Software Development c++ dataset
Member Avatar for Ancient Dragon
0
139
Member Avatar for DarkSatan

I just found this tough question in the last year Q Paper of this competition...1st how can I take inputs in a single line??(noob question) 2nd Can any1 help me with the logic to use...If u cud write a small eg. prog I would be greatly thankful NOTE:I had also …

Software Development c++
Member Avatar for DarkSatan
0
128
Member Avatar for Morbane

Hi, I have been trying to use a struct to hold some const chars that represent a fixed date The idea is to select a date on a Month Calendar and compare it to the fixed date in the struct so that a MessageBox can show [code] typedef struct BASEFULL …

Software Development c++
Member Avatar for comeugive
0
236
Member Avatar for DarkSatan

I just found this tough question in the last year Q Paper of this exam...I dont know how to take that type of input,leave alone the logic...Can any1 help me with this program, plz... : [B] Question 1 Vogon zoo On the icy planet Zorg, the Vogons are putting together …

Software Development c++
Member Avatar for csurfer
0
322
Member Avatar for aladar04

Hi! I am having trouble with this program. I'm done with the creation of records. My problem is, I cant make it print a record using the Record Number inputted by the user. I used seekg() but it doesn't work. I have attached the files for reference. try.cpp and accounts.txt …

Software Development c++
Member Avatar for alwaysLearning0
0
109
Member Avatar for Mr.BunyRabit

Hey There all you clever people. Its Ruan here. I am using vb 2010, and i really would like to Just open, not modify a word document. Now i have browsed the internet, and this is what i have found.. in project menu>refferences> select .. microsoft word 9.0 object library …

Software Development vb.net
Member Avatar for AndreRet
0
2K
Member Avatar for jemz

Hello can you help me please... im making the program that will display the smallest number using function in array...please help me...thank you in advance...hoping for your positive responds.... [CODE] #include<stdio.h> void accept(); void findsmallest(int num[],int size); int a; int main(void) { accept(); getch(); return 0; } void accept() { …

Software Development c
Member Avatar for jemz
0
122
Member Avatar for izyrider

I have a combo populated with: [code] With Me.cboOwner '// populate cboOwner .DataSource = dtMyCos .DisplayMember = "CoName" End With [/code] DtCos datatable contains: CoID int CoName string So far so good! Then I have a second combo cboIssuer that needs to contain all the items in cboOwner **PLUS** an …

Software Development vb.net
Member Avatar for AndreRet
0
103
Member Avatar for DrueY

What do the numbers tell me, in terms of frequency, amplitude and maybe time? Thank you muchly! drue

Software Development c++
Member Avatar for DrueY
0
482

The End.