132,726 Archived Topics
Remove Filter ![]() | |
I need to output picture of a rocket using * the program works. The top of the rocket doesn't line up with the body of the rocket. Can someone point me in the write direction on how to start it. the function i am using is called drawCone. [CODE]#include <iostream> … Software Development c++ | |
hey guys! I need to know how to use pthreads with mutex to protect the critical section!! Software Development c | |
I can not figure out why my code is reading in data to my vector in funny ways. I have added the input file and necesary class to test. It seems to be skipping values in the input file and also adding things to seperate places in the vector instead … Software Development file-system java | |
[B]I included my original code down below....Basically I need some input on where to start off. From what I can tell it seems that I will need to re-organize the code into functions, while implementing the new data structure. Any input would be greatly appreciated.[/B] This time the program would … Software Development c++ data-structure gui user-interface | |
Hey. I have this assignment in which i've to generate prime numbers up to a certain limit. Since i'm extremely new to C++ so i have absolutely no idea what's wrong with the program i have written. I have to keep it simple for my understanding. I've written it in … Software Development c++ | |
Hi, how can I read value of dynamic MaskedTextBox created in GroupBox? [CODE] private void add_groupbox(int x, int y, int id) { GroupBox gb1 = new GroupBox(); MaskedTextBox mtb1 = new MaskedTextBox(); MaskedTextBox mtb2 = new MaskedTextBox(); MaskedTextBox mtb3 = new MaskedTextBox(); mtb1.Location = new Point(46, 18); mtb1.Size = new … Software Development | |
Hey guys i have been told to do this Bank account program as you can see the description below, what i have so far is a program that i can create the bank accounts and delete them within the Frame, what i cant get working is the withdrawing the balance … Software Development data-structure gui java java-swing open-source | |
About "error: assignment of data-member ‘A::pCost’ in read-only structure". Hi there, I got an error as above. My requirements are: I need a derived class A from class B. In A, there are two member functions, i.e., Initialise() and GetCost(). The Initialise() initialises pointer pCost pointing to an array, and … Software Development c++ data-structure | |
Hi guys, Can any help me i had a peoblem please just give me idea. I want to calculate the share of a teacher let me explain how 1.if a teacher teaching three subjects in 10th class and three subjects in 9th 2.i have to calculate 50% of the fee … Software Development visual-basic | |
Hi all people I've written program below for a physics problem. [CODE]#include <iostream> #include <conio.h> #include <math.h> #define g 9.8342998109761958158459616185564 using namespace std; long double theta(unsigned long int n,unsigned long int N){ return (M_PI/2)-n*(M_PI/(2*N)); } long double V(unsigned long int n,unsigned long int N,unsigned long int h){ if(n!=0){ long double … Software Development c++ | |
Help me ! I want to write code read file txt and I want to get each value of arry in file txt, but I don't know get it ! ex : In my file txt have : [CODE][COLOR="Red"]10/30/2010 10:42:48 PM[/COLOR][COLOR="Green"] 19,955.40 19,996.19 20,745.54 3,822.54 28,418.70 32,576.54 2,632.80 468.79 252.42 … Software Development c | |
[B][COLOR="Green"] I want to create labels dynamiclly (at run time) when user clicks one its click events will excute I want like this : [CODE] for i as integer=1 to 10 step 1 '' here label creation end for [/CODE] Thanks for who can help me ... :icon_wink: [/COLOR][/B] Software Development vb.net | |
So I have a small database for managing stationery orders (internally with my company - I order from the stationery dept). In the orders forms i have a subform with the list of items being ordered. I have the Item_ID, description, UnitsOrdered,UnitPrice, TotalPrice. What a code that will lookup the … Software Development microsoft-access sql visual-basic | |
Hi All, Obviously Im a newbie here. Firstly let me first make it clear that I am not really a programmer or a software developer but I have a basic background in Programming, I had 8 units of C++ in college, I am more of inclined into IT Networking. However, … Software Development monitoring-software visual-basic | |
Hi all, Hopefully someone can help me with this one as I've been trying to figure it out for the past several hours with no luck. The idea is to scan a folder of images and then let the user navigate back and forth through the images using a couple … | |
Below has the source code to the program Im writing... anyway I want to do this... I want to be able to include a file from the project in my executable... Example: If I put the program on a different computer, I want it to able to open a file … Software Development algorithm c++ open-source | |
HI Friends i need to convert TCHAR to Boolean value [COLOR="Green"][B]This is what i want[/B] [/COLOR] [COLOR="Red"][CODE]_TCHAR gstrEnableproxy="false" o/p: boolean x=false[/CODE] [/COLOR] [B] and the code i have written is [/B] [CODE]void convertStringBoolean(String* TCHAR) { bool boolVal = false; try { boolVal = system::Convert::ToBoolean(TCHAR); } catch(System::FormatException*) { System::Console::WriteLine("The string TCHAR* … Software Development c++ | |
Hi there, I was wondering if there was an easy way to read the first four bytes of a file. The ones in particular I'm looking for are [inlinecode]49 42 53 50[/inlinecode] ("IBSP") and [inlinecode]46 42 53 50[/inlinecode] ("FBSP"), but that bit should be easy. Software Development vb.net | |
I am getting an expected primary-expression before '=' token, how can I fix this? [CODE]void vldtmv() { if ( brd[opx][opy].cont[1]=='H' ) { if ( ( npx - opx !== 2 && -2 || npy - opy !== 1 && -1 ) && (npx-opx !== 1 && -1 || npy-opy !== … Software Development c++ | |
I think the following problem is a basic one in numerical codes: Suppose that we would like to do a for loop [CODE] for (double x = 0; x < Y; x += dx) { // numeric code } [/CODE] The problem is that if we set dx=0.1 it is … Software Development c++ | |
Hey, I am trying to convert an elbonian date which has a format day-year-month to a US date month-day-year in Long date format, any suggestion on how i can achieve this. Here's what it is suppose to look like: [URL=http://img201.imageshack.us/i/testwf.jpg/][IMG]http://img201.imageshack.us/img201/7435/testwf.jpg[/IMG][/URL] Uploaded with [URL=http://imageshack.us]ImageShack.us[/URL] Software Development vb.net | |
I am facing this problem where one thread keeps adding packets which it receives from the network to linkedlist. And the other thread retrieves it from the linked list. The below is the code of the Thread which keeps receiving the packets and add's them to list. [CODE] private class … Software Development java linked-list | |
I would be very grateful of any insight/resolution of the following issue I need to overcome. Using VS/VB2008 Pro/SQLExpress - all running on XP, I am building a WinForm Application (a Quotation application for Landscape Designers). 48 Bound controls on my form work perfectly with DataSet and Tables when Updating … | |
I created a piece of code that simulates a pendulum with the gravity(assuming no friction or resistance). However, it is not as smooth as I want it to be. So.. does anyone know what I can do to make it smoother? [CODE=java] import java.awt.*; import java.awt.event.*; import java.lang.Math; import java.lang.Runnable; … | |
hi, how could i can connect C# with ms access 2007 as i want to use the data in a form of table in my C# program.As im creating a system to input the marks of the student and the list of student is in ms access so need to … Software Development c# | |
Hi, I am creating a chess program. I am creating each piece on the board. But when I try to compile the bishop piece I get this error [B][I]FATAL : Out of Memory in function set.[/I][/B] What does this mean? Software Development c++ | |
Hi I need to figure out how to make a histogram for a set of data (scores). I need it to display something like A: *** B: ** C: ****** D: * F: **** Here is my function for adding in the scores [code] int addGrades(int grades[], int num_grades) { … Software Development c | |
Hi, I'm reading this book about Java right now and in it was this example so I wrote it off and tested it... I get the error "Exception in thread "main" java.lang.NoSuchMethodError: main" and from what I've understood it's because I am missing a main class... Here's the deal though: … Software Development java | |
Okay.. Currently i already had this code for my registration form [CODE] using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using System.Data.Sql; using System.Data.SqlClient; namespace Thesis { public partial class Registration : Form { Form formParent = null; public Registration(Form par) { … Software Development open-source sql visual-studio | |
Hello Daniweb. I am trying to make an application for a ATM machine (class homework). This is the schematic that I followed [url]http://www.screencast.com/users/haxtor21/folders/Jing/media/303e583a-8f90-46f3-8ed1-a35dde2200bb[/url] My issue is that I'm trying to access a text file and search for a account ID. After the account ID i am doing a nextDouble and … Software Development file-system java java-swing | |
My application uses many Activex control . which do the file handling on client machine. If the application is run on IE than it works fine but in firefox / opera it doesn't as it requires plug inns for Activex which i used. Now i want to replace these activex … Software Development | |
I'm doing a phone number conversion program. I created a method to convert the letter to numbers, and a method to format the phone number(dashes after 3 and 6 numbers). Both methods return a value. I don't want to post the entire program, but the calling method in the main … Software Development java | |
Hi for all, I'm newer with Delphi can anybody help me to convert the following c++ code to delphi7 one's. many thanks in advance c++ code : ********************************* #include <stdio.h> #include <stdlib.h> #include <signal.h> #include <ctype.h> #include <string.h> #include <errno.h> #include <sys/param.h> #include <sys/types.h> #include <netinet/in.h> #include <sys/socket.h> #include <netdb.h> … | |
Hi am a noob working with Apache, mod_wsgi and python. Below is some sample code on the internet that will return "Hello World!" when i go to my local server: [url]www.localhost.com/py[/url] note: I do have WSGIScriptAlias /py "C:/Users/user/site/handler.py" in my httpd.conf [CODE] def application(environ, start_response): status = '200 OK' output … | |
I am writing a program that is supposed to count the number of vowels in an inputted (by the user) body of text. [CODE] import java.util.*; public class Vowels{ public static void main(String[] args){ Scanner console = new Scanner(System.in); int counter= 0; System.out.println("\nInput a sequence of characters"); String text = … Software Development java | |
I could not get this past my editor, and am not bright enough to understand why. My TA and I do not share a common language fluency and I do not understand remotely what he is saying. Can anyone tell me why this doesn't run? [CODE]import java.util.Scanner; public class sumMatrix1 … Software Development java | |
Hi, I need a little help, i found out to repeat an action/animation automatically I need to use a timer but im having troubles implementing it into my script. This is the last few part of the action... public void slowMoveVertical () { sun.slowMoveVertical(-100); } Now I what I want … Software Development java | |
hi, can anyone assist me on this...i want to convert 100 to 1.00 for example 100 = 1.00 200 = 2.00 1000 = 10.00 How do i do that. Please help me. Software Development vb.net | |
Hi guys, I am working on a program for my c class and I was wondering anyone knows if it is possible to define a structure that has dynamic members. I think I saw a thread on this already but when I read it, it didn't quite make sense. This … Software Development c | |
Hello; I need to develop a money class that will simulate the cash box of a register. The cash box will contain coins and currency in the following denominations: $100, $50, $20, $10, $5, $1, $0.25, $0.10, $0.05, and $0.01. I am barely new in C++. I couldn't figure out … | |
Can someone help me figure out how to either round up or down down the numbers? The numbers are used with the asterisks in the bar graph. I'm not sure if I should be using fmod or the round function. Any help would be appreciated. [CODE] #include<iostream> #include<iomanip> #include<cmath> using … | |
I have to write a code that displays a 4 x 4 grid of faces. I am stuck and this is wat i have so far: [code] import java.awt.Graphics; import java.util.Scanner; import javax.swing.JApplet; public class Program7 extends JApplet { public void init() { setSize(2000, 2000); } /** * Draw one … Software Development java java-swing | |
# I'm trying to extract the url's from the below text, without the added html tags. Is there anyway I can get just parts starting with ( [url]http://)[/url] and ending with (")? # <a href="http://www.gumtree.sg/?ChangeLocation=Y" rel="nofollow">Singapore</a>, <a href="http://www.gumtree.com.au/?ChangeLocation=Y" rel="nofollow">Australia</a>, <a href="http://www.gumtree.co.nz/?ChangeLocation=Y" rel="nofollow">New Zealand</a>, <a href="http://www.gumtree.com" rel="nofollow">England</a>, <a href="http://edinburgh.gumtree.com" rel="nofollow">Scotland</a>, <a … Software Development python | |
Hopefully this is my LAST QUESTION!! D:< Anyway, I saw a code on lloydgoodall.com for an LWJGL FPCamera. It had SEVERAL errors, but I finally got to the (hopefully) last error. "Keyboard must be created before you can query key state" My code: [code] import org.lwjgl.Sys; import org.lwjgl.opengl.Display; import org.lwjgl.opengl.GL11; … | |
Hello, Basically I'm trying to use operator<< to display items from a linked list. coding in the header file. [CODE] template <class DataType> struct Node { DataType info; Node<DataType> *next; }; template <class DataType> class LinkedList; template <class DataType> ostream & operator<<(ostream & output, const LinkedList<DataType> & rlist); template <class … Software Development c++ linked-list | |
Hi everyone, can anyone tell me what is an alternate of graphics.h in visual studio/visualc++. Graphics.h is not working on my turbo c complier.plz tell me.. Software Development c++ visual-studio | |
Hi guys. I'm trying to find a good open source project written in C (any kind: email, browser, chat program, communications program, music player) to download for the Mac os X preferably for Xcode. I would like to examine these open source programs' source and understand what they do (pick … Software Development c ide open-source os-x | |
I'm working on a tcp client that will send a message to the tcp sever and the tcp sever will display the message while scrolling it from left to right. I'm including my client and sever code I need help with the text scrolling left to right in a label. … Software Development |
The End.