43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for picklesandmayo

I am writing a program that generates 2 random #'s then asks the user to give the product of the 2. I have everything (close to) working except the input. I even added a "cheat" to display the answer [inlineCODE]prod[/inlineCODE] and when inputting the exact same #, it is registering …

Software Development c++
Member Avatar for vmanes
0
96
Member Avatar for ferhatkuskaya

Hi Can you tell me how I will add labels to buttons in delphi? When I add labels to button the labels are coming under the button but I want to see the labels on the button just as tag of buttons can you help me about that problem. Thank …

Software Development delphi pascal
Member Avatar for Duoas
0
111
Member Avatar for blackslash13

Which is the most suitable source code? I need a programmer with a large experience on C++ to answer this question. [code] #include <string> #include <iostream> #include <limits> int main() { using namespace std; const int THISYEAR = 2007; string yourName; int birthYear,bad_input; cout << "What's your name ? " …

Software Development c++
Member Avatar for Salem
0
104
Member Avatar for scunnywhite

import javax.swing.JOptionPane; public class conversionweight { public conversionweight() { String ans; ans = JOptionPane.showInputDialog(null, "Enter Weight in Stone.Pounds" ); double stones = Double.parseDouble(ans); double pounds = 14 * stones; double kilos = 0.45359237 * pounds; JOptionPane.showMessageDialog(null, " weight in Kilos = " + kilos); System.exit(0); } } my task was …

Software Development java java-swing
Member Avatar for scunnywhite
0
84
Member Avatar for Java-Newbie

Hello and Happy Thanksgiving (to those who celebrate it), I have a small program that needs to read data off of a text file (name, city and age) and store it in an array. The program asks the user for a city name, and it's supposed to loop through the …

Software Development java
Member Avatar for Java-Newbie
0
508
Member Avatar for kidjl

Hello everybody. I am beginner in programming.....However, recently i recieved a simple assigment from my Professor. The assigment asks me to use C++ and create a programe that will display a series of Fabonacci numbers after the user enter a number . For example if the user enter 10 , …

Software Development c++
Member Avatar for jbennet
0
145
Member Avatar for ferhatkuskaya

Hİ THANK YOU FOR YOUR LABEL COMMENTS LETS FORGET THAT QUESTION. I have chosen it with a different solution and :). now I want to know how I will use the message buttons with if conditions... I dont know why my message dialog box's message values are passive in my …

Software Development pascal
0
94
Member Avatar for bilalb1

hi hope u guys are well... i am using a linux command (with system() call in my c++ code) to search all files with in the system and then store the results in the a file(say filename). i am piping this with tail --f filename to display the results while …

Software Development shell-scripting
Member Avatar for bilalb1
0
232
Member Avatar for enuff4life

in doing C, in my function OpenData, it takes a point to array in main, take command-line argument name, and arraysize pointer. i get warning passing arg of 'function' makes integer from pointer OR pointer from intgeger without a cast... what does it mean? and i get con [CODE=C]int main(int …

Software Development c++
Member Avatar for Ancient Dragon
0
120
Member Avatar for ricnyx

im the newbie among the newbie .....need a nice and patient guy who willing to guide me of my assignment.....cause the deadline is tis weekend......i dun know or can say hard to post the problem out...cause too many.............need urgent reply.........can msn ??? pls pls pls pls...........i got plenty of question …

Software Development c++
Member Avatar for bilalb1
0
110
Member Avatar for picklesandmayo

Hello, I am a new CS student and I am taking a C++ course. I am running into problems with a simple number generation program. Basically, I have to generate 2 single digit numbers and then request the user to multiply them. (I know there is nothing in there yet …

Software Development c++
Member Avatar for picklesandmayo
0
125
Member Avatar for ceyesuma

can someone show me how to collect a string from a jsp text box and call a set method in a bean that puts that value in a variable of that bean?

Software Development java
Member Avatar for ceyesuma
0
101
Member Avatar for beauty7

Hi there^_^, How can I create a class from this program? [code] #include <iostream> #include <ctime> using namespace std; int main() { // Obtain the total seconds since the midnight, Jan 1, 1970 int totalSeconds = time(0); // Compute the current second in the minute in the hour int currentSecond …

Software Development c++
Member Avatar for beauty7
0
91
Member Avatar for kiel19

how to write c code function implementing the first heuristic algorithm [CODE] void binpack_firstfit(int item) { int s = 0; int bin_Value; do{ bin_Value = bins[s]; if (bin_Value + item < BIN_VOLUME){ bins[s] = bin_Value + item; s = NUM_BINS; } }while(s++ < NUM_BINS); }[/CODE]

Software Development algorithm c
Member Avatar for Salem
0
142
Member Avatar for dotNetDummi

Hi all, (I apologise if this thread is out-of-topic) I need some ideas for my project. I have to develop a web application for some users to approve some documents. The problem I have is that I [U]can't[/U] give these people a login account (due to my project requirement). I …

Software Development asp asp.net c c# c++
Member Avatar for dotNetDummi
0
158
Member Avatar for almost_done

Ok so this is really annoying me...I'm trying to go through and parse a bunch of .csv files for content but I can't get past trying to open them. I want to read the directory contents and then open the specified file. I have the code working so it prints …

Software Development c++ perl
Member Avatar for almost_done
0
211
Member Avatar for Run.[it]
Member Avatar for chetah

Home Work Problem. I understand what the program is suppose to do, but I do not understand how to implement it using Link List. Please help me to understand the problem. Write a program to perform ariththmetic with integers of unlimited size. You must read data from the input file, …

Software Development algorithm java linked-list
Member Avatar for chetah
0
81
Member Avatar for IRSSRI

I am new to C++, and I am currently learning pointers. I am fully aware of the whole homework help restriction guideline stuff on this site. I am slowly understanding the logic of pointers. I just need help with the coding syntax. My assignment is as follows: I have a …

Software Development c c# c++
Member Avatar for Jishnu
0
109
Member Avatar for Jishnu

Hey, what does the following code do? [CODE]#define _ -F<00||--F-OO--; int F=00,OO=00; main() { F_OO(); printf("%1.3f\n",4.*-F/OO/OO); } F_OO() { _-_-_-_ _-_-_-_-_-_-_-_-_ _-_-_-_-_-_-_-_-_-_-_-_ _-_-_-_-_-_-_-_-_-_-_-_-_-_ _-_-_-_-_-_-_-_-_-_-_-_-_-_-_ _-_-_-_-_-_-_-_-_-_-_-_-_-_-_ _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ _-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ _-_-_-_-_-_-_-_-_-_-_-_-_-_-_ _-_-_-_-_-_-_-_-_-_-_-_-_-_-_ _-_-_-_-_-_-_-_-_-_-_-_-_-_ _-_-_-_-_-_-_-_-_-_-_-_ _-_-_-_-_-_-_-_ _-_-_-_ }[/CODE] I found this interesting question from [URL="http://www.techfest.org/archives/tf07/wired_logic/codemaestros/code.c"]http://www.techfest.org/archives/tf07/wired_logic/codemaestros/code.c[/URL]

Software Development c
Member Avatar for Jishnu
0
219
Member Avatar for joshua.tilson

Hello, I am currently working off the sticky thread filled with practice problems etc. I have got a couple of the practice problems out of the way, and I am currently working on a program that will find the factoral of a number entered. So far i have an array …

Software Development c++
Member Avatar for ioncrew
0
240
Member Avatar for vinod_javas

Hi Guys.., Where can i find this particular package javax.media.*; and is there any specific link there to download the javax packages...? If so kindly help me out... Thanks in advance.. Vinod

Software Development java
Member Avatar for vinod_javas
0
143
Member Avatar for propricer

Is there a simple way to create multi-line tool/tip text boxes ... nothing special, no balloons or anything, just multiple lines ???

Software Development visual-basic
Member Avatar for alzowze
0
2K
Member Avatar for Jishnu

Herbert Schildt in The Complete Reference Java 2 says,"Because it is static, it must access the members of its enclosing class through an object. That is, it cannot refer to members of its enclosing class directly. Because of this restriction, static nested classes are seldom used." Can we use static …

Software Development java
Member Avatar for lookof2day
0
332
Member Avatar for jaepi

Hello there, any idea what function in the standard library corresponds to these win32 apis (GetPrivateProfileInt and GetPrivateProfileString). Thanks. :)

Software Development api c++
Member Avatar for vijayan121
0
166
Member Avatar for Grub

Hi, I am trying to display my floating point values as money in a machine. Now When I display the value 0.60, the zero is omitted from the end and as such is displayed as 0.6. I need to display it as 0.60. Many thanks in advance.

Software Development java
Member Avatar for Grub
0
87
Member Avatar for ithelp

What is the easiest way to create a libray from list of .o s that is libtest.a from a.o,b.o ...z.o I am looking for a command line option.

Software Development c++
Member Avatar for ithelp
0
84
Member Avatar for rajeshnrh74

My VB6 has a Form with a Textbox. Actually my work behind reading Barcode thru Barcode Reader into the TextBox, The Maxlength of the TextBox is 12. If I Input some characters manually into the TextBox Say "abc" (without quotes) now the cursor is in 4th place from there it …

Software Development visual-basic
Member Avatar for venkatramasamy
0
264
Member Avatar for Biro

Hey I am new to c++, I am trying to work with programmer defined functions, I was wondering if someone could tell me where I went wrong with this: [code]#include "stdafx.h" #include <iostream> using namespace std; double hatsize(double user_weight, double user_height); // hat size function declaration int _tmain(int argc, _TCHAR* …

Software Development c++
Member Avatar for Ancient Dragon
1
104
Member Avatar for dharween0629

can anyone help me minimize the size of an image using java?

Software Development image java
Member Avatar for peter_budo
0
108
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 …

Software Development
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, …

Software Development pascal
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?

Software Development java
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 …

Software Development algorithm c++
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; …

Software Development c++
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 …

Software Development visual-basic
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 …

Software Development c++
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. …

Software Development java
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 …

Software Development c++
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

Software Development c c# c++
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 .......

Software Development c#
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 …

Software Development pascal
Member Avatar for Duoas
0
121
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 …

Software Development c++
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 …

Software Development c
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 …

Software Development c++
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?

Software Development c
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. …

Software Development file-system java
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 …

Software Development java
Member Avatar for Spikky
0
100
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" …

Software Development visual-basic
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 …

Software Development java
Member Avatar for rayxu88
0
121

The End.