132,726 Archived Topics
Remove Filter ![]() | |
Hi I'm trying to have an assignment operator for my linked list class so that when I call it, it replaces the current one with the one I pass in. i.e testList1 = testList2; I'm trying to get it so that testList1 will point to testList2. Here is the code … Software Development c++ linked-list | |
I had to use an enumerated data type in my last program, and I couldn't get my program to stop giving me fatal run-time errors. here is the enumerated data type: [code]enum piece {EMPTY, BLACK, WHITE};[/code] Now, the trouble I am having is related to evaluation or assignment of this … Software Development c c# c++ first-post | |
Hey. The intent of this program is to help answer the question “How good is the random number generator rand()?”. The program must be designed and written in a modular fashion using functions and arrays The function rand() returns int values between 0 and some system-specified maximum value. The first … Software Development c++ | |
I am using the MFC dialog application. There are 3 edit box, add1, add2 and sum and a button "add", when exectuing, I input add1, add2, and use the "add" function dlg.m_sum=dlg.m_add1+dlg.m_add2 how to make the sum appears in the "sum" edit box? Do I have to add a view … Software Development c++ | |
Anyone know when Sun plans to release 1.6 for Mac? I couldn't find an estimated date anywhere. Software Development java | |
I'm trying to write a function that checks for prime numbers and returns true if a number is prime. Something simple, i'm just a beginner. Here's what I have, does it make sense..if not any input would be appreciated. [COLOR=#0000ff]Function[/COLOR][COLOR=#000000] IsPrime([/COLOR][COLOR=#0000ff]ByVal[/COLOR][COLOR=#000000] dblCheck [/COLOR][COLOR=#0000ff]As[/COLOR][COLOR=#000000] [/COLOR][COLOR=#0000ff]Double[/COLOR][COLOR=#000000]) [/COLOR][COLOR=#0000ff]As[/COLOR][COLOR=#000000] [/COLOR][COLOR=#0000ff]Boolean [/COLOR][COLOR=#0000ff]Dim[/COLOR] intNumber [COLOR=#0000ff]As[/COLOR] [COLOR=#0000ff]Integer … Software Development vb.net ![]() | |
Nuts I'll be soon. I still cant get this to run.It keeps telling me cannot convert from const and I cant find where I declared a constant. Help Please! [CODE] #include <iostream> #include <iomanip> #include <conio.h> using namespace std; void call(void (*)); void Menu(char [11][25]); void Add(char [11][25]); void Update(char … Software Development c++ | |
Greetings...I'm trying to add a part for 2 times the rate for any hours over the first 60...Can anyone aid me? Many thanks [code] // This program calculates gross pay. #include <iostream> #include <iomanip> // Global constants const double PAY_RATE = 10; // Hourly pay rate const double BASE_HOURS = … | |
have prepared a code in c++ to save high scores and it is working well when i compile it in turbo c++and run the code . but when i exit from the turbo c++ , the file to which i saved the high scores get corrupted and so when i … Software Development c++ | |
Hi, i have an assignment that involves me making a hash table which stores strings. I am struggling to find a good example of a hash table anywhere and would be greatful if someone could give me an idea of the basic code or even pseudocode for it. ineed to … Software Development pascal | |
I'm really having trouble understanding how to initialize multidimensional arrays. The way it is explained in the book I'm reading is: You assign the list of values to array elements in order, with the last array subscript changing and each of the former ones holding steady. Therefore, if u have … Software Development c++ | |
I'm having a problem inserting data into my binary search tree, it will insert some of it but not all. this is the header file for my BST class: [code=c++] #ifndef BST_H #define BST_H //----------------------------------------------------------------------------------------- #include <string> #include "LinkedList.h" //----------------------------------------------------------------------------------------- using namespace std; //----------------------------------------------------------------------------------------- class BST { public: //Default constructor, … Software Development c++ linked-list | |
Five sets of 3 double numbers stored in a 5x3 array in C++, How do i do this, I have this so far [COLOR=#0000ff]include[/COLOR][COLOR=#000000] [/COLOR][COLOR=#800000]<iostream> [/COLOR][COLOR=#0000ff]# include[/COLOR][COLOR=#000000] [/COLOR][COLOR=#800000]<iomanip> [/COLOR][COLOR=#0000ff]# include[/COLOR][COLOR=#000000] [/COLOR][COLOR=#800000]<cstring> [/COLOR][COLOR=#0000ff]# include[/COLOR][COLOR=#000000] [/COLOR][COLOR=#800000]<cstdlib> [/COLOR][COLOR=#0000ff]using[/COLOR][COLOR=#000000] [/COLOR][COLOR=#0000ff]namespace[/COLOR][COLOR=#000000] std;[/COLOR] [COLOR=#0000ff]int[/COLOR][COLOR=#000000] main ()[/COLOR] { [COLOR=#0000ff]const[/COLOR] [COLOR=#0000ff]int[/COLOR] NUMROWS = 5; [COLOR=#0000ff]const[/COLOR] [COLOR=#0000ff]int[/COLOR] NUMCOLS = … Software Development c++ | |
help in ow to append a text file ... a simple programme source code since willl be having exam 2morrow thank you Software Development c | |
ok well i started out with making my own source code then compiling and running with Dev-C++ and when i run it, its working fine until the last line, here let me past my code [code]// just a test #include <iostream> #include <string> using namespace std; int main () { … Software Development c++ | |
Ok I'm back with another problem im having.. I have a vector of casual staffmembers.. Each time i create a casual staffmember they are added into a vector named thecasuals.. To return a casual staffmembers staffID a function is created: [code=c] staffmember::get_staffid(); [/code] I need to be able to enter … Software Development c++ | |
HI, I am a new person to the forum and also a pretty new person to coding. I am having difficulty with an assignment and need some direction. Here's the problem: I'm a car sales person who is giving discounts on certain styles and years of cars. In my 2D … Software Development qbasic | |
I have a listview with 4 columns...How do I retrieve a value that I already have in the columns 3 & 4 to a label?? | |
Hello, I've been working on this problem for a while, its a program that needs to convert military time to civilian time from an input file using a user-defined function. Then the program must find the maximum temperature and list the temperature and the time at which it occurs. My … Software Development c++ | |
Hi everyone! I would really appreciate any help that I can get on this problem. My professor asigned us a project where you create a program that essentially simulates coin flips. The first step in the program is to ask the user how many times they want to flip the … Software Development visual-basic | |
How would someone go about building an audio conversion program using VB.NET 2005? Or more specifically, say I wanted to build a program that would allow the user to select a *.WMA file and convert it to a *.WAV file. From a design standpoint, thats a pretty easy setup; couple … | |
I really appreciated your replys, it helps me a lot when i can see how it is done they way you did it.It really helped me with my other ones I was working out. Do you know how to write a program to print out the calendar for a whole … | |
Hello, I am currently in a programming Logic and design course at my local community college and I was give 5 chapters to read because I join the class late. I am now in 3 and I am confuse with a method that the book does not explain too much. … Software Development c++ | |
Well, I actually succesfully completed my first complete program in python, and I didn't use the forum for help, I stuck it out and figured it out on my own. After spending about two and a half hours getting all these make shifts loops right, I feel pretty darn good … Software Development python ![]() | |
When using the Py2exe program snippet given in [URL="http://www.daniweb.com/code/snippet499.html"][COLOR=#800080]http://www.daniweb.com/code/snippet499.html[/COLOR][/URL] I get the following error message: Traceback (most recent call last): File "C:/Python24/hate me/p2e_test1.pyw", line 29, in -toplevel- console = [{"script": 'hateme2.pyw'}] ) File "C:\PYTHON24\lib\distutils\core.py", line 166, in setup raise SystemExit, "error: " + str(msg) SystemExit: error: command 'C:\PYTHON24\PYTHONW.EXE' failed with … Software Development python | |
Hi, I have created the following code to check a list and then determine which is true then update the variables associated with the correct if else statement. My problem is it doesn't update any of the variable even if true. As you can see, the var ch should be … Software Development python | |
I am unable to get the "is" I keep getting the below: [B] the find : this the find : this [/B] what I want is: [B] the find : this the find : is [/B] from the below code: [code] typedef multimap<int,string> IntStringMMap; IntStringMMap coll; // container for int/string … Software Development c++ first-post ![]() | |
Ok this program takes rainfall data for every month of the year and displays the total and avg for each month. I need it to display each month in order of rainfall from highest to lowest as well. Im having a hard time implementing showorder into my code. Can someone … | |
I am new at C++ programming..Anyway I need to create a C++ Program that involves one large chemical company that pays its salepeople on a commission basis. The sale people receive $200 per week plus 9 per cent of their gross sale for that week. For example,a salesperson who sells … | |
Hi, I am a basic learner in c and datastrustures..... I want to know the conepts of trees, graphs... could u provide me a proper tutorial or a good link which discusses trees and graphs concepts in c language....... Thanks & Regards. Software Development c ![]() | |
hey guys my program assigns a letter grade to a specfic percentage for an exam score and the problem is taht if i enter a number that is not specified in my if statements it should say invalid number but the program juss prints out the regular output with no … Software Development c++ | |
I'm trying to write a program that uses overloading of operators to perform operations (add, multiply, etc.). I've got the program done, but I'm having trouble modifying the driver I have to fit the program. The original program used a print method, and the new program uses overloading input and … Software Development c++ | |
Hi All, I'm having a bit of trouble with a simulation I am writing in C++. Any help to solve the problem would be appreciated. The simuation needs to run 5500000000 times. When it gets to 2100000000, the counter I am using changes to -210000000. So as you can see, … Software Development c++ | |
Hello everyone, I just wanted to thank you in advance for all of your help. My code is now working properly except for one thing. The insertion part feels like it takes about 5 minutes to complete. I know that this method is the slowest of the 4 I was … | |
I'm having a problem with an application that uses several dialog boxes. On my XP machine everything works great, but if I run the app on a Win98 machine the dialog boxes show up with no background and no caption, only the controls are visible. What could the problem be? Software Development pascal | |
Hi, I am working on a fairly simple project (it will grow more in time as planned) but I am stuck in a spot which I cannot solve yet. The operation of this prog at this point is: [LIST] [*]Start. Ask user for input choice (only 1 choice available at … Software Development c++ | |
hi just have a question to make sure i understand it. i'm doing the exercises in my book and it says i should create a program which will roll 2 dice and produce a random number then adds the sum of the outcomes. [code] public class RollDice { /* This … Software Development java | |
My program seems to be ignoring my cents after the decimal point for total_charge. It adds the dollar amounts, but ignores or does not see the cents. Can anyone give me suggestions as to what I need to look at? I'm brand new at coding, thus the reason for all … | |
//My function is but the problem is that i dont have a proper working main function void reverse(int a[], int n) { // function: Reverses the elements of a. // parameters: // a inout array of values. // n in number of values in a, a[0]..a[n-1] // returns: nothing for … Software Development c++ | |
What I am trying to do: [quote][LIST=1] [*]A function to add one to the current count. [*]A function to subtract one from the current count. [*]A function to reset the count to zero. [*]A function that returns the current count.[/LIST]Do not write a constructor for this class. Write a main( … Software Development c++ | |
Hi folks, I have an array of chars letters[], it has both mixed letters, and symbols. I nned a code that keeps a count of each letter entered, and any a count for all other non-letter symbols entered. Thanks in advance and God Bless. Jonn. Software Development c | |
Does anyone know how to writea program to print 1 2 3 4 5 6 7 8 9 1 2 3 4 5 6 7 8 1 2 3 4 5 6 7 and so on until it is down to one. Anyone know how to right a function that … | |
We were assigned the following problem as a large project in my Freshman intro to C++ programming class: We have to determine the number of terms needed to calculate Pi to a specific number (3.0, 3.1, 3.14, 3.141, 3.1415, and 3.14159), using the formula: pi= 4(1-1/3+1/5-1/7+1/9-1/11+1/13...) I thought I had … | |
Hey.. Names Jay.. I'm new around here.. Doin C++ and i'm a beginner programmer.. I have been going OK but i am stuck!! For this assessment i have to create a payroll system for a company.. The company must contain staffmembers.. There is a class for staffmembers.. Inheriting frmo this … Software Development c++ first-post | |
[COLOR=#000000]Hi everyone I’m new to the forumn and programming – well iv’e read one book c++ programming in easy steps by Mike Mcgrath. I have now got a slightly more indepth book Sams teach yourself c++ in 24 hours fourth edition. All has been going well until I got upto … Software Development c++ | |
hi my name is srikanth.i have been trying to develop a source code to print the pascal's triangle for the past three days.i have'nt had any success.i would be greatly obliged if anyone could give me a simple source code to print the pascal's triangle in C. | |
Hi all! Yes, I'm new! Just wondered if anyone could help me (and huge apoligies if this is in the wrong place!). Currently, I am doin IT GCSE (full course) coursewrk, and in my design, for this spreadsheet, it has to save a backup, when you press a button (like … Software Development ruby visual-basic | |
Hello all, While I understand what the class access keywords public, private, and protected are supposed to do, I just don't see how this ACTUALLY "hides variables" and makes for more bullet proof code. Do the variable names survive the compilation process? If someone was to read compiled code in … | |
/*QUESTION 2*/ [code] /*Program to compute frequency of a list of marks obtained by a group of students*/ #include <stdio.h> #define SIZE 100 main() { /*define n as number of students.x[SIZE] is a array to store marks of students*/ /*tempo[SIZE] is also used to store marks, but used in computation … Software Development c |
The End.