43,549 Solved Topics
Remove Filter ![]() | |
Okay so I have a program that tests for collisions using a complicated and 80% accurate method, but I want 100% accuracy. Like someone posted earlier about shapes colliding into each other, I realized that there will be cases where my method wont work. However, I've looked into a calculus … Software Development api c++ file-stream | |
after i added in my JTextArea, everything seem mess up, their position have already run away, whats going on ? [CODE] import java.awt.*; import java.awt.event.*; import javax.swing.*; import java.awt.event.*; import javax.swing.border.*; public class MainTabbed { JLabel locationLabel; JLabel divingTypeLabel; JLabel dateLabel; JLabel maxDepthLabel; JLabel averageDepthLabel; JLabel fBuddyLabel; JLabel sBuddyLabel; JLabel … Software Development java java-swing | |
what method is to be used to get the selected row in a CListCtrl ? i tryed GetCount() but it returnes the number of selected items i searched the method list, but found no GetRow() or something thx in advance Software Development c++ | |
Hi guys, As my first post, i'd like to post something usefull instead of "Hi, i'm new here". The reason for this topic is because i don't understand a few things, mostly about classes. Here are the things i don't understand: 1) Why do some people set a "_" before … Software Development c++ | |
How can i detect mouse button clicked? does i have to use api function? | |
Hello, I'm getting a compile-time error in jdk1.2.1 which says "Identifier expected" and points to this line in the code: [CODE]Vector<Fish> fishes = new Vector<Fish>();[/CODE] Aren't vectors supported in jdk1.2.1? I'm unable to catch the problem. Software Development java | |
I am currently taking a class in C online and I have a homework assignment to create a random sentence generator with arrays of specific words. I have the random part working, but I am unsure as to how to capitalize the first letter of the first word in the … Software Development c | |
Hi I am making a program that collects data and then saves it to a text file. Then i want it to print the text file on a Network Printer and i was wondering how i would go about doing that? | |
I need to make a hangman game but I have code but it won't end the game even if you ges the word, and it won't show the gesses all at once. This is what I have [code] #include <iostream> using namespace std; int main() { char solution[20]; char blank[20]; … | |
[code]#include<windows.h> #include<stdio.h> #include<conio.h> int main() { system("mkdir c:\\Imp"); getch(); }[/code] How to check this Imp folder exists or not?? if exists not creating again?? Software Development c++ | |
Please help me i try to display all instances of SQL Server in a combobox. Any help is greatly appreciated. | |
does anyone know how to run any app that it write some vbscript or javascript or html from in vb??? Software Development javascript vb.net vbscript | |
[code]SearchString = "SELECT * FROM Breakdown WHERE BFrom = " & txtFrom.Text ' & " AND BTo = " & txtTo.Text Dim Con As New OleDbConnection(BCalc_ConnectionString) Dim Search As New OleDbCommand(SelectSearchString, Con)[/code] I want to stop users from being able to save a duplicate record in my Access database. I … Software Development vb.net | |
Hi I have been doing text programming for a while now and i was going to start doing some graphical interfaces for my programs but i was wondering which one is the best for beginners and also what and ther advantages/disadvantages of each of them. Thanks | |
Hello, I have a project that needs to implement a Safe Array which is an Array that has bounds checking. On top of that I need to create a "Matrix" class which implements 2D which is basically a Safe array within a Safe array. This is also templatized. The problem … | |
My first vb.net post...:) What I've got: On a form, I have 'Add New Tab' button, a 'Select Picture' button and a TabControl. On the first Tab I have a textbox1and a picturebox1, when the user uses the 'Select picture' button (which calls opentdialog) I load the picture into the … Software Development vb.net | |
Hi, i've been working on simple code just prototyping the system i'd like to make. This all works and is going great apart from my "quit" button, the button appears. however when you click on it, it doesn't close the interface..i think it just stops the code from running or … Software Development python | |
Hey guys. I've been having this problem with a Dynamic list using pointers. I have built the class, then defined a MAX size to the list when first created. Then I thought about maybe the user wants to enter more values, so I made some changes. Here's the code: [code] … Software Development c++ | |
Hi guys, I'm pretty new to VB and am having a little bit of trouble with scroll bars. I have a text box and I want the user to input a value in there but I also want them to increase the value through a scroll bar or decrease the … Software Development visual-basic | |
Hi, I need some algorithms with syntax to work out logical operations using Standard template library(STLs). Please get me some examples of these or teach me regarding logical operations using STLs. Software Development c++ | |
Hi, I have written a web service and have deployed it using Apache Axis2. What I want to do is to invoke this service using a python script. Can anyone point me in the direction of how to do this. I will be grateful If anyone can give me a … | |
okay, this one's supposed to take n numbers, ints/floats, sort them, spit them out... now i have my code, and it looks fine to me, i'm doing bubblesort while checking with a bool function is the first larger than the second string... if i use two numbers, it works fine … Software Development c++ | |
Hello, I have a textbox which I write data out to. I use "\n" to make sure that the next line of data is written on a new line. This works but I keep getting an unwanted character at the end of each line of data written. It looks like … Software Development | |
Hi, I want to replace the numbers which are less than 5 in a container. So i write a code as follows. But it is not working. Please get me the solution for this. Destination container should be V2 itself. Where we have to specify destination container. [code] replace_if(V2.begin(),V2.end(), //range … | |
I have a headache over this one. what i am trying to do is take the text from a multi-line textbox and put it into one line so i can put that into a file for another program to read one line at a time. is there some way to … Software Development vb.net | |
i found my file in vb 4/5 and i want to convert them into vb.net. How i can convert my vb project in vb version 4 / 5 to vb.net? or i must to use convertion tools? Software Development vb.net | |
Hi there, I have a mixed list containing strings, integers, strings with numbers both prefix and suffix and mixed case strings as follow: mixedlist = ["cake", 12, "cakecar", "cAKe", "orange", "apple", "1cake", "cake1"] I'm trying to filter the list for any element containing "cake" so I get a new list … | |
It's my revision question. Please help... Create a Class Employee. This class holds member variables: employee number and salary. It has an array of 4 employees and includes 4 employee number and salary. Has 2 member functions: Get() employee detail, namely number and salary Display() employee detail Create main() I'm … | |
Correct me if I'm wrong but... Each time I declare an object without assigning it a value, I am instantiating it (so long as the valid constructors is called upon doing so--) like... [code=c++] Triangle tri1 (3, 4); [/code] and this object exists on the stackk but only for the … Software Development c++ | |
I found some open source code written in C that does most of what I want for a project and am having some trouble making the modifications I need. I am hoping the solution will help me better understand pointers and memory allocation as well. The original code takes in … Software Development c open-source | |
Hello, I am new to proogramming and I need read the elements from two csv files into a 2 vectors and display the elements of vectors. The csv file is in the following fomat: 200, New york, -23.456, 23.455 201,Chicago,-34.5434,34.546 ..... ..... After that I have to perform string matching … | |
I just started messing with Python, and was having a great time with entering Tkinter GUI commands into the Python shell (ActivePython 2.5). Its fun entering commands one at a time and seeing components appear real-time (instead of normal process of having to compile the whole thing first). Anyway, I … | |
I'm having a little trouble with one of my exceptions. The following code is just a simple division of two integers. I have built two exception to handle an InputMismatch and divide by zero. What I want to happen is when there is an exception, I want the program to … Software Development java | |
Hello, I am having the following problem with calling my function to return the salary it calculated depending on the switch statement. I don't understand the error: ": error C3861: 'getSalary': identifier not found" [code] double Salary::getSalary() { return salary; } void Salary::compute() { cout << "Enter the employee's paycode … Software Development c++ | |
The error is listed in the title and then commented in main (last comment). The program runs but once it encounters the bool expression I overloaded, it seems as if the program pauses. I have a feeling it's a stack overload due to the way my function operates, but I … Software Development c++ | |
I'm trying to use fstreams to read and write binary data to a file with the following code: [CODE]#include <fstream> #include <iostream> using namespace std; int main(){ ofstream out("test.data", ios::binary); for(uint i=0; i<10; i++){ uint outcount = i+100; out.write((char*)&outcount, sizeof(uint)); } ifstream in("test.data", ios::binary); for(int i=0; i<10; i++){ uint incount; … | |
Ok, I am building a text based rpg. This an excerpt from my code. at one point it asks what your name is. When you type that in I put it into a string variable called name but I want to be able to save it to a binary file … Software Development c++ | |
i am working on an application where some test results are received from a serial port and getting stored line by line in a text box.now i have to compare each line with an existing data base( that is with a field of each record )and display interpretation of each … Software Development visual-basic | |
Help - the static_cast< double > is not calculating the value of term and I cannot see what is wrong. [code] void eConstant::compute() { cout << "Enter the desired level of accuracy to calculate the mathematical constant e, \nmeaning the number of terms in the summation: "; cin >> accuracy; … Software Development c++ | |
3.6 * vector_a; why can I not implement this binary operator as a member operator of a class Vector? [code] class cycle { cycle(); ~cycle; pedal(); }; class bicycle { bicycle(); ~cycle; pedal(); }; bicycle *bikeptr = new bicycle; cycle cycleptr=dynamic_cast <cycle>bikeptr; cycleptr->pedal(); [/code] Okay, here are the questions I … Software Development c++ | |
Hello everyone As you can see, this is my first post. We're trying to write a cards game and it uses 12 cards. Someone taught me to put the buttons in an array, which i think is a really good idea. I'm encountering one problem, how do i create an … Software Development java | |
<HTML> <BODY> <APPLET CODE= MyHangman.class WIDTH=1000 HEIGHT=1000> </APPLET> </HTML> I need to know what to do next below is my java file and I am confused with how to check the words i have in the array and the letters guessed in the word....anything would be useful thanks......and do you … Software Development java | |
Hi, was wondering if anyone could help me. I'm creating my own little simple tree structure, consisting of several JTextFields. Each TextField is added to a JPanel, which is finally added to a JScrollPane, which is then added to a JFrame. Everything is fine, apart from the position of the … Software Development java java-swing | |
How do I reverse the numbers in my program to produce the orginal numbers and the numbers in reverse? int magic_box (int N) { int digit1, digit2, digit3; digit1 = N / 100; digit2 = N % 100 /10; digit3 = N % 10; return digit1 + digit2 * 10 … Software Development c++ | |
Ever since I have heard that you can generate classes during runtime (from say, a URL I suppose) and can use java.lang.Reflect to fire methods based on String input, I was wondering how the process is done? Software Development java | |
In a dataGridView1, you can Edit for example 5 Columns but before the First Column there is one column that has a star(*) in fron of the first row. What I wonder here is if it is possible to take this column away. It is possible to 'drag' the column … Software Development c++ | |
I wonder if it is possible to change the color on the headers on a dataGridView1. I have searched in the members and properties but are not sure if I can find anything. By default it seems that the headercolor is "Control". Ex: is it possible to change the color … Software Development c++ | |
OK guys, I've hit a wall & can't find any info on what I'm wanting to do. Maybe someone can help me out here or point me in the right direction please? I have a shelve object- book. If I do book.keys(), naturally I get a list of the keys- … Software Development python |
The End.