43,549 Solved Topics
Remove Filter ![]() | |
I have been working on a project, where I am able to choose the different positions of the body parts of a robot to form a dance step. The head with 3 movements. The left and right arm, shoulder and elbow with 4, 4 and 3 movements respectively. The waist … Software Development visual-studio | |
Assignment 1: Prompt the user to enter a number. After reading the user's input, print a 0 if the number is even or a 1 if the number is odd Assignment 2: Prompt the user to enter a number of seconds between 1 to 86,400. After reading the user's input … | |
Hi all, I've found a few references that address this issue, however I haven't figured out what the solution is in the specific case that I'm dealing with. Hopefully someone can help me out. The following code prototypes the general idea that I'm working with: [CODE] class FooClass { public: … Software Development c++ | |
Hello there, I'm currently using a perl scrip that checks if every line in a file 1.csv is present in a file named 2.csv, and writes only the different lines. The output is a file called out.csv. What I'm trying to do is to write only the most recent lines … Software Development file-system perl | |
I'm having trouble figuring out a few different methods that I'm putting into a constructor. Any chance for advice? I'm having trouble with the last 3 near the bottom. I want to compare two name variable to each other to see if they are the same regardless of case, then … | |
I have a weird problem and I want to know if any of you have any ideas on how to fix this. If I do this... [code] swprintf(Dest, 500, L"G%sY", "AMEDA"); [/code] [b](wchar_t*)Dest[/b] contains the following text... [TEX]GAMEDAY[/TEX] But if I do this... [code] swprintf(Dest, 500, L"G%sY", L"AMEDA"); [/code] [b](wchar_t*)Dest[/b] … | |
Ok here's my problem. What i wanted to do was that if i save the value i enter on my txtbox (txtIDNo) and saves it to my database, the default value should automatically adds 1 or + 1 on it. I set the field data type to Number and the … Software Development visual-basic | |
I have created setup file of my program. I have tried to install it there in two pcs to test it that its working properly or not. One pc has visual studio & my program worked there after being installed but another pc doesnt have visual studio & my program … Software Development asp.net vb.net visual-studio | |
[CODE]Traceback (most recent call last): File "C:\Documents and Settings\Administrator\My Documents\textprocessing\test files\keep 6 latest file.py", line 37, in <module> shutil.move(file_name, dst_file) File "C:\Python31\lib\shutil.py", line 278, in move copy2(src, real_dst) File "C:\Python31\lib\shutil.py", line 113, in copy2 copyfile(src, dst) File "C:\Python31\lib\shutil.py", line 66, in copyfile fsrc = open(src, 'rb') IOError: [Errno 2] No … Software Development file-system python | |
Here i am again. I would like to to know how to use/connect a database for my login program to a Database from another computer. I will be using 2 pc unit and connect them with a CROSSOVER connection UTP Ethernet cable. My Dbase will be on the other unit … Software Development open-source visual-basic | |
Hi. I want to run some shell commands on linux machine with python Popen, for ex. "ping". How I can terminate the process, if it isn't finished normally in a given time? I've tried write some code, can anybody improve it or give some better idea? Any suggestions appreciated. Thanx. … Software Development python | |
Please, How do I properly add a Winsock Control in WPF for purpose of LAN applications? I tried adding the Winsock control dynamically but then the event functions are not available then. Note: Using WindowsFormHost does not show in my WPF application. Help please! | |
could any one help me how to make the label box as transparent.... Software Development vb.net visual-studio | |
Hi everyone. I have two dictionaries. In dictionary1 I have numbers as keys and the occurrence of those numbers as values. In dictonary2 I have numbers again as keys, but there are more numbers here than in dictionary1. The values in dictionary2 are the description of the numbers. From dictionary1 … Software Development python | |
Hi, Am a total newbie to programming & trying to learn python thro pdf tutorials. I have this working code which uses four numbers as arguments to calculate the distance between 2 points. Tried to unsuccessfully convert it to use Class. Can some one guide me & can I request … | |
Hello, I am new to vbs and I am trying to copy 'multiple folders' out of a folder called 'voice profiles' into the 'my documents' folder. I've tried this script I wrote and haven't got the results I've wanted. dim filesys, tempFile, readFile, fileText, fileVer On Error Resume Next '' … Software Development visual-basic | |
hi all am trying to obtain a daily report from my database using the code below but it keeps giving me an error of false,when i say debug.print. when i say rptETR.show it gives me all the transactions and not the daily transactions.below is the code Private Sub Cmddaily_Click() Dim … Software Development visual-basic | |
I have a form (vb.net, VS2010) which retrieves product orders and displays the result to a datagridview and text fields. I also have a combo box which displays a list of all products in a product file. I need to set the displayed text of the combo box to match … Software Development vb.net | |
Hi All, Hope everyone is well, it has been a while since I last posted. I am creating a Yahtzee game, the first thing I want my game to do when it loads is ask for the player/players name/names, so that there scores can be saved to a high scores … Software Development vb.net | |
When you have a file with a lot of lines of numbers. I want to know if instead of writing the formula to calculate the numbers for everyline of data. Is there a way to tell it to apply the formula I have made to every line until there are … Software Development file-system python | |
I'm distributing a binary that users are required to install the following: Microsoft Visual C++ 2005 Redistributable Package (x86) Microsoft Visual C++ 2008 SP1 Redistributable Package (x86) If they don't have them the program puts up a ambiguous error message. I'm not really sure how static linking works, but I … Software Development c++ | |
My program lags the computer because i have it going through a while loop to continue check if a condition is true. Is there any way i can have a wait for user input such as pressing a key to perform the evaluation. Or is there any way to have … Software Development | |
Hi all, Me again. I am having issues with a looping program. My current issue right now is that it wont compile, it keeps saying i need another perentheses at line 20. This program is suppose to calculate the investment and show for every year. The year and amount of … Software Development java java-swing | |
The assignment was to write a C++ program that implements Insertion, Bubble, Merge Sorts for sorting Arrays of non-negative integers. The three Algorithms should return as output not just the sorted Array but also the number of COMPARISONS needed to sort the array. The array is has randomly generated numbers … Software Development c++ visual-studio | |
I am having trouble with the evaluate class. An error message is coming back for the pow(x, degree). I have included the cmath library and have cast x and degree into double. Any hints or tips would be greatly appreciated. I have tested the program without the pow(x, degree) and … Software Development c++ | |
How would I pass something from a driver into a list inside a class. I then need remove a word from the list and replace it with a new word. Software Development python | |
OK so I'm doing this assignment and i'm confuzzled: write a basic class, with a constructor, default constructor, setter and getter functions. This is what I got: [code=c++] class Car { private: int yearModel; string make; int mpg; public: Car(int, string, int); //constructor void setDefault(int, string, int); // def constructor … Software Development c++ | |
Hello DaniWeb, I am pretty new to this community and overall to the C++ language. Not so long ago i've decided to learn C++. Anyways the problem is: I am trying to make a simple calculator, its very easy my problem is i am trying to advance my knowlege about … Software Development c++ | |
So I have an assingment that I am stuck on -_- So I am supposed to create a code that "tests" out a range of integers and determine the perfect squares(4,16,25, etc) within the range without using square root calculations and using a function. I have written the following, and … Software Development python | |
Hello.. i have two datatables with only one column each. i wanted to compare those two columns in two datatables. here is the example dt1 apple orange peach banana dt2 apple peach mango apricot now i want to compare dt2 with dt1. dt2 is bound to a list box. so … Software Development apple | |
I had an assignment to create a calculator in two ways, 1) Method returning values. 2) Method without returning values. I've done this with methods returning values but how could i add, subtract, divide , multiply without returning a value from methods ? [CODE]import java.io.*; class first{ int a=5,b=2,c; public … Software Development java | |
I wanted some information on the return values : 1. Is it always necessary for a return value of [B]main()[/B] to be an integer. 2. What happens if the return value of [B]main()[/B] is not integer. 3. When a return value other than 0 is returned - does it always … Software Development c | |
I'm looking forward to some tips on how to improve this code I wrote. Don't rewrite it yourself please, as I'm really not looking for someone else to do my homework. What advice would you give me? [CODE] import java.util.Random; public class CompareTo { public static void main(String[] args) { … Software Development java | |
Hi there,I am stuck here.The question ask to Write an application for a university admissions office. Prompt the user for a student’s High School Grade Point and an admission test score (value from 0 to 100). Print the message “Accept” if the student has any of the following: A grade … Software Development apple java java-swing | |
Alright, so for the lab I have to do using turtle in python I have to draw an H and then draw H's off of each end of the first H at a 45 degree angle and switch the color between blue and orange. The first H has to be … Software Development python | |
I'm trying to work on a basic checking account program. It will eventually allow the user to make a deposit or withdrawal to an account. I honestly have no idea what I'm doing wrong here, but I'm hoping it's just something incredibly stupid. [code] //Deposit and Withdraw Funds package deposit_withdraw; … Software Development java | |
Hi guys! I'm having a problem with a project in which I analize a .cpp file for certain reasons and I need to create a ifstream Class Variable but I can't! Here in the header I declare the variable, look: [CODE] #ifndef ANALIZADOR2702010 #define ANALIZADOR2702010 #include <iostream> #include <fstream> #include … Software Development c++ | |
How do you store data in the access database and also to retrieve it? and also a search engine for the database? Software Development vb.net visual-studio | |
i'm a new comer to this language. can anybody tell me why this simple piece of code gives me an error indicating that "NameError,name 'example' is not defined". by the way i use Wing IDE to write my codings. class example(): def _init_ (): print("a class is created") def m1 … | |
Hi All, Really appreciate your help!!! I am new to java and this is my new project in java. for my application am trying to get DB results by calling a oracle procedure through JDBC.i was able to do that and was getting results back to the DAO class.am setting … | |
Hi all, I'm new in programing.I'm trying to assign random numbers which math.random will choose.Each time I run program Math.random must choose either 50,100 or 150 ie: 50*1 for 1, 50*2 for 2, 50*3 for 3. I hope my explanation makes sense. Thank you! [CODE] int width; width = (int)(Math.random() … Software Development java | |
Hi all. I recently began to give C++ a go again after failing on the first attempt. I quickly ran into the same problem that led me to C# the first time around. Strings, damn strings. I simply cannot get my head around arrays of charactors, they stress me out, … Software Development c++ | |
I am doing an exercise from Stroustrup's book. It is the drill from chapter 10 on input and output streams. The program I wrote compiles but crashes when it reaches the prompt for the output file name. My IDE (VC++ Express) simply says there is an unhandled exception yielding a … Software Development c++ file-stream ide | |
Hi there; I hope I post this message in true place.My question is about modules in oop. In Code complete, author Mr Steve McConnell mentioned "module" in page 89. [QUOTE] Semantic coupling The most insidious kind of coupling occurs when one module makes use not of some syntactic element of … Software Development c++ | |
I'm beginning a program that needs to read a file given in the command line. My first question is, if my command line looks like: $java mysimulator 5 proc.txt And I want to use proc.txt, which args[i] is it? Right now I'm assuming that the class name is args[0] and … Software Development file-system java | |
I need to write a tic tac toe game that displays who's turn it is. It doesnt have to restart or have AI. Im not sure why everytime i click it repaints a different colors. I want every cell to be one solid color then depending on if its X's … Software Development java java-swing | |
Dear friends, I get a assigment and i very confused with this cases. How to write a function that computes the area of an arbitrary polygon – so not necessarily a triangle or rectangle, etc. The input of the function should be a list of points, where each point is … | |
Can anyone explain why the last line works? It seems like it is trying to cast a CRectangle as a CTriangle (which I imagine should fail?) but it outputs "5" as the function should. [code] // virtual members #include <iostream> using namespace std; class CPolygon { protected: int width, height; … Software Development c++ |
The End.