43,549 Solved Topics
Remove Filter ![]() | |
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++ | |
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++ | |
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 | |
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 | |
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++ | |
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 | |
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 | |
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++ | |
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++ | |
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++ | |
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++ | |
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] | |
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 … | |
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 … | |
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 | |
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 … | |
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 | |
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++ | |
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 | |
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 | |
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 | |
Hello there, any idea what function in the standard library corresponds to these win32 apis (GetPrivateProfileInt and GetPrivateProfileString). Thanks. :) | |
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 | |
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++ | |
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 | |
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++ | |
can anyone help me minimize the size of an image using java? | |
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 | |
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 | |
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 | |
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 … | |
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++ | |
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 | |
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++ | |
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 | |
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++ | |
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# | |
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 | |
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++ | |
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 ![]() | |
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++ | |
[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 | |
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 | |
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 | |
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 | |
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 |
The End.