132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for pendo826

can anyone see why the status.health wont take away the 20 ???? [CODE]#include <iostream> #include <string> // To allow use of Strings. using namespace std; //char inventoryRequest = 'i'; //Function Definitions. void displayInventory(); void displayStats(); void statsObject(); void gameOver(); void stats(); void inventory(); void exitGame(); int playGame(); class status{ public://Access …

Software Development c c# c++ storage
Member Avatar for pendo826
0
198
Member Avatar for minghags

Hello. I have to do an program that writes an scale from num 1 to num 2. I managed to do that writes out from 1 to given number. Can anyone help me do that I can insert an scale starting number? Code: [CODE]#include <iostream> using namespace std; void prime_num(int); …

Software Development c c# c++
Member Avatar for minghags
0
257
Member Avatar for dannydc

Hi All I'm new to VB and trying to learn for a specific project - I've done plenty of VBA (although not for a year or two) in the past but that's my limit. I'm helping to manage some equipment which adds a new record to a csv log file …

Software Development vb.net
Member Avatar for dannydc
0
163
Member Avatar for kkasp

I've searched all over, but Have not been able to find exactly what I need help on. I am creating a program that takes user input of a word and determines if it is a Palindrome or not....the catcher is I need to use stacks. They are confusing to me. …

Software Development mathematics python
Member Avatar for TrustyTony
0
1K
Member Avatar for s_r_k

I'm doing a project for school and I'm having difficulty getting the average of two averages, using arrays. I have to get the average of high temperatures for a year, the average for low temperatures for a year, and then find the average of those average. We used 366 days …

Software Development c++
Member Avatar for s_r_k
0
156
Member Avatar for pendo826

Hi[QUOTE]just wondering how i would set up a menu so that i can call anytime when pressing "M". im nearly sure it would have to be a loop but im not quite sure how to do it. can anybody help? thanks [/QUOTE]

Software Development c++
Member Avatar for pendo826
0
150
Member Avatar for ayeshashahid

i have a serious problem with this malloc function used in C language.i have been studying the topic "new" for few days,and there i found a code in which malloc was used.i am trying to change it to new but my compiler always always CRASHES. the line which i think …

Software Development c++
Member Avatar for ayeshashahid
0
166
Member Avatar for Locke123

I have a subroutine that is passed a pointer to a bit string in the si reg and an index in the ax register. I declared the val variable in the data seg [CODE]getbit: cmp ax, 1783 ; max value of the index being passed ja goback push si mov …

Software Development assembly
Member Avatar for Locke123
0
213
Member Avatar for Behseini

Hi Guys Can you please take a look at following app to see what I am doing wrong? [URL="http://www.mediafire.com/?38pwg0uwj0930e3"]Download App(WinFormsStarts)[/URL] What I want to do is running multiple modal forms AND keeping the MainApp form accessible until finishing all required modals.As you can see from the application, as soon as …

Software Development
Member Avatar for Behseini
0
260
Member Avatar for AmerJamil

i'm beginner in C++, please help me in display function to display the linked list of my following program thanks [CODE] #include <iostream> using namespace std; template< class T > class Lnode { public: T data; Lnode< T > *next; }; template< class T > class List { public: int …

Software Development c++ display linked-list
Member Avatar for mazzica1
0
155
Member Avatar for cgen

I need help understanding this algorithm Design a variation of algorithm TreeSearch for performing the operation findAl(k) in an ordered dictionary implemented with a binary search tree T, and show that it runs in time O(h + s), where h is the height of T and s is the size …

Software Development algorithm java
Member Avatar for cgen
0
423
Member Avatar for glamourhits

Your task is to implement Stack and Queue classes for Objects. Both Stack and Queue should extend Collection, which is an abstract class that will be given to you. You will need to download and modify the NetBeans project that goes along with this assignment. Stack should have the following …

Software Development java java-netbeans queue
Member Avatar for Taywin
0
589
Member Avatar for corby

is this a valid statement in in c: &main, where main is int main()? If so why?

Software Development c
Member Avatar for Narue
0
144
Member Avatar for PSP1202

Hey all I'm having trouble with loops again and this time it is for loops. I need to calculate monthly balance and interest paid on a balloon mortgage and am having trouble with the calculations. An example of what the program should look like: Enter Mortgage: 100000 Enter Interest Rate: …

Software Development c++ ios
Member Avatar for WaltP
0
113
Member Avatar for IndianaRonaldo

Hi all, I am just going through C++ basics now and I read that enum types cannot be input directly with cout and cin and such.And also that type coercion from int to enum is not allowed.But when i do this, [CODE] enum SumEnum{ENUM1,ENUM2,ENUM3} SumEnum VarEnum; scanf("%d",&VarEnum); printf("%d",VarEnum); [/CODE] It …

Software Development c++ daniweb-bug
Member Avatar for Tumlee
0
1K
Member Avatar for needhelpinjav

Write a java project (applet) that has two classes. The driver class (has the init() method) should allow the user to enter into an Input Dialog Box, the mail type ("P" for Priority or "F" for First Class), a blank space, and the weight in ounces of the piece of …

Software Development java java-swing
Member Avatar for mKorbel
0
251
Member Avatar for cse.avinash

Hello everyone I am trying to apply [URL="http://en.wikipedia.org/wiki/Sieve_of_Eratosthenes"]Sieve of Eratosthenes[/URL] in program, but its not working. Here is my code:-- [CODE] #include<stdio.h> long long arr[10000]={0}; int main() { long long i,j,num,inc=2,m=0; num=5000; for(i=0;i<num;i++)arr[i]=i; for(i=2;i<=num/2;i++){ if(arr[i]>0) { for(j=inc*i;arr[j]<=num;j=j+i) arr[j]=-1; inc++; } } for(i=0;i<num;i++)printf("%lld ",arr[i]); printf("\n"); return 0; } [/CODE] This code …

Software Development c
Member Avatar for cse.avinash
0
103
Member Avatar for bogut

The question is as follows: How long – number of steps -- does it take a drunken ant to fall off the edge of a square table if it starts in the middle? Perform a simulation to find out. Imagine an ant in the middle of a table with, say, …

Software Development delphi pascal
Member Avatar for FlamingClaw
0
191
Member Avatar for Creatinas

Hello again, Can someone please help me learn some easy multiprocessing or threading :) I want to write a simple program that opens let say ~50-100 web page at a same time and write some HTML from those sites. What is better to use multiprocessing of threading? What different ? …

Software Development python
Member Avatar for Gribouillis
0
177
Member Avatar for dorkwad

Hey, i'm trying to have 2 browse file dialog boxes, one that allows you to select a file from a folder, and the other folder should allow you to chose the location to copy the file to. Thanks

Software Development vb.net
Member Avatar for zakeer.ms
0
180
Member Avatar for grimreaperx2

Ok I have been working on this program for some time now. The program is to take any number of any size and then add them together. After which it will print out the result. The problem I am having is that the gut of the add function seems to …

Software Development c++
Member Avatar for aramil daern
0
112
Member Avatar for compulove

I have code (below) that opens a dialog box to either open or save a file. What I need to do though, is have the file location in the textbox next to it. Can anyone tell me the code to do that? [ICODE] protected void Browse_Click(object sender, EventArgs e) { …

Software Development asp vb.net
Member Avatar for butler1233
0
175
Member Avatar for ddanbe

This is code to plot a "random walk" in polar coordinates.See also: [url]http://www.daniweb.com/software-development/csharp/code/379275[/url] Just posted the code of my main form, more details can be found in the zip file. I also included a sample output. I perhaps intend to use this in some sort of game, were a biologist …

Software Development
Member Avatar for ddanbe
0
414
Member Avatar for vict1

I want to write a C++ class, like this: In MyClass.h: [CODE]class CMyClass { public: CMyClass(); int MyFun(int a, int b); protected: int m_iData; BOOL m_bFlag; }[/CODE] In MyClass.cpp [CODE]CMyClass::CMyClass() { // Some initialization codes } int CMyClass::MyFun(int a, int b) { // Implemenation of MyFun }[/CODE] Now I want …

Software Development c++
Member Avatar for vijayan121
0
156
Member Avatar for rahman86

hello guys in daniweb. i have a application windows based created in vb.net that contains crystal reports and access .accdb files. to be honest i have tried to publish this app for 11 times and still there to be some problem. the application will install but it cannot run. it …

Software Development microsoft-access vb.net visual-basic
Member Avatar for rahman86
0
733
Member Avatar for compulove

I know this question has been asked dozens of times, but the code I have been looking at has not helped me. So far I have been able to connect to the string and the database from where I need to check the username, but in my page it is …

Software Development asp sql vb.net
Member Avatar for compulove
0
242
Member Avatar for GatorProgrammer

As the title suggest this is about problems I have having with writing my Caesar Cipher. I know how they work but I don't know exactly how to write it. And I know that many of you are wondering why I just don't read the hundreds of other Caesar Cipher …

Software Development c++
Member Avatar for Satyrn
0
126
Member Avatar for asif123

how i move the mouse cursor . and create left, right and double cliks using visual c++ i m new to visual c++

Software Development c++
Member Avatar for Narue
0
148
Member Avatar for Joey_Brown

First of all, hello Im Joey and Ive recently started messing around with the Java language. Ill do my best not to bother you alot with my newbie questions :) So I need to create a method that returns some variables I have encapsulated, as String but without the last …

Software Development java
Member Avatar for Joey_Brown
0
161
Member Avatar for Panathinaikos22

Hello, im trying to create a cos function in MATLAB, but it is wrong. :/ well from Taylor serie we have [CODE]cosx = 1 - x^2/2! + x^4/4! - x^6/6! +... + x^n/n![/CODE] or for noobs -> [CODE]cosx = x^1/1! - x^2/2! + x^4/4! - x^6/6! +... + x^n/n![/CODE] this …

Software Development
Member Avatar for Panathinaikos22
0
330
Member Avatar for theadjectivenou

I need help trying to figure out what I am doing wrong. my teachers wants two different sentences to read as "Wow, (insert word 1) and (Insert word 2) are funny" and on the second line he wants them reversed to read "Wow, (insert Word 2) and (Insert Word 1) …

Software Development java
Member Avatar for Taywin
0
114
Member Avatar for Stefano Mtangoo

Hi, Is there tutorial somewhereto use Python with EWS? I'm trying to develop a program that will interact with Microsoft Exchange Server without using managed services Thanks

Software Development email python
0
101
Member Avatar for dannyDaniweb

I'm trying to build the package for use in Maya. Maya comes with its own python installation so the .exe installer for this package doesn't work for me. the package is [URL="http://polygon.origo.ethz.ch/"]Polygon[/URL] I downloaded the zip. It contains: setup.py /src /Polygon and some other stuff In cygwin I run: ./mayapy.exe …

Software Development python
Member Avatar for dannyDaniweb
0
367
Member Avatar for The_Tiger

Hi everyone, I really need help to make the below code calculate the numeric value for each name separately. for example: if i enter "Williams smith", it will calculate the first name and give its value alone and calculate the second name and give its value too. the code right …

Software Development python
Member Avatar for Tech B
0
123
Member Avatar for IT_Techno

hi every one, i want to convert my usb flash to dongle flash, but i donot understand the way that the dongle is work or how did it develope its software i want any one to help me to understand how to programme my owne dongle and how does the …

Software Development flash
Member Avatar for hypermatter
0
10K
Member Avatar for TheChosen0ne

My exe requires a dll to run, I have to keep moving the dll to the exe's folder to run it properly :( How can I combine the 2 files together as one? :(

Software Development c++
Member Avatar for Stefano Mtangoo
0
152
Member Avatar for ohlermsu

I am in desperate need of help with a python 2.7 project I am working on. I am really struggling in the class and they messed up my tutoring appointment for tonight so I have no one to help me. I am doing a project that reads a .csv file …

Software Development python
Member Avatar for Stefano Mtangoo
0
220
Member Avatar for ben1996123

I've never had a problem with files before, but now I can't seem to get it to work properly. I have this code: [CODE] fstream someFile("file.txt"); switch(choice){ case 1: cout << "Enter date: "; cin >> date2; cout << "Month: "; cin >> month2; cout << "Year: "; cin >> …

Software Development c++
Member Avatar for WaltP
0
136
Member Avatar for khentz

Hi, I would like to know how can i change the panel location where my pointer points?

Software Development vb.net
Member Avatar for khentz
0
1K
Member Avatar for dwiniers

Hello there i need your expertise in VB6 i make some program using the navigation key and add, edit, delete, search command button. The program is almost 99% working. By the way im using adodc and access in my db and combo box using with search fields. My problem now …

Software Development visual-basic
Member Avatar for dwiniers
0
339
Member Avatar for ravsau

I have written a solution to the following assignment but I wont get any output. I used System.out.println randomly to see where my program stops and I figured out it is righ after the while (inputFile.hasNext()) method. Any suggestion will be great. Thanks! my assignment: build a program that uses …

Software Development java
Member Avatar for stevanity
0
3K
Member Avatar for philipghu

Hi everyone, I just switched from Java to C++ and not so familiar with memory management in C++. I dynamically allocated an array which holds F_HeapNode objects. Whenever I assigned a value to the element of this array, I got an error message saying" no operator = matched these operands". …

Software Development c++
Member Avatar for philipghu
0
171
Member Avatar for neveragn

how do you promt the program from positive integars terminatd by -1 .. and then ask for smallest of these integars. I did everything except when I add (!= EOF) .. It shows the same prompt multiple times should I still keep the code or is there a specific error? …

Software Development c
Member Avatar for neveragn
0
258
Member Avatar for gahhon

[CODE] //Member Login public static boolean memberLogin(){ int memberPassword = 123; boolean password = false; int confirm = JOptionPane.showConfirmDialog(null, "Are You A Member? ", "Member Confirmation", JOptionPane.YES_NO_OPTION); do{ while(confirm == JOptionPane.YES_OPTION && password == false){ String tempCurrentPassword = JOptionPane.showInputDialog(null, "Please Enter Your Password", "Default Password = 123"); int currentPassword = …

Software Development java
Member Avatar for stevanity
0
209
Member Avatar for paulsoncall

Hi - I'm having a hard time figured out how to print the triangle shape below using loops. I did the two previous triangles with no issue but have no idea how to get the spaces in there. I'm really confused and would appreciate any help. [CODE] * ** *** …

Software Development java
Member Avatar for paulsoncall
0
263
Member Avatar for infantheartlyje

HI folks, This is my code. How can i pass a outside structure parameter to a class method? [CODE]using namespace std; struct status { char name[80]; double balance; unsigned long account_num; }; class FileHandler { public: FileHandler(string); ~FileHandler(); int getRecords(struct status *); int putRecords(struct status *); private: string fileName; fstream …

Software Development c++ file-system ios
Member Avatar for raptr_dflo
0
175
Member Avatar for persianprez

So this is my assignment: Represent the concept of a Number. For this example a Number is a thing that can be added subtracted, multiplied and divided. Each of these operations is binary and produces a Number as a result. Encode the the Notion of of an Int (an integer …

Software Development java
Member Avatar for persianprez
0
146
Member Avatar for ronak127

hey guys I'm a newb to this C++ programming and I need help. I've made a non-recursive GCD C++ code, but i was having problems with the algorithm. Can someone help please? [ICODE]import java.util.Scanner; public class GCD { public static int GCD; public static int div; public static int remainder …

Software Development algorithm c++ java
Member Avatar for mrnutty
0
180
Member Avatar for newbie26

hi! i have a DataList view in created in vb.net (4 columns) how can i make this work?: the data from the first two columns will be from the database and the next two columns will be inputted by the user. and when i click save, all of the data …

Software Development vb.net
Member Avatar for newbie26
0
239
Member Avatar for HASHMI007

Assume the following specification of a node of linked structure and the class [CODE]// LinkedStructure And the class.cpp : Defines the entry point for the console application. // #include "stdafx.h" #include<iostream> #include<stdio.h> #include<stdlib.h> #include<conio.h> using namespace std; struct Node{ int info; struct Node *next; }; typedef struct Node * NODEPTR …

Software Development c++
Member Avatar for raptr_dflo
0
100

The End.