49,761 Topics
| |
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 … | |
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 … | |
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. … | |
I am planning to implement [I]#include <time.h>[/I] in my program. I have never yet used this include. I will be using this in order to track a 24-hour period, or at least that is what I wish to do; I basically need to set up a natural 24-hour day that … | |
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 … | |
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 … | |
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 … | |
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 … | |
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, … | |
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 … | |
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 … | |
hi How to implement drag and drop of files between windows explorer and my application which is developed using Borland C++ Builder? Thanks, Priya | |
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 … | |
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( … | |
Hi I want to create a USB driver for Windows98. I need several windows API to communicate with the USB. That's why I need to know how to load dll files in Microsoft Visual C++ for using windows API and which API will help me to build my driver. Is … | |
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 … | |
Hi guys, When I try to compile the code below I get an error saying: error C2065: 'file' : undeclared identifier. But if I run the program it still works. [code=c++] // WordStreamTest.cpp //-------------------------------------------------------------------- #include "WordStream.h" //-------------------------------------------------------------------- using namespace std; //-------------------------------------------------------------------- void OutputNumber (const string &str); void OutputLine (int length); … | |
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 … | |
[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 … | |
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 … | |
How do I delete the projects I don't want anymore? | |
Hello, I'm having issues with my final total for charges. When I run my program, it either comes up with "0" or if I don't declare my variable, it comes up with a long string of numbers. My total hours works great, but not my charges. Can someone take a … | |
i have this program but it doenst work could you help me plz. you just enter in sentence like: I like the cat. or The cat sees the rat. The cat likes me. then it will say the string is correct. but if you enter in I sees the cat. … | |
Alright well this is supposed to be a basic Geometry calculator that uses set formulas to identify the "chosen" property of the figure by just pluggin in #'s that are used in that formula. I have to admit I'm not expirienced at all in C++ and probably made a ton … | |
Hello folks :) Allow me to introduce myself. I am Haktivex, a programmer for a tool known as TibiCAM, used to record movies for an online game known as Tibia. Now heres the issue. For a long time we supported all operating systems, Windows 98, ME, etc. However recently these … | |
hi Everybody I want to know how in borland c++ to use the lib file i have a .lib file present with the source code of that library i want to use the lib file I have just added the lib into the project through Project->AddtoProject i did not get … |
The End.