43,549 Solved Topics
Remove Filter ![]() | |
basically i have 4 files 2 contain the following data . Trying to find out data which is common and not common in both files and write it out to files common and not common. It almost works except for it doesn't compare the last item in the list before … Software Development c++ | |
Hello I'm trying to copy a variable from a vector into an array (with a few steps in between) As you can see from the code, I take a random piece of equipment from the vector of equipments and insert it into the inventory (which is an array). The line … Software Development c++ | |
Okay, I'm making a game, and I need to use random inside a class, however I can't figure out how to seed the randomness into the class, so atm I'm getting the same random each time. I've tried stuff like srand(time) in main, however, that doesn't apply to the class, … Software Development c++ | |
![]() | Question- Write a function that displays at the left margin of the screen a solid square of asterisks whose side is specified in integer parameter side. For example, if side is 4, the function displays: Sample Screen Display **** **** **** **** i have come this far but i get … |
I wont to know how to find Pascal actions (functions?) like, how would you find the CPU speed (if pascal can do that,) or how would you minimize the window. Do I have to look for hours on GOOGLE search to find the code I wont ? cant I just … Software Development pascal | |
im trying to determine if there is an item selected on the listview.. i have a listview that displays customers name with a .tag that holds there ID. how do you tell if the tag is 0 or empty before executing code? in vb6 i simply did [code] if .lstwhatever.selecteditem … | |
whats wrong with these code? the buttons don't add or remove the panel.. someone help me!??plss..:S [code=java] import java.awt.*; import java.awt.event.*; import javax.swing.*; import javax.swing.event.*; public class addremove extends JPanel implements ActionListener{ private JButton addbut; private JButton revbut; private JPanel panel1; private JPanel panel2; public addremove() { addbut = new … Software Development java java-swing ![]() | |
I want to check in Date Field(Textbox), whether the input is Date Format or not (i.e) Date Format should be followed(YY/MM/DD) in C# windows applications. How can i check this? Software Development | |
I made a filechooser that enables the user to save a file. I used netbean's gui maker for it. I literally have just one thing stopping me from finishing my task: The save button does not actually do anything. You can click on it, but nothing happens. How do I … | |
Hello! My application is crashing randomly, and I thought it might have to do with it manipulating widgets that are not yet mapped, despite them being already gridded. Have you experienced this problem? I supply some code that shows that the print function happens before tkinter recognizes the button being … | |
Here is the problem: Write a program that displays the name of each month in a year and its rainfall amount, sorted in order of rainfall from highest to lowest. The program should use an array of structures, where each structure holds the name of a month and its rainfall … Software Development c++ data-structure | |
I am trying to get a handle on two things: building strings, and reading a file. I am trying to write a function that will pull a line from a file and put it into a string. I want to use it in a loop, so I am having the … Software Development c++ file-system | |
It just crashes out. [CODE]{ int i,j; ifstream input; input.open("carpark.txt"); { for (i=0;i<j;++i) { input >> employee[i].spotnumber; input >> employee[i].driver_name; input >> employee[i].car_reg; } while (!input.eof()) j++; } }[/CODE] Software Development c++ | |
![]() | Hi all, I would like to ask you all for some help. I need to write a program that allows me to have a circle radius as input and then print out the diameter, circumference and area of that circle. Easy task but i have to put the calculations in … Software Development c++ ![]() |
[CODE]Running Compiler -------------------------------------- server.java:52: cannot access handling.Handlers.CommandManager bad class file: .\handling\Handlers\CommandManager.java file does not contain class handling.Handlers.CommandManager Please remove or make sure it appears in the correct subdirectory of the classpath. public static CommandManager CommandManager = null; ^ Press any key to continue . . .[/CODE] What I did was … Software Development java | |
I was wondering if there was a way to play music from within the program. For example. When they click the button, the music starts playing just as a background process without opening an other music program. Is this possible? Thanks Software Development | |
Q. Using recursion, write [B]a[/B] C++ function into [B]b[/B] to convert an arbitrary integer n>=0 into binary. Call this function in the main program with the argument n (That's an easy part I can do that). In example; input n=27, output 11011. If anyone can help me with this question, … | |
I need solution for this : Write a program for a grocery that reads products data and determine and display the product that has the highest price and the average price. A product has three pieces of data: id (int), name (String) and price (double). Your program should continue reading … Software Development java | |
Hello everyone!!! Can someone help me with this: I need someone to tell me if the code is correct about this: It should create a table, insert something into the table (in this case random numbers), select from the table, and erase the table. [code] import java.sql.*; public class dbAccess … Software Development java microsoft-access | |
Hi, I want to change a variable in a definition everytime it is called. for example: when I click on button, it will print 1 when I click on button again, it will print 2 Is this possible? I have written this code but it doesnt work :) [CODE]k=0 def … | |
this is the error i'm getting. g++ main.cpp g++ universityperson.cpp /usr/lib/gcc/i386-redhat-linux/3.4.6/../../../crt1.o(.text+0x18): In function `_start': : undefined reference to `main' collect2: ld returned 1 exit status make: *** [universityperson.o] Error 1 I'm not going to post all the code i have but here is my makefile main file and universityperson files … | |
Hi, I've a multifile program in C and I need to use global variables. I've one header file that is called "global.h" where my global variable is defined. In the other files, there's an include directive to "global.h". At the moment, I'm using my variable in the C files without … Software Development c | |
I'm making this snake game, and I've created a class to handle the snakes (players and AI snakes), this works out quite well, however, at the moment I'm declaring my main snake (player 1), as global, in terms of: [CODE] class Snake { //... Lots and lots of code. } … Software Development c++ | |
Hi, How can I link dlls (integrate them) into my program? I would like to just have one single exe, and not having to distribute a zip or installer... Cheers! Software Development | |
Hello, I never programmed Delphi and I got a project that I need to compile and make some changes. The problem is that I have a lot of components missing and I cant find them or even theire name so I can google for them! Any help is appreciated! List … | |
CODE [code=vb] Public Sub InstituteCreateButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles InstituteCreateButton.Click Dim InstituteName As String InstituteName = InstituteNameBox.Text Dim InstituteCountry As String InstituteCountry = InstituteCountryBox.Text Try Dim InstituteTableAdp As New InstituteBaseDataSetTableAdapters.InstituteTableTableAdapter InstituteTableAdp.Insert(InstituteName, InstituteCountry) MsgBox("Success") Catch ex As Exception MsgBox("Failed!") End Try InstituteCreateButton.Text = InstituteCountry End Sub [/code] … Software Development vb.net | |
HI Guys, I have written an app the prints out batches of documents for postings. Each batch is to be seperated by a red coversheet. I know that in our printing department, no matter what printer they use to print the batches on to they will always have the red … | |
Hello Let me describe the problem: I've got 1 base class item which is inherited by a few other subclasses. Everything goes well until I put an object from a subclass into an array of items I lose the specific data of the subclass. I think I need something of … Software Development c++ | |
I have created a procedure, exitFailure() that is invoked if a file doesn't exist: [CODE] int exitFailure() {//start exitFailure() printf("Failure, hit any key to exit and press enter.\n"); scanf("%d", &counterx); return 1; }//end exitFailure() [/CODE] Below is the snippit of code that invokes exitFailure() [CODE] inFile.open(inputFilename, ios::in); if (!inFile) { … | |
Hello I'm making a dungeons and dragons and i need something to contain all inventoryitems like pieces of equipment, potions,... How can I put them all in one array or vector? Thanks, Jasper Software Development c++ | |
How would I fill a two-dimensional array up with numbers. map_height = 9 map_width = 8 I have this code: [code] for (i=0; i<map_height; i++) { for (p=0; p<map_width; p++) { room_numbers[i][p] = w; w++; } } [/code] But when I try to print it out it comes up with … Software Development c++ | |
![]() | Hey I m new in programming and I've spend 3 month on c# and now want to participate in imagine Cup with my team. and Looking for topic and the first requirement of imagine cup is: Your entry must address a [B]social cause[/B] connected to the 2010 Theme: "Imagine a … Software Development |
Hey, I created a custom datagridview column for a progressbar and included customizable color properties but I can't get them to work right. After compiling, the properties show up correctly in the Edit Columns popup editor, but changing the values has no effect. The designer generated code shows the original … Software Development vb.net | |
I am implementing a code to detect overlapping regions in a cell, as shown in the attachment. As you can see, the image is an overlapped version of two cells. My aim is to separate them. But I have got no clue whatsoever to do this. Can anyone help me Software Development | |
Hi, I am implementing a project where I have to use adaptive thresholding on an image. That is, the threshold value must not be global, but must adapt itself with the image. I have thought a lot, but am unable to get a logic. It would be really helpful if … Software Development | |
Hi, I have a code where I have to use the region class in drawing. When I type using System.Drawing., the region class doesnt appear in the drop down list. I know this is a kinda silly doubt, but I need to include it in my project. Thanks prashanth Software Development | |
Hi, I have this following code for RGB to HSL conversion, but I do not know how to use it to display my image. Can someone help out [CODE]var_R = ( R / 255 ) //RGB from 0 to 255 var_G = ( G / 255 ) var_B = ( … Software Development | |
Hi, I am trying to implement the K Means Clustering Algorithm for Image Segmentation. The logic behind K Means is : 1. Place K points into the space represented by the objects that are being clustered. These points represent initial group centroids. 2. Assign each object to the group that … Software Development algorithm | |
I am trying to write a funtion that will return the value of 1 if its string argument is a palindrome. I have started but am unsure if it is correct. Could someone please take a look and point me in the right direction? Thanks [CODE]#include <string.h> Int palindrome (const … Software Development c | |
Hai Friends, What is Swingworker class? were we can use this class? what its advantage? can any one explain this.... Software Development java | |
Please Help me, We had a Software application Developed using VB6 with MSSQL SERVER2005 as Database(Remote) in [url]www.znetindia.com[/url] our web space provider , the application was working properly until they upgraded the Server configuration, Now we are not able to connect with the database using the normal OLEDB connection String … Software Development client-server microsoft-access mssql open-source sql visual-basic web-server | |
How to use Button array? i want to use separate code for each button, Please Help Software Development visual-basic | |
Hi there folks, I have Visual C# Project- Windows Application , It has a Webbrowser Control , and I intend to load a local HTML file with images into it. I want to embed the embed the html file and image files as resources. So I did. While using the … Software Development asp.net image web-browser | |
Sorry to keep asking so many questions, but you guys always seem to be so nice and helpful... I need a way to verify that a database file is in a somewhat stable state...stable as in it has all of the correct tables, and each table has all of the … Software Development | |
Hey, I'm sorry for being such a python newb, but thanks for helping me out with the last one! Hopefully you guys will help a newb out again :) This time, I need to use a recursive function to basically do the same thing that the .replace function for strings … Software Development python | |
m using ms access and c# i fetch the data frm the database which includes sr.no. and store in a data table. i thn display the contents using a datagridview. everythin is working fine.. heres the catch i do not want to display the sr.no...how can i make tht particular … Software Development | |
hello all working on a class project in C++ using eclipse and g++ stuck a zip of the project as an attachment but here is the basics [CODE]#include <iostream> #include "Complex.h" #include "FileHandling.h" using namespace std; int main(int argc, char **argv) { FileHandling file();// opens the file and gets the … Software Development c++ | |
Hello all, I need to create a function call to calculate the average...Can anyone help with that?? I'm not sure how to create a function in my code to calculate the average. My code currently terminates after I enter the 50 inputs and does not compute and read the average. … Software Development c++ | |
I don't know if anybody here programs in C++ for the AS/400, specifically the Personal Communicator (PCOMM)... I have been able to successfully write programs in Visual Basic for Applications with Excel but I am having a hard time with C++. When I try to compile one of the sample … Software Development c++ gui multithreading visual-basic visual-studio |
The End.