64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for Questions???

I am a student. I have written the following program for an assignment. The assignment is to seconds into Hours, minutes and seconds. However, I think I have done the program right, but I keep getting the following two errors: ComputeMinutesAndSeconds (int): not all code code paths have a return …

Member Avatar for Questions???
0
122
Member Avatar for pocku

Hello. I'm utterly stuck on this one part of my school assignment (for pascal). We are asked to make a calculator like program which calculates integer values only. The program has to read character by character from an input file and if something like an 'a' or # is entered, …

Member Avatar for Duoas
0
123
Member Avatar for Jishnu

Why does the JVM initialise the data fields with default values if no constructors are defined in any class? What is the need for such a procedure of calling the default constructor?

Member Avatar for Jishnu
0
320
Member Avatar for Knad

Hello, I am trying to impliment a guassian blur filter in C++, but i cannot progress asi keep getting a Floating point exception every time i run it. I am unsure as to why, i have narrowed the error down to somewhere within the function gaussian_mask() which creates the gaussian …

Member Avatar for Knad
0
292
Member Avatar for alcoheca

hi, I'm checking a date is valid as it's typed in, however I always want to allow the user to skip with a CR. The while condition is causing my program to crash when [B]str_date.length()==0[/B] (I think) here's my code: [CODE=c++] struct Date { int d; int m; int y; …

Member Avatar for Narue
0
264
Member Avatar for hawisme000

any1 here know how to make a browse button? that can browse files inside a specific folder and then playing it? also what player should i use in my form? only know Amovie.ocx but i still dnt know how to make or have an idea in making a browse cmdbutton …

Member Avatar for hawisme000
0
110
Member Avatar for wijitha

hi.. I'm new to ACE framework. I want to develop a server which has multiple ports and multiple clients can connect with the server simultaneously. I tried to do it using a ACE_Event_Handler objects witch registered with ACE_REACTOR. But i could not achieve what i want. If you have idea …

Member Avatar for vijayan121
0
289
Member Avatar for elisa_yong

hi i have this assingment due very soon and i am totally stumped. I have to use java and im not good with it at all , ive' been searching everywhere and i can't find anything that would help me. Hopefully you guys can help me , thanks in advance. …

Member Avatar for elisa_yong
0
140
Member Avatar for alcoheca

Hi I wish to break up a date entered as a string into [B]int[/B]s for day, month, year. String to be entered follows this convention DDMMYYYY - this will be checked so we can presume it's suitable. I have it working using tempary variables, but is there a way to …

Member Avatar for Nick Evan
0
864
Member Avatar for uonsin

hi, i have to make a IM program with C and i was wondering if anyone knows a way to access dos commands with C, like net send i was thinking to use rpc (remote procedure call) for windows, so if anyone have any suggestion please let me know

Member Avatar for uonsin
0
97
Member Avatar for sam63

I've got some really fundamental questions that I am almost embarassed to ask. But what is the real importance of properties in C#? And how many ways are there to invoke a method? Ssam .......

Member Avatar for sam63
0
85
Member Avatar for AlexN

Hey guys im new here... i need to make a program that estimates the costs of the following: Materials Ceiling: xx.x litres @ x.xx per litre 99.99 walls: xx.x litres @ x.xx per litre 999.99 xx rolls of paper @ xx.xx per roll 999.99 woodwork: xx.x litres @ x.xx per …

Member Avatar for Duoas
0
121
Member Avatar for world_weapon

Hello folks, I was wondering if anyone had any experience with php configured with pdflib. I am trying to create a new pdf by loading an already existing pdf and overlaying some information where the fields would be on the existing pdf. I have been trying to figure this out …

Member Avatar for scottholmes
0
95
Member Avatar for ravenous

Hi, Does anyone here have any experience of using libtiff in c++? I have been trying to do some simple image processing using it and I don't seem to be able to write images. I can make files that have roughly the right size, but they're not correct as they …

Member Avatar for ravenous
0
5K
Member Avatar for n.aggel

hi, i have the following problem:: i want to read a string from the stdin. The string may contain white spaces so {i think} the scanf family of functions is out of the question... I think the most appropriate function for this case is fgets {if i am wrong please …

Member Avatar for iamthwee
1
325
Member Avatar for jrice528

I am working on homework, and been doing this assignment with absolutely no luck, i am in need of major help. This is the assignment. Using an array, initialize all elements in the array to 1. Starting with array subscript 2, every time an array element is found whose value …

Member Avatar for jrice528
0
110
Member Avatar for Jishnu

[CODE]#include<stdio.h> int main() { for(;0;) printf("Hello"); return(0); }[/CODE] This code should not give any output, but it is printing Hello once. I'm using TC++ 3.0. Is something wrong with the compiler?

Member Avatar for WaltP
0
98
Member Avatar for adityav

Hi all, I am working on a program which will generate a log file for it's operation. Because of the way the program is designed, the program maintains a String variable for all the log that needs to be written and write that string into the file at it's exit. …

Member Avatar for PeterCharles
0
614
Member Avatar for Spikky

Hi there, I have just started using java and have gained a bit of knowledge in it to start making small programs to run in cmd. I have recently been making one to determine which, of 4 objects, can reach a random point in a 1km square. I have managed …

Member Avatar for Spikky
0
100
Member Avatar for Loyen

So, by now it seems like C++ will be the futures programming language. But what do [B]you[/B] think of the future of programming languages?? Will it be easier and better for the user to use it and handle it? Write down every thing about programming language that pops up on …

Member Avatar for Narue
0
214
Member Avatar for lydia21

hi i want to know whether my coding is correct because data is not getting inserted in my sql table,but it is displaying the "data inserted" message<html> <head></head> <body> <?php $uname1= $_POST['uname1']; $cname=$_POST['cname']; $caddr=$_POST['caddr']; $mid=$_POST['mid']; $skills=$_POST['skills']; $degree=$_POST['degree']; $indtype=$_POST['indtype']; $desc=$_POST['desc']; $req=$_POST['req']; $yoe=$_POST['yoe']; $sal2=$_POST['sal2']; $search=$_POST['search']; $hostname = "localhost"; $username = "uname"; $password …

Member Avatar for ryan_vietnow
0
126
Member Avatar for dc_24l

hey need some help guys. for example i have a text box and i will have input in it. but only numeric ones are allowed to be inputted in the text box if a character for example "a" is pressed the text box will not change and type the "a" …

Member Avatar for debasisdas
0
103
Member Avatar for rayxu88

I'm trying to write a simple program to identify if two phrases are anagrams of one another. I'm having trouble with sorting an array of characters and defining xarray and yarray. [code] public class Anagram1{ private String x; private String y; private char[] xarray; //? private char[] yarray; //? public …

Member Avatar for rayxu88
0
121
Member Avatar for bluanwht

I am having trouble with getting my data to display. The program works fine if I choose option 7 to display the balances and it exits if the user enters option 8 but I can't get it to perform the other functions. Can anyone help me to figure out what …

0
66
Member Avatar for Dio1080

I need to this program to let me enter in an letters A B C or D so this program can run, why isn't this program not working, please help. Here is my code: public class DriversLicense{ public static void main(String [] args) { //Students answers to the questions char …

0
299
Member Avatar for HeroOfTime

Hi, I am a first Year Computer Science student learning java. First, what I want help with is not a homework assignment, I just started it on my own. This program is supposed to test the "Chaos Game" The chaos game is explained here: [URL="http://mathworld.wolfram.com/ChaosGame.html"]Chaos Game[/URL] So, the basics that …

Member Avatar for HeroOfTime
0
151
Member Avatar for sarahger9

I'm working on a program that reads in from a file a list of customers and puts them in a vector. I did that. Next, there is a file for each customer that I put in this vector. I need to open the file, and "assign the data to a …

Member Avatar for iamthwee
0
113
Member Avatar for BlZbB

hi i write a program to add a value in windows registry but it didn't work and doesn't add anything in registry, what's a problem? my assembler is masm32. and here is my code: [code=asm] .386 .model flat, stdcall option casemap:none include windows.inc include kernel32.inc include advapi32.inc includelib kernel32.lib includelib …

Member Avatar for BlZbB
0
269
Member Avatar for Krimi

hi there! how do i read a specific line from a text file? maybe im asking the wrong question, so i will try to explain what im trying to do :) i have a file that looks a bit like this(just with 1000 lines): 1 dudea addressa 1000 10000000 maila …

Member Avatar for Krimi
0
1K
Member Avatar for Butterflieq

I am going through and rechecking my work on a project and was hoping someone might see if I am on the right track. First off the project is as stated: A baseball team manager wants a report showing her players' batting statistics. A batting average is computed as hits …

Member Avatar for Butterflieq
0
234
Member Avatar for Ratte

I have a person datafile of many entries. Persons will be stored in a linked list and each of the person amongst other things will have a linked list of items belonging to them. The object of the program is to use a quicksort algorithm to print out entries of …

Member Avatar for Narue
0
121
Member Avatar for lydia21

hi, i am using freehypespace.com.i want to know abt database connection.i want to insert data from my textbox to database.....thanks .lydia

Member Avatar for XBow
0
75
Member Avatar for PL.P27

Hi everybody, I'm fairly new to GUI and even newer to Java and I was wondering if someone can help me find my problem and how to fix it. The problem is I'm doing the game mastermind and I'm checking the guess but everytime I click the button a second …

Member Avatar for PL.P27
0
316
Member Avatar for rpk5000

n. Write a method that will convert a number from binary to decimal. The binary number will be passed in as an array of Booleans (a true represents a 1 and a false represents a 0.) This is part of a methods practice assignment I was given. I'm currently taking …

Member Avatar for rpk5000
0
225
Member Avatar for RexxX

Also argument 2 makes integer from a pointer with a cast. One argument is a struct declared in an included library. It's declared like: [code]struct pixelst *lzwArr; lzwArr = (struct pixelst *) malloc(pixels); // pixels is an int[/code] the second argument is an unsigned int 2D array. It's used in …

Member Avatar for Aia
0
3K
Member Avatar for tulsafork

Hi guys this is my first post on DaniWeb, I have searched for help on here for hours on hours. I am the webmaster at my high school and I have been given the project of making a Book Depository for one of our departments, one that would do the …

Member Avatar for cfry
0
119
Member Avatar for toolmanx

Since I closed my thread, I will just open this new one for a comment. I told you I had discovered an item in WinHelp called: "Opening and displaying a bitmap file" If you want a laugh when you get bored, pull that up and look it over. I wonder …

Member Avatar for toolmanx
0
135
Member Avatar for kiel19

Write a program to find the number of times that a given word(i.e. a short string) occurs in the sentence(i.e. in a sentence!). Read data from the standard input. the first line is a single word, which is followed by general text on the second line. read both up to …

Member Avatar for WaltP
0
743
Member Avatar for n.aggel

hi, i was wondering if it is possible to send a struct through sockets... thanks in advance, nicolas

Member Avatar for n.aggel
0
265
Member Avatar for ITAutobot25

My delete button is not working and my due date is Sunday before midnight. Can anyone show me how to correct this error. My assignment statement is below as well as 5 classes. InventoryGUI is the main class to begin execution. I have a Data folder that contains my logo …

Member Avatar for ITAutobot25
0
2K
Member Avatar for jray344

I need to write a recursive function reverseInput that until the user enters zero it keeps on accepting numbers, then when done, outputs them in reverse order. Only thing, i cannot use strings or arrays or anything of the like and it must be done in one recursive function. It …

Member Avatar for Ancient Dragon
0
117
Member Avatar for rani_techie

Hello Everyone, In my application i need to select a file using open dialog box. And then i dont need to open the file. I just need to display the name of the selected file in a text control. And then open the file in later part of the program. …

Member Avatar for rani_techie
0
517
Member Avatar for WhitePunk

I formatted my computer and I want to install the visual basic 6.0... I can’t install it using my installer... I’m enjoying making programs and of course experimenting… hehehe… So I just wanna ask... If there’s any possible website where I can download to install visual basic??? Thanks and more …

Member Avatar for WhitePunk
0
90
Member Avatar for verbob

This is an annoying error...tried re-writing the code a few times...deleting and recreating the table...etc...still the same result: " ... You have an error in your SQL syntax; check the manual that corresponds to your MYSQL version for the right syntax to use near 'desc) VALUES ( '', '1', '1', …

Member Avatar for verbob
0
115
Member Avatar for jray344

I don't understand functions that accept a variable number of arguments. I want to make a program with a max function taking any number of type double and returns the greatest of them

Member Avatar for jray344
0
269
Member Avatar for squidd

I have it coded to where a small list can have dupes removed rather efficiently. But, the larger the list gets, the longer it takes to the point that it is better to not even try. A list of 15,000 lines would takes hours and hours... probably longer to remove …

Member Avatar for squidd
0
806
Member Avatar for chris53825

Hey guys, I'm trying to read from a file and put each column into it's corresponding array. [code] % P_ID CPU_burst I/O_burst Priority 0 10 4 2 1 8 2 1 2 12 0 5 while ((Line=myInput.readLine()) != null) { StringTokenizer s = new StringTokenizer(Line); //System.out.println(Line); pid[counter]= Integer.parseInt(s.nextToken().toString()); cpu[counter]= Integer.parseInt(s.nextToken().toString()); …

Member Avatar for chris53825
0
99
Member Avatar for Rick1980

Hello All, I know that there is a similar thread about my problem, but I can't find it anymore. Well basically I want 2 objects to know from each other. I know that in C++ I have to use pointers to do that. I wrote some sample code to show …

Member Avatar for Rick1980
0
2K
Member Avatar for dno117

Hello all, I am an online student in an intro to Java programming course and am a little stuck on my current program. I do not want the answer, but rather help figuring out what it is I am doing wrong. The program is supposed to prompt for an employee …

Member Avatar for dno117
0
875
Member Avatar for emilio

hello does anyone knows the meaning of the error undefined reference to main. i'm getting the error when trying to compile a file without a main function with -Wall option

Member Avatar for emilio
0
91

The End.