132,726 Archived Topics
Remove Filter ![]() | |
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 | |
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++ | |
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++ | |
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++ | |
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 | |
[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 | |
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++ | |
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++ | |
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++ | |
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. … | |
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 | |
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++ | |
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 | |
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 | |
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++ | |
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++ | |
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++ | |
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++ | |
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 | |
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 … | |
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 | |
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 | |
hi, i want to transfer the contends of a table from database to excel. can i declare a excel sheet in c# Software Development | |
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 | |
What does == test when applied to arrays in C++? Does it test for type equivalence or equal memory locations? Software Development c++ | |
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++ | |
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 … | |
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 | |
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 | |
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 … | |
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 | |
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 | |
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 … | |
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++ | |
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 | |
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 | |
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++ | |
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 | |
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 … | |
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 | |
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 | |
[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 | |
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++ | |
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 | |
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++ | |
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++ | |
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 | |
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 | |
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 | |
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 … |
The End.