43,549 Solved Topics
Remove Filter ![]() | |
Hi all i am new to Access Some info about my project.. I am designing a system for my company.. my compnay has many contractors. so i have a field in my database called contractors. In a point i need to retrieve how many different kinds of contractors are there … Software Development vb.net | |
Hello I have a VB.NET application that needs to backup a database then restore to a new database in the same Server as I am upgrading an application and I want to retain the existing database. I create a blank database using the following: [code]cmdSA.CommandText = "CREATE DATABASE [newDatabase]" cmdSA.ExecuteNonQuery()[/code] … | |
can anybody help me? i am new in c++.please.. ++ -- *= += -= Software Development c++ | |
I have two other classes but they are very small, and this is where the error lies. This is my code: [CODE]import java.util.Scanner; public class Player { private boolean isHuman; private int score=0; private Scanner input; public Player(int human) { System.out.println("If you would like to play, press 1. Otherwise, press … Software Development java ![]() | |
Given a list of integers, generate the list of the corresponding floats. Software Development python | |
I am trying to read some numerical values from a file and getting this error: Input Error: Error in input: Floating point number not found.; Expecting Real number in the range -1.7976931348623157E308 to 1.7976931348623157E308 [code][code=java] import java.io.*; public class TriangleMain { /** * @param args the command line arguments */ … Software Development file-stream java | |
The following code is producing this problem (typed with exact characters printed in command prompt, aside from quotations): "Please input D for a daytime movie or E for an evening movie: This is not a valid choice." The program will not allow me to input anything following the prompt for … Software Development java user-interface | |
I'm having some trouble with my code. I want to calculate the final balances of some movie tickets based on their day or night showing (and depending on if they are children or adults). So at the end of the code, I've been trying to get the solution to a … Software Development java | |
I need to figure out how to set my overall ticket limit (aticket + cticket) to 100 and if a customer goes over the limit, then they are told that they have ordered too many tickets and that they need to try again and then it loops back through until … Software Development java | |
What I am trying to do is read from a file to an ArrayList and then display it using a JOptionPane. The only problem is the code i am having trouble with is in an ActionListener and I believe somehow I have created an infinite while loop because when I … Software Development java | |
I start learning about python, so i read the tutorial: they show this: >>> x = int(raw_input("Please enter an integer: ")) Please enter an integer: 42 >>> if x < 0: ... x = 0 ... print 'Negative changed to zero' ... elif x == 0: ... print 'Zero' ... … | |
I have a strange problem, when I try to join two strings, one declared as a string() [code=vb]dim string1 as string()[/code] the string contains some data in both str(0) and str(1) but when I try to add that with a regular string: "some text" like this: [code=vb] dim string1 as … Software Development vb.net | |
hi guys wat if List is equivalent 2 Arrays in c or do we have Arrays seperately defined in python?? Software Development python | |
So, I'm dynamically allocating a char array in a function, then returning that array to an un-allocated char array in main(). Code: [code=cpp] #include<iostream> using namespace std; char* cc(char*,char*); int main(){ char* strMain; char* str1="Well, hello there, "; char* str2="How are you?"; strMain=cc(str1,str2); cout<< strMain; } char* cc(char* str1,char*str2){ char* … Software Development c++ | |
hi guys i need your help! i have two date picker and a vsflexgrid in my form then i select datepicker1 month of january datepicker2 month of february i want to display all the records in both month ... example: january 9 records febraury 10 records my sample code: [code] … Software Development visual-basic | |
I have a login page for which users and their passwords hav been updated in database. If a user continuously enters invalid password 3 times then im displaying an error message and blocking the user. when i enter another user name the error message continues to be displayed. btw, im … | |
Our instructor told us to make a scientific calculator using visual basic... though he didn't yet discuss on how... what i made was just a simple calculator that can perform the four basic functions... here is my codes... [code]Dim val1 As Double Dim a As Double, s As Double, m … Software Development visual-basic | |
I have the following code which outputs incorrectly. [code] public static void extend(ArrayList priceList, ArrayList quantityList, ArrayList amountList){ for(int i = 0; i < priceList.size(); i++){ amountList.add((Double)priceList.get(i) * (Double)quantityList.get(i)); System.out.println(priceList.get(i) + " * " + quantityList.get(i) + " = " + amountList.get(i) ); } [/code] The output for some of … Software Development java | |
hi, im new at c#. after using python i need c# for some windows app. my problem is: i have an axshockwaveflashobject in my prog. but its size stable. i want to change it with general desing. if user grow up the window it should change with it. how can … Software Development | |
is it possible, well yes of course its possible, but does anyone know the best way to alter the colour of a word within a sentence in a wxpython window. I know how to change the colour of the entire text but not a specific word. So for instance if … Software Development python | |
Im having a very strange problem that I can't explain =/ this is what the compiler is saying: 1>------ Build started: Project: 3d, Configuration: Debug Win32 ------ 1>Compiling... 1>RENDER.CPP 1>Generating Code... 1>Compiling... 1>GEOM.CPP 1>MAIN.CPP 1>MOVEMENT.CPP 1>Generating Code... 1>Linking... 1>MAIN.obj : error LNK2005: "struct OBJECT * obj" (?obj@@3PAUOBJECT@@A) already defined in … Software Development c++ | |
I'm having some trouble with my while loop in my code. If I enter in 20 and then enter in 14 for the coupons I want to redeem, it goes into a constant loop and doesn't stop. However I did stop it from doing this by putting in a [icode]break;[/icode]. … Software Development c++ | |
Hi Guys, I'm trying to write a program (MFC) that while working displays a log to the user. For this log I thought I'd use an Edit Box because I can set it to be "multiline". What I had in mind is to display each new log entry in a … Software Development c++ | |
Hi.. I had a problem using a Control [ListView] out side its Class[main form class].. So i made that control [ListView] Static ..Now I can Add and Remove Items from The ListView with ease.. Now the problem is that i cannot use the Event's of this ListView. I need Your … Software Development listview | |
Hey! What i am looking for is help on how to work with databases in c#. I have basic knowledge of C# and a pretty good working knowledge of SQL. But I have never learned how to use them together. Can someone point me to a tutorial or something similar … Software Development c# | |
Hi, I have to create a project in C# in which i have to create a XML Tree View, select a xml file from hard drive(System) it is displayed as Tree View on winform. When a [B]user selects a particular node/element in the tree view,its attributes and values have to … Software Development hard-drive xml | |
i want to play an audio file in java without opening a player ... like an alarm ... does any1 knows how to do this.. and r there any sample codes available online ... (please provide relevant links only) | |
![]() | I have two problems with the focus on buttons in this project. I've pared the code down to barebones to show the problems; there are only 2 simple classes remaining & still the problems persist. It compiles, runs (java ColorView), and all that's required to see the problems is simply … Software Development java java-swing ![]() |
I’m very very new in VB6.0 in my project I need a function where I want to pass month name as variable value which will be selected from a combo box by user and the function will generate the full date from starting to end along with the weekday name. … Software Development visual-basic | |
im making a game, called memory game. i don't know the exact codes to make a picturebox move when clicked. i saw a game file that becomes a gif image when clicked, then it randomizes the last image every start of the game. i wanted to make something like that, … Software Development visual-basic | |
Hello, I am working on a project that requires a set of points to be sorted by their angles in relation to the x-axis. The angles, which are in radians, store their angle as a double value. My insertion sort algorithm is failing to properly sort the points based on … | |
Hi, I have been trying to figure this out and I know it must be something simple but I cant get it. Why does the following code give an answer of 1. double a=8; cout<<pow(a,1/3); I would think it should be 2. Thanks Software Development c++ | |
Is it possible to take a label and add the caption to a database? If I try to link the label to the DataField when I run the program it obviously shows no label, and I'm unable to input the data that I need to. I know I could just … Software Development visual-basic | |
Hey everyone, I need help with my program it is an ipod simulator that goes like this: [CODE]/* FUNCTION - void initaPod Initialize all the slots to blank and 0 size memory*/ void initaPod (); /* FUNCTION - int addSong attempts to add a new song to the aPod returns … Software Development c++ | |
why my executable jar file created in Netbeans cant write/output a .txt file. . .my program must create a text file and write with it, how can it doesn't work when i convert it to .jar but if i run it in netbeans it work fine?.. Software Development file-system java | |
Please anyone help me on classes. I have written this class example and keep getting error on that the function is private. I though variables in functions are private but mmh, I think I'm wrong. Can anyone clarify how to rectify this? Also, could you explain to this New Bee … | |
Hello, this is my first post here, so thanks for your time and comprehension. English isnt my first language, so I'll be trying my best. OK, I'm in need for a tutorial where I can find examples on how to make use of files, bit operations and registers(whats a register … | |
hey guys. i'm having trouble with looping a program. my assignment is to get the user to input a string and then display it backwards. i've successfully done this, but it's supposed to ask if you want to run the program again, and that's where my program fails. [CODE]public class … Software Development java | |
I literally picked up asm today. I have been trying to create a 3d software rendering engine in C++, and figured out doing things directly would be faster....but, I tried the following code: [code="cplusplus"] int _tmain(int argc, _TCHAR* argv[]) { int num, timestart, dur; timestart = clock(); for(int i = … Software Development assembly | |
I'm trying to restrict the users input to the selected characters only. "W" "w" or "L" "l" Anything else entered, an error message should display. Can anyone please look at this and tell me what I'm doing wrong? Thank you [CODE] # User Enters either W = Win and L … Software Development python | |
When I was using Python I created a program using basic knowledge of object orientation to compare between different cars. now when i switch to java I come up with a plan to compare lines I have created a point class and get the lines as well but now i … Software Development java | |
I know Python introspection feature are powerful, what I can't seem to figure out is how to get the name of the current class. Example: class Foo: def bar(self): print(classname) Then my output should be `Foo`. Bonus points if I can get which module it resides in too. Thanks! Software Development python | |
hey, i am working on this project, and have made it to the end of the hard coding part. Now i need to work out the bugs / get the thing to compile. I am having some trouble though as i am getting error messages that i dont understand. here … Software Development c++ | |
I just reinstalled OS X 10.5 Leopard on my laptop and restored my data/applications from a Time Machine backup. When I use urllib.urlopen() I get the following error: [code] >>> import urllib >>> u=urllib.urlopen(aUrl) Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/urllib.py", line 82, in … | |
I have currently built a database (based on IMDB) that i can add dictionaries too, list them and exit. [B]I will put the program so far at the bottom of the page, just paste it in and run ti to see what it's like.[/B] I am trying to add a … Software Development python | |
Hello, I have to create a product class that holds the item number, product name, units in stock, and the unit price. I also have to create a java application that displays the same info. I have been working on this for three days now... I am getting frustrated because … Software Development java | |
Hi! I'm using a C program to open PDF files with this code: [code=c] ShellExecute(GetDesktopWindow(), "open", "c:\\someFolder\\myFile.pdf", NULL, NULL, SW_SHOWNORMAL); [/code] Now I need to go furthrer; I need to open the PDF file at a certain page. I've tried [code=c] "c:\\someFolder\\myFile.pdf#page=5"... [/code] ...as is suggested in Adobe's docs, but … | |
Okay, so I am taking an intro class for java programming and my instructions for this program were to write a program that found the first 20 numbers that when divided by 2,3,4,5,6 all left a reminder of one and then when divided by 7, left a reminder of 0. … Software Development java | |
So I got past my last problem using new[], but now I seem to have a new one... I created a char***, var. The goal was to build each dimension of the array to be different sizes at different times, based on separate user input... Here is the code: [code=cpp] … Software Development c++ | |
Hi, I'm having issues with a program that concept-wise sounds very simple. The program should read in data from a text file (attached a2.txt), and perform stack and queue operations upon the data. The data consists of long math problems, dealing with order-of-operations. The correct output that should be appearing … Software Development c++ file-stream queue |
The End.