132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Bouzy210

Hello, I am new to daniWeb. I am creating a script but have run into a problem when it comes to printing the line number. [CODE]print for word in words: word = clearup(word) if word in dictionary: pass else: print word [/CODE] On the last line I want to do …

Software Development python
Member Avatar for Stefano Mtangoo
0
126
Member Avatar for DemonGal711

My assignment is to take in values that will create a maze, and then let the user traverse the maze by use of a stack to store values. I thought I had it down to it working, but now it isn't doing what it should and then it stops after …

Software Development c++
Member Avatar for DemonGal711
0
101
Member Avatar for shiniboy

You are supplied with a group of implemented sorting algorithms (posted file sortTest.cpp). You may not change the prototypes or any of the provided code. You will add a main program to use the functions you are given. You will also add one additional function VerirySorted. This function will take …

Software Development c++
Member Avatar for heerokeno
0
214
Member Avatar for Nasi23

Hi guys im getting some errors here and cant seem to find why? [code] #include <iostream> #include <iomanip> using namespace std; class Student{ public: Student (Mary, 100, 99, 88, 1); void getInfo(); void showInfo(); private: string name; double test1, test2, test3; int idNum; }; Student::Student (string n, double t1, double …

Software Development c++
Member Avatar for Alex Edwards
0
138
Member Avatar for accorpc

Alright folks...I'm new to this visual basic stuff, and to the site. I am working on an assignment for a class...it'll probably look pretty easy to the rest of you, but I just can't figure it out. What I need to do is take the information from the input box, …

Software Development vb.net visual-basic
Member Avatar for accorpc
0
138
Member Avatar for Se7Olutionyg

[CODE=cplusplus]// CS 210 EDDIE CHEN // THIS IS PROGRAM 4 (ISBN-Check), a program that verifies ISBN. #include <iostream> #include <fstream> // REQUIRED FOR FILE STREAMS #include <cstdlib> // FOR DEFINITION OF EXIT_FAILURE #include <cctype> #include <string> using namespace std; // ASSOCIATE STREAMS WITH EXTERNAL FILE NAMES #define inFile "isbntest.txt" // …

Software Development c++ linked-list open-source
Member Avatar for Ancient Dragon
0
184
Member Avatar for DevC++4.9.9.2

Hey, im trying to print what is stored in my 2d dynmic array from a file in my print function. However whenever i try to access information in the array, it crashes the program. maybe the array is not being passed back some how, im not sure, any information would …

Software Development c++
Member Avatar for vmanes
0
129
Member Avatar for afromong

Hi if i want to say if (int <= 0 || int is not a number) how could i do this i want to make sure that a positive number is input not a negative number or word or symbol hope this makes sense

Software Development c++
Member Avatar for afromong
0
86
Member Avatar for PaladinHammer

Well, I need to write a program that uses enumerated datatypes, structs, and plenty of functions. Below is my current code: [CODE]#include <iostream> #include <fstream> #include <iomanip> #include <string> using namespace std; void getInput(string input); void outputStudent(string student); void outputTeacher(string teacher); void outputStaff(string staff); void sendtoOutputStudents(string students); struct personDataType { …

Software Development c++
Member Avatar for mrboolf
0
120
Member Avatar for atman

Hey guys! I'm trying to calculate the average for student marks using pretest loop, and for some reason i get the wrong result, even though the code looks proper to me., there are 7 questions all of them totaling 100%, i haveto return average mark i HAVETO use pretest loop. …

Software Development c c# c++
Member Avatar for Aia
0
145
Member Avatar for jhuyenh

hey guys, i posted a encoding/decoding thread a litle while ago. i've gotten some what far on it, but now i just don't know how to write the most important part. the actual decoding. i need to essentially cut the secret message numbers (22384) and only use the first two …

Software Development c
Member Avatar for jhuyenh
0
108
Member Avatar for LincolnGurl

Hi All, Having already developed fixed-type binary tree classes in the past, I am reasonably familiar with the process of serialization and the graph topology of tree structures in general. However, I am currently attempting to implement a generalized C++ tree template and have absolutely no idea as to which …

Software Development c++
Member Avatar for LincolnGurl
0
121
Member Avatar for phalaris_trip

I'm new to java (like a few weeks new), but coming from a C++ background.. This is going to sound retarded, but... can someone explain to me how I can make a BigInteger object to make it have the same value as another BigInteger object? That is they have to …

Software Development java
Member Avatar for destin
0
1K
Member Avatar for smile4evr

hw to add multiple conditions in a single update statement?? my project goes code like this... [code] If release.Enabled = True And nonosc.Enabled = True Then Dim rst12 As New Recordset Dim sql12 As String sql12 = "update Passport_Release_Information_N set Ename2='" & taker.Text & "' ,Any_ID1='" & takerid.Text & "' …

Software Development visual-basic
Member Avatar for AUGXIS
0
175
Member Avatar for afg_91320

how would i write a code that will take the values of one array and copy it to another? ex: array1 and array2 have 100 elements so would it be: [code] array1 [100] = array2 [100] [/code] or does that just pass a reference?

Software Development c++
Member Avatar for skatamatic
0
2K
Member Avatar for BRICEK

write a program which fills a 10 element array using a for loop with numbers 90,80,70 etc. write a function to return the maxi value of the numbers in the array. write a function to return the average value of the numbers in the array.

Software Development c++
Member Avatar for freudian_slip
0
94
Member Avatar for skatamatic

I'm interested in writing a memory scanning program (for cheating in games, looking for hidden processes, and such). I'm wondering if there's any way to do this with C++ without extensive knowledge of windows classes/programming. I'm thinking assigning a pointer to the first location of the processes stack or something, …

Software Development c++
Member Avatar for zhouxuzhu1985
0
148
Member Avatar for hwlibra083

I don't understand what I am doing wrong: I'm developing a program for a school project and it's just not working. I need to get a player's age, and a player's nine scores (which I have), then I have to find what age group they are in (which I know), …

Software Development c++
Member Avatar for mrboolf
0
115
Member Avatar for complexcodes

can you guys help me how can I remove all those drawn rectangles if user click the mouse in the applet field? I am supposed to write a program that displays a rectangle and color it with green when user drag the mouse. But if user click the mouse anywhere …

Software Development java java-swing
Member Avatar for BestJewSinceJC
0
527
Member Avatar for DLightman

I am trying to implement a airline check-in line. I have three types of customers-generic, frequent flyers, and elite. Elite further breaks down down into gold, silver and bronze. The ranking follows that generic and frequent flyers are the lowest priority of customers. The check-in clerks can wait on these …

Software Development c++ queue
Member Avatar for skatamatic
0
270
Member Avatar for BestJewSinceJC

I saw someone, I think it was s.o.s, recommend the use of BigDecimal to someone else. So out of curiosity, and having heard of BigDecimal before, I looked at the Javadoc to see how large the values it could hold were and how it held them. From the doc: "Immutable, …

Software Development java
Member Avatar for jbennet
0
165
Member Avatar for BestJewSinceJC

Its basically telling me it doesn't know wth the pow() function is. But at the top of the file, I have #include<math.h> so shouldn't that work? And right after I have the #include, I declared the function definition of bintodec, so that isn't the problem either. [CODE]int bintodec(char* array){ int …

Software Development c
Member Avatar for BestJewSinceJC
0
114
Member Avatar for carobee

hi, i want to transfer the contends of a table from database to excel. can i declare a excel sheet in c#

Software Development
Member Avatar for Jugortha
0
173
Member Avatar for ukTutor

Hi everyone. I’m new here, and have a huge project to do. Part of it is to convert lots of VB into C#, so far I've found it quite easy. However, Ive come across a few little hic-ups I'm doing it for a project related to Quality Centre (at testing …

Software Development
Member Avatar for Jugortha
0
143
Member Avatar for vladdy191

What does == test when applied to arrays in C++? Does it test for type equivalence or equal memory locations?

Software Development c++
Member Avatar for skatamatic
0
93
Member Avatar for comrad3

I'm quite a novice when it comes to C++, and am part of the way through working out a program to identify the first 7 Mersenne Primes. I'm sure I have quite a few syntax errors as well as logic errors but I'm banging my head against the wall when …

Software Development c++
Member Avatar for ddanbe
0
156
Member Avatar for TheOneElectroni

Hello everybody, after diving into Tkinter for a while I'm now willing to learn PyQt. Before spending a lot of time with it I tried to process a very simple script (displaying a plain window) with Pyinstaller. This because I absolutely need to share my app with different people which …

Software Development python tkinter
Member Avatar for Stefano Mtangoo
0
461
Member Avatar for angelus1965

I am still new to C#, but I have written a progam that is significant to my work, I design custom pivot irrigation for farms. I have written the program to allow me to put in the span length and pipe diameters etc. and them at the click of a …

Software Development xml
Member Avatar for angelus1965
0
111
Member Avatar for Superstar288

hi everyone just starting ansi c but i seem to be having problems i have to make a program which checks if the user input is uppercase,lowercase or digit which i have done but for some reason i cant seem to do character counts ive tried one way but it …

Software Development c
Member Avatar for Superstar288
0
117
Member Avatar for songkok

hello everyone. i have search through the forums but unfortunately couldnt find the solution. if this topic has been discussed before, do give me the links to that thread. i work as intern now and my employer asked me to program a software using c++ but they want it with …

Software Development c c# c++
Member Avatar for songkok
0
118
Member Avatar for chunalt787

Our task is to write a Binary Search Tree and the data has to be input from a .txt file where in the data is held as such [CODE]12345678[/CODE] Each digit is a new node in the tree to be inserted. My Binary Tree is working because I can just …

Software Development c++ file-stream file-system
Member Avatar for chunalt787
0
111
Member Avatar for JackDurden

Im having trouble turning this function into a recursion function, partly because I did it another way and now I cant think of how to do it recursively. Can you help? [CODE]int list::recursion(int item, int position) { node* temp = startPtr; while(temp != NULL) { if(temp->item == item) return position; …

Software Development c++ linked-list
Member Avatar for skatamatic
0
105
Member Avatar for bigmike9449

Hi, i'm new to these forums and i was wondering, what kind of script or code do you need to write in order to make a button open a specific file, such as a pdf or txt, and what code or script do you need to make a button open …

Software Development delphi pascal pdf
Member Avatar for espSquall
0
343
Member Avatar for flexy82rpq

Any think they could attempt this, or give some pointers on it: write a simple hash function using modulo division as the hash methods.

Software Development c++
Member Avatar for skatamatic
0
78
Member Avatar for 3Dees

Hi, I could do with some help please, worked on this all week and still do not know where to start. i need to wirte a program starting with a one dim array in one vb project then use a two dim array to do the same in a new …

Software Development vb.net
Member Avatar for timothybard
0
183
Member Avatar for Run.[it]

I came across this example of a chat app here... [url]http://www.daniweb.com/forums/thread59565.html[/url] and am having trouble creating the multiple client part that is mentioned at the bottom... [I]If you want it to support multiple clients then put the TcpListener into an infinite loop in another thread etc.[/I] I was wondering if …

Software Development client-server multithreading
Member Avatar for Run.[it]
0
187
Member Avatar for Asen

I've tried hard to solve this but I still couldn't make it right. Here's what I've made. #include <graphics.h> #include <ctype.h> #include <math.h> #include <conio.h> #include <stdio.h> #include <process.h> int check(int,char); void Initialize(void);void drawEllipse1(int color); void drawEllipse1(int color); void drawEllipse2(int color); void main() { int color, color1; char ch; Initialize(); …

Software Development c++
Member Avatar for Freaky_Chris
0
886
Member Avatar for apeaser

I need help with this code. I am already a week late on this part because part 2 took to long to code. I am not getting the LeatherBlueDot class to compile. I am getting a message that in my constructor statement saying each variable has private access in class …

Software Development java
Member Avatar for BestJewSinceJC
0
183
Member Avatar for cam875

Ok ive been working with bootstrappers and writing them in assembly for a little bit now and I can get it to work and understand how the bootsector works when it comes to hard disks and floppy disks but when dealing with flash memory like my USB flash drive im …

Software Development assembly flash
Member Avatar for NotNull
0
129
Member Avatar for amroto

Hi,Please i need some help in my java program,it's purpose is to enter 2 equations and it solves them graphically,the problem is that the graph has a glitch with the x and y axis,plz can someone help me so that all the equations are solved correctly.. here's my source code: …

Software Development java java-swing
Member Avatar for Ezzaral
0
116
Member Avatar for toko

k guys i have a text file that has a record of passwords, i am trying to read from that file if the guys username and passwords match access granted if not there denied. [CODE=vb] read = System.IO.File.OpenText("password records.txt") username = txtUsername.Text For a = 1 To 10 txtOutput.Text = …

Software Development vb.net
Member Avatar for toko
0
107
Member Avatar for fleahman

[code]08048e19 <phase_2>: 8048e19: 55 push %ebp 8048e1a: 89 e5 mov %esp,%ebp 8048e1c: 83 ec 38 sub $0x38,%esp 8048e1f: 89 5d f4 mov %ebx,-0xc(%ebp) 8048e22: 89 75 f8 mov %esi,-0x8(%ebp) 8048e25: 89 7d fc mov %edi,-0x4(%ebp) 8048e28: 8d 45 dc lea -0x24(%ebp),%eax 8048e2b: 89 44 24 04 mov %eax,0x4(%esp) 8048e2f: 8b …

Software Development assembly
Member Avatar for NotNull
0
123
Member Avatar for kotkata

I'm not sure what to do exactly. I get some errors that say that displayBoard is declared as an integer yet, I have it declared as void. I'm not sure where these are coming from and they are impeding me from continuing with my work. I would appreciate any pointers …

Software Development c++
Member Avatar for ArkM
0
181
Member Avatar for chanda gul

Hi all, i m trying to read registry root keys and their subkeys but there are some keys on which access is not allowed. For getting access to such keys, i used the following code where keypath is the path to that particular key to which i want to gain …

Software Development
Member Avatar for dickersonka
0
85
Member Avatar for Bhoot

Well, this post might seem weird but as i am very much confused, i thought to seek some help from here. My question is : When should i call a base class implementation of a message handler in my own implementation? ( I am talking about MFC.) For example : …

Software Development c++
Member Avatar for Bhoot
0
160
Member Avatar for k88joshi

Hey Everyone, Currently, I am working on a base converter that converts a binary to decimal or decimal to binary or binary to hex. However, for this I need to read the string or the number from the text file and convert it to a hex or binary or octal. …

Software Development c++
Member Avatar for ArkM
0
88
Member Avatar for polo_coins

I have some code bellow and I get an exception what wrong with this code, I'm just started to study with section of OOP so maybe I made a stupid mistake : [ICODE]static void Main(string[] args) { Ishow c1 = new Circle(1, 2, 10); c1.show(); interface Ishow { void show(); …

Software Development oop
Member Avatar for LizR
0
72
Member Avatar for abu taher

I work with a student database project. when I click Add New button a massage show. I write code in add new button was "adodc1.recordset.addnew." massage was "Multiple - step OLEDB operation generated errors. check each OLEDB status value, it avaiable. No works was done." when I press ok another …

Software Development visual-basic
Member Avatar for abu taher
0
90
Member Avatar for IrishUpstart

I am trying to write a program to find the integrals of a function, where the computer determines the number of slices that it should use, going through a loop until it finds the change small enought to ignore. I want it to have a tolerance of .01% Can anyone …

Software Development c
Member Avatar for devnar
0
106
Member Avatar for ajay.krish123

While entering the password and id in the program ,i want the program should not display any of those entered characters. While enter the password it should show the astericks for eg. ****** By using Scanf,it is not possible.. By using getpass() function it just doesn't display any thing on …

Software Development c display
Member Avatar for ajay.krish123
0
108

The End.