132,726 Archived Topics
Remove Filter ![]() | |
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 … | |
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); … | |
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 | |
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 | |
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++ | |
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++ | |
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++ | |
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 | |
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 | |
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 | |
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 … | |
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 | |
is this a valid statement in in c: &main, where main is int main()? If so why? Software Development c | |
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: … | |
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 | |
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 | |
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 | |
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, … | |
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 | |
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 | |
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++ | |
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) { … | |
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 | |
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++ | |
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 | |
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 … | |
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++ | |
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++ | |
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 | |
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 | |
![]() | 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 |
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 | |
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 | |
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 | |
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 | |
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++ | |
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 | |
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++ | |
Hi, I would like to know how can i change the panel location where my pointer points? Software Development vb.net | |
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 | |
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 | |
![]() | 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++ ![]() |
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 | |
[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 | |
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 | |
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 | |
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 | |
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 … | |
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 | |
![]() | 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++ |
The End.