132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for eagles39

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++
Member Avatar for Taywin
0
2K
Member Avatar for aplh_ucsc

hey guys! I need to know how to use pthreads with mutex to protect the critical section!!

Software Development c
Member Avatar for aplh_ucsc
0
74
Member Avatar for adaniel058

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
Member Avatar for kramerd
0
235
Member Avatar for raider650

[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
Member Avatar for Taywin
0
99
Member Avatar for Meterior

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++
Member Avatar for Meterior
0
94
Member Avatar for nertos

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
Member Avatar for nick.crane
0
106
Member Avatar for manonfire89

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 …

Member Avatar for Taywin
0
218
Member Avatar for ggyyree

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
Member Avatar for Fbody
0
572
Member Avatar for Naveed_786

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
Member Avatar for AndreRet
0
131
Member Avatar for massivefermion

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++
Member Avatar for SasseMan
0
365
Member Avatar for kimlong008

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
Member Avatar for kimlong008
0
112
Member Avatar for Sara Tech

[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
Member Avatar for mihird
0
85
Member Avatar for swathys

hi, i have problem in view the crystal report. 1 ) when i run the report its just show the 1 st page and the rest of the page is not showing at all even the record is nore than a page. 2) the alignment of the report goes bottom …

Software Development vb.net
Member Avatar for AndreRet
0
88
Member Avatar for kayjenx

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
Member Avatar for AndreRet
0
165
Member Avatar for mtug

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
Member Avatar for AndreRet
0
128
Member Avatar for TheMightySpud

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 …

Software Development image vb.net
Member Avatar for TheMightySpud
0
120
Member Avatar for triumphost

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
Member Avatar for Ancient Dragon
0
220
Member Avatar for Nemo_NIIT

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=&quot;false&quot; 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(&quot;The string TCHAR* …

Software Development c++
Member Avatar for Ancient Dragon
0
297
Member Avatar for AzraelUK

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
Member Avatar for yasserjasem
0
157
Member Avatar for jjspikejones
Member Avatar for Ancient Dragon
0
105
Member Avatar for ccube921

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++
Member Avatar for frogboy77
0
175
Member Avatar for merse

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++
Member Avatar for merse
0
372
Member Avatar for h0neydip

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
Member Avatar for TsadokBlok
0
101
Member Avatar for purijatin

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
Member Avatar for JamesCherrill
0
93
Member Avatar for Ennerdale

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 …

Software Development dataset vb.net
Member Avatar for lolafuertes
0
175
Member Avatar for homeryansta

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; …

Software Development gui java
Member Avatar for Eric Cute
0
311
Member Avatar for aowais

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#
Member Avatar for gadflyyy
0
196
Member Avatar for krnekhelesh

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++
Member Avatar for soltanmahmoud
0
446
Member Avatar for LiquidSolid

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
Member Avatar for Adak
0
165
Member Avatar for Checkerboz

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
Member Avatar for Dhruv Gairola
0
167
Member Avatar for DioRani

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
Member Avatar for muzikhera
0
162
Member Avatar for haxtor21

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
Member Avatar for haxtor21
0
194
Member Avatar for Ankuriet

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
Member Avatar for Ankuriet
0
111
Member Avatar for blurX

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
Member Avatar for group256
0
109
Member Avatar for htataw

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> …

Software Development c++ delphi pascal
Member Avatar for pramudiyanto
0
740
Member Avatar for Babduberance

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 …

Software Development apache python
Member Avatar for Babduberance
0
187
Member Avatar for computercoder

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
Member Avatar for Eric Cute
0
106
Member Avatar for ssubnel

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
Member Avatar for ssubnel
0
95
Member Avatar for TankMontna

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
Member Avatar for Ezzaral
0
191
Member Avatar for swathys

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
Member Avatar for swathys
0
186
Member Avatar for y9john

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
Member Avatar for y9john
0
116
Member Avatar for wmc++

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 …

Software Development algorithm c++
Member Avatar for mrnutty
0
586
Member Avatar for jmcorpse

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 …

Software Development c++ ios
Member Avatar for jmcorpse
0
325
Member Avatar for coco24

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
Member Avatar for kramerd
0
145
Member Avatar for Bluerain

# 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
Member Avatar for aml25
0
171
Member Avatar for AaronLLF

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; …

Software Development java opengl
Member Avatar for Ezzaral
0
882
Member Avatar for Tecnicrow

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
Member Avatar for Tecnicrow
0
603
Member Avatar for mushahidh

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
Member Avatar for jonsca
0
3K
Member Avatar for Agnusmaximus

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
Member Avatar for Agnusmaximus
0
217
Member Avatar for jdm

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
Member Avatar for jdm
0
187

The End.