132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for josh48

I got this code and I cannot get it to work. I want it to show up with the type of attacks you can do which it does. After each time you attack the enemy the enemy attacks you of a damage between 1-10, then its my turn etc until …

Software Development pascal
Member Avatar for FlamingClaw
0
157
Member Avatar for jessicamelillo

I have a project due for my computer programming class on Monday, and though I've completed the majority of the program, I now have to loop it and have no idea how. Here is the program: #include<iostream.h> int add (); int subtract (); int multiply (); int division (); void …

Software Development c++
Member Avatar for Murtan
0
90
Member Avatar for merse

Let us have a complex class with two double data member. If I would like to copy it by reference that means that I have two copy one or two pointers?

Software Development c++
Member Avatar for merse
0
67
Member Avatar for Seriss

I have to write a program which uses 2 classes to load 2 dat files into arrays. I then have to somehow compare the IDs in array1 to the IDs in array2 to get the extra IDs out of array1. These extra IDs then have to be stored somewhere so …

Software Development c++
Member Avatar for Seriss
0
86
Member Avatar for Mclovin1234

Hey, what i am trying to do is to write a function that inputs a student's average and returns 4 if a students average is 90-100, 3 if the average is 80-89, 2 if the average is 70-79, 1 if the average is 60-69, and 0 if the average is …

Software Development c++
Member Avatar for Grn Xtrm
0
362
Member Avatar for mr.hassan4489

The Question is : A store has 6 items. Each item has a price and a bar-code that uniquely identifies it. To simulate such a store, the program offers a menu showing the codes, their corresponding items, and their prices. The user chooses one or several items to buy, and …

Software Development c++
Member Avatar for zobadof
0
152
Member Avatar for DCV

Hey, I'm in a class in which the assignment here is to sort integers. We were called on to use two different sorting methods: InsertSort and HeapSort. My InsertSort works just fine. My HeapSort, however, does not; when the HeapSort() function is finished, the integers are still out of order. …

Software Development algorithm c++ ios
Member Avatar for Narue
0
137
Member Avatar for hao90

[CODE]#include <iostream> #include <cstring> using namespace std; int numberOfDeposit, numberOfWithdrawal; double monthlyInterestRate, monthlyInterest; float totalAmount; double MonthlyServiceCharge; int selections, choices, functions; string name, address, loginID; int idNum, password; class bankAccount { public: bankAccount() { float balance; double annualInterestRate; } float thismonthDeposit; float thismonthwithdrawal; float balance; float getbalance() { return balance; …

Software Development c++
Member Avatar for zobadof
0
188
Member Avatar for eissen_eiram

i have this program and i'm already done with the data entry, search, display and exit menu.. my only problem is my search and delete and the search and edit...please help me. i've attached my unfinished program here: Programming Assignment: Write a program to simulate a telephone directory. The user …

Software Development c data-structure file-system
Member Avatar for jephthah
0
157
Member Avatar for intelnf09

Hello I have an assignment that is due and am in need of some dire help. I would appreciate all the help that I can get. Please bear with me. I am new to Java and Daniweb. I have to create a java application that displays the product number, product …

Software Development java
Member Avatar for intelnf09
0
1K
Member Avatar for wittykitty

I have viewed a lot of threads out there relating to what I am looking for and can't seem to find one that will help. I am reading data in from a file. Even though I already know how many names are stored in the file, I need to write …

Software Development c++
Member Avatar for jonsca
0
221
Member Avatar for fummy

Can someone help please! I need to search for a different set of strings like: 'fummy' or 'users' or 'logon' from a directory like this: C:\mycase\Nic..\ A Text document is stored in there LIKE: 544, Text Document, 45, 588 KB Can some help to write a script or python program …

Software Development python
Member Avatar for Murtan
0
187
Member Avatar for Kippstah

Ok. So. Who doesn't know how to convert on paper or in their head decimal numbers ==» binary number, or vise-versa? Well. I've successfully programmed a conversion calculator for those who just never took the time to learn, for those who don't care to learn, and for those who've got …

Software Development python
Member Avatar for Kippstah
0
1K
Member Avatar for Yeen

I've been trying to figure out how to capitalize all the sentences in a string. In the string [CODE]a = "this is the test string! will it work? let's find out. it should work! or should it? oh yes. indeed." [/CODE] I want all the characters after [I]". " "! …

Software Development python
Member Avatar for Yeen
0
1K
Member Avatar for foxmulder

Hi! I have 5 different functions which all must be connected to main, for example a menu that calls each function. How do I do this? Thanks in advance! Best regards Adam

Software Development c++
Member Avatar for kevinkace
0
118
Member Avatar for micka10

Hello, I have a problem to add string arrays into the ArrayList. My data is recorded as: {"1","0","a"}, {"1","1","b"}, .... I'm going through the "for" loop and trying to store each of these records into the ArrayList, but, after it stores all records, it appears that all elements in the …

Software Development
Member Avatar for micka10
0
268
Member Avatar for Fenrir190

[CODE] ;==================Prompts=============== warning db "Invalid order. The dividend should be greater than the divisor",0 prompt1 db 0dh,0ah,"Please enter a dividend ",0 prompt2 db 0dh,0ah,"Please enter a divisor ",0 Display db 0dh,0ah,"Quotient: ",0 Display2 db 0dh,0ah,"Remainder: ",0 ;==================Variables============= dividend word ? ; Holds the dividend divisor word ? ; Holds the …

Software Development assembly
Member Avatar for NotNull
0
157
Member Avatar for ellimist14

I realize no one is going to want to read through this source code but if anyone does and is able to tell me why I'm getting the errors I'm getting I would be extremely grateful and would pay them back somehow. My code is as follows (I just put …

Software Development c++ linked-list open-source queue
Member Avatar for shaneselling
0
139
Member Avatar for CodyOebel

I got this to compile, but it's not popping my Dialog box. The tutorial from [url]www.winprog.org/tutorial[/url] didnt necessarily specify where my AboutDlgProc() is suppose to go ? I assumed it went above the Default but I am unsure... I'm trying to understand why it's not popping my Aboout Dialog when …

Software Development api c++
Member Avatar for CodyOebel
0
147
Member Avatar for lotrsimp12345

gives me error on 3rd coded line in search(). [CODE] #ifndef MY_HT_CHAIN_H #define MY_HT_CHAIN_H #include <iostream> #include <vector> #include <list> using namespace std; class my_ht_chain { public: //constructor which creates a table of a certain size my_ht_chain(int initTableSize); //destructor ~my_ht_chain(); //insert a value based on key void insert(int key); //search …

Software Development c++
Member Avatar for lotrsimp12345
0
102
Member Avatar for blerina12

Hello guys. I want to compare two files using a system call to DOS command fc. The problem is that fc does not open the file entered as a command line argument. [code] code = system("fc args[1] ..\\o.txt"); [/code] Does anybody know how to make it work?

Software Development c++
Member Avatar for blerina12
0
153
Member Avatar for JeyC

I Have a code that fails abruptly after going through several hundred times around a for loop. (The loop is not over yet . I can see that from my printed output) Pinpointing the exact location (line number) and variables at that point of failure can provide me with useful …

Software Development c++
Member Avatar for jonsca
0
103
Member Avatar for khemalatha

Hi, I created simple exe file that contains month calendar control using framework 3.5 in XP machine and run this exe in vista the month calendar control not fully display, i write the following code to check for OS [Code] if (_operatingSystemName.ToLower().Contains("microsoft® windows vistaâ„¢") == true) { QuickCalendar quick = …

Software Development display microsoft-windows windows-vista
Member Avatar for ddanbe
0
89
Member Avatar for xavier666

During run-time of a menu driven program, I want the user to see what option the user has entered. Something like this :- [CODE][OUTPUT] . . . Enter Option : [1] <- [I]User given[/I] Press Any Key To Continue ... [_] <- [I]Blinking Cursor[/I] . . . [/OUTPUT][/CODE] After I …

Software Development c
Member Avatar for xavier666
0
155
Member Avatar for abc16

HI i am making a window aaplication using MS Access data base........ I have three combobox of Class, section and subject on form, now i want that when user first select class ,then he selects any section corresponding to that class and then from the third combo he could select …

Software Development
Member Avatar for towerrounder
0
92
Member Avatar for masapo

I have been given an assignment to design and program a calculator using C++ and Ultimate ++IDE(Integrated development Environment). My code should have a class Calculator as a base class, and another class scientificCalculator which inherits from class Calculator. The Calculator class performs basic arithmetic operations. The scientificCalculator adds more …

Software Development c++ ide
Member Avatar for Narue
0
119
Member Avatar for vegaseat

Here we apply the module difflib to compare two texts line by line and show the lines of the first text that are different from the second text.

Software Development python
Member Avatar for jimothy
0
236
Member Avatar for speedy94519

Hello im having trouble understanding between the difference 0 and 1 in C. the way i understood it is that 0 is true and 1 is false. Is this correct??? or is it 0 is false and 1 is true??

Software Development c
Member Avatar for Narue
0
295
Member Avatar for checker

[CODE]element = {'H': 1, 'N': 6, 'F': 7, 'Cl': 7} i = input("Enter: ") dots = '*' totalDots = (dots * i)[/CODE] Enter: H Traceback (most recent call last): File "D:/Python26/lewisdot.py", line 4, in <module> i = input("Enter: ") File "<string>", line 1, in <module> NameError: name 'H' is not …

Software Development python
Member Avatar for jimothy
0
148
Member Avatar for Amreen

How to change screen colour, font colour, making various shapes , presenting slide shows in c++

Software Development c++
Member Avatar for zobadof
0
57
Member Avatar for pytup

I have a code: [CODE]Private Sub OK_Click() Dim Username As String Username = InputBox("Username") If Username = "Martyna" Then MsgBox "Welcome, " & Username Else: MsgBox "Sorry, access is denied, please Check your username and try again" End If End Sub[/CODE] and it should ask 3 time for username then …

Software Development visual-basic
Member Avatar for vb5prgrmr
0
86
Member Avatar for aparnesh

One of the requirements in a new project in VB is that 'it should good look'. Naturally the client doesn't have any clear idea about 'good looking apps' but wants it to look 'real good'. I can give it a XP style look using manifest, but I was wondering if …

Software Development ide visual-basic
Member Avatar for vb5prgrmr
0
221
Member Avatar for betty_vaness

1,a,Summarise the rules that apply to naming variables in visual basic b, i.) Define a multi-component user-defined data type called AirHandler having the ff components: colour (string) MachineNo (long integer) Length (single-precision real) Breath (single-precision real) Height (single-precision real) Cost (single precision real) ii)Declare a variable called AC_For_Barclays of type …

Software Development visual-basic
Member Avatar for vb5prgrmr
0
139
Member Avatar for DIPY

Hi, When I try to build my code it gives an error "Not all code paths return a value". Please find the code below: public TreeNode FindInstanceNode(string SubContainer,string instance) { TreeNode Node = GetTreeViewClickedNode(); foreach (TreeNode trNode in Node.Nodes) { if (trNode.Text == "SUB-CONTAINERS") { TreeNodeCollection tcSubNodes = trNode.Nodes; foreach …

Software Development
Member Avatar for Geekitygeek
0
132
Member Avatar for Neona

Hello there. I've put together an Access Database which handles opening hours. However I want to be able to update each day individually, but at the moment it updates the entire week in one go. I know that I'm supposed to add some sort of WHERE in my sql sentence, …

Software Development microsoft-access open-source
Member Avatar for Neona
0
138
Member Avatar for Ulukay

I got a button array of 40 buttons And i handle all the button events in 1 sub . But i need to know what button is pressed. Can someone help me ? [CODE] Private bttonArray(41) As Button Public Sub Hoofdscherm_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load …

Software Development gui vb.net
Member Avatar for morke
0
556
Member Avatar for sara_2

please iwana to ansewr this question todaaaaaaaaaay iwana to help me>>>>>>>>>>> 4. (Combining Class Time and Class Date) Combine the modified Time class of Exercise 9.7 and the modified Date class of Exercise 9.8 into one class called DateAndTime. Modify the tick function to call the nextday function if the …

Software Development c++
Member Avatar for kvprajapati
0
130
Member Avatar for Mitja Bonca

I want to retrieve only one column from dataset or datatable. the dataset has one table and that table has many column. But I want only one column from that table. How can i do it? And that will be still in a dataSet, not in a string.

Software Development dataset
Member Avatar for towerrounder
0
95
Member Avatar for newcpp

this is my code, when I comment all output code(printf cout), the compiler told me "Debug Error!", why? [CODE]#include <stdio.h> #include <string.h> #include <iostream> using namespace std; int main () { char buf[]=" 1 1 1201 1 -0.349200000000000D+06 0.115200000000000D+06"; char* cpr; /* cout<<sizeof(buf)<<endl;*/ /* cout<<(buf+25)<<endl;*/ for (cpr = buf+25; cpr …

Software Development c++
Member Avatar for newcpp
0
79
Member Avatar for amishraa

Need help with calculating student grades using arrays. If I have the names and subsequent grades listed on notepad input file. eg. Name1 23 43 54 23 43 54 Name2 54 34 65 76 23 54 Name3 97 68 45 68 86 58 How do I setup two dimensional array …

Software Development c++
Member Avatar for amishraa
0
155
Member Avatar for reyarita

enter 5 nodes if there is a number "3" entered, a number "4" is automatically inputed at the right side of number "3". if there is a number "2" entered, a number "1" is automatically inputed at the left side of number "2". can you help me dudes you see …

Software Development data-structure java
Member Avatar for BestJewSinceJC
0
79
Member Avatar for vikramsra

Hi, i am new to python world my problem is that i am getting a output file from a software which is very messy first i just want to delete first 3 rows and the columns F onwards from the excel file and that i just want to change the …

Software Development microsoft-office python
Member Avatar for vikramsra
0
204
Member Avatar for EliteApple

Hi everyone I need major help i took a class in c++ and was doing fine until the last challenge, I need help with it in every way, below is what is wanted but I cant understand anything please help me This program will include error trapping with try and …

Software Development c++ data-structure
Member Avatar for EliteApple
0
576
Member Avatar for Afupi

I am trying to sort out how to use the traversals in my tree to save to a txt file. Currently it is only ouputting the items stored within the node to the console. The traversals are located at lines 99-128 [CODE]#ifndef TREE_H__ #define TREE_H__ #include <string> #include <fstream> #include …

Software Development c++ storage
Member Avatar for mrnutty
0
106
Member Avatar for lisedaton

hi everybody!!! I will really appreciate if somebody could help me.... we are working with c and python and the same time and it gets confusing sometimes... I need to write a program in python tha will receive a string and it will print only the number in the string …

Software Development python
Member Avatar for Namibnat
0
93
Member Avatar for saj_amo

hi guys, i have a problem in crystal report when i am getting a data from database field that field has 30 words i want that in my report that field should be broke in 10 words each line so how can i do this please help me.

Software Development vb.net
Member Avatar for saj_amo
0
318
Member Avatar for laelzio.mosca

Can someone help me please? I have to do this turkey project, everything is working ok, exept for my oven time. when it prints this line: [CODE]cout << "Put the turkey in the oven on the " << startThawDay + howLongToThaw <<"th " << " at " << ovenTime <<" …

Software Development apple c++
Member Avatar for valtikz
0
88
Member Avatar for santosh.ssit

Hi how to get wat all buttons are present in GUI window using python here i want to read all the buttons present in a window .

Software Development gui python
Member Avatar for lllllIllIlllI
0
82
Member Avatar for Jaydenn

Do you guys think this code will function properly? [CODE] public void LoadUser(string UserName, string Password) { try { using (StreamReader sr = new StreamReader("./Users/" + UserName + ".txt")) { string Line; bool passCorrect = false; bool userCorrect = false; while ((Line = sr.ReadLine()) != null) { if (Line.Equals("UserName = …

Software Development
Member Avatar for Jaydenn
0
137
Member Avatar for Roebuc

I am not sure if this is the correct category for VXML but it is very similar to XML; so I am hoping this will fly. Please move to another forum if necessary. I am a Grad-Student and my thesis is working with VXML. I have built my application to …

Software Development web-browser web-server xml
Member Avatar for millermccullum
0
187

The End.