49,757 Topics
| |
hello??? can you give me a complete program about a fraction calculator??? | |
[CODE]#include <iostream.h> #include <math.h> void main () { int n,j,q,d,h,t,i,m,f,b; cout<<" num of eng"; cin >> j; q=0; d=0; h=0; t=0; for (i=1;i<=j;i++) {cout<< "insert Salary "; cin>> m; m /(22) =d; d/(8) = h; cout<<"\n Leave "; cin>>f; cout<< "\n Attend "; cin >> b; f - b = … | |
i want print this image out... 10 11 ___ / ()\ _|_____|_ | | === | | |_| o |_| || o || ||__*__|| |~ \___/ ~| /=\ /=\ /=\ [_] [_] [_] [CODE] #include <iostream> #include<fstream> #include<string> using namespace std; int main() { string filename; int number; cout<<"enter the … | |
I was just hoping to get some advice before I start writing my program, I need to put two columns of data into some sort of data structure, and each number has about 25 decimal places. Can anyone recommend the best one? Would storing them as a vector work? Thanks … | |
In a gymnastics or diving competition each contestant`s scores is calculated by dropping the lowest scores received and then adding the remaining scores.Create a program that allows the user to enter 8 judge`s scores and outputs the points received by the contestant.Format the output with two decimal places. ( A … | |
i want this software rite now 4 m final year project to be linked with opnet modeler 7.0. Other version of C++ did'nt compatible with this opnet.pliz help me....tq | |
1. I am new use to player/stage. I need to write a code to navigate a robot from a given position to a target position. How do I go about doing that? 2. Can I use VFH driver to do that? I dont understand how to use the following commands … | |
hi all, i am really stuck with c++ pointer issues. what my program is supposed to do is to take input from user and recognize whether the entered string is a valid word from the grammer S::= a|(S) hence grammer should accept words like... a, (a), ((a)),(((a))).... i have done … | |
Hey all I'm trying to create a program that takes a predetermined number (monthly salary in this case) and rather than printing as a number it prints it as text. However when I input a number all I get is random stuff that makes no sence. I will include the … | |
hi i need a program that set the clock to 00:00:00 if the user not enter the clock then the program should count the time and print it on the screen until reach the user input for example: the time is 12:44:6 a.m. and the user enter 4:3:50 a.m. to … | |
Hey, I was just wondering, but what code do you need to be able to press a few buttons on your keyboard. Like, if I want to type "Cheese is yellow on the moon!" I'll just run the program. Or if i want to do ctrl+alt+del to go to task … | |
Hello, I have this problem that's been bothering me on the back of my head for so long now. I don't know how to pursue or even break it down, I've tried reading the book, look at notes, nothing helps. Problem is, I have this file which contains /* Nitrite … | |
is cyclic hashing possible?? ie., consider an array of size 5.. hence the index would be form 0 to 4... so if we insert 53,63(takin the function as value mod size of the array) the index 3 and 4 would be filled up...and when we insert some 54 again an … | |
Hey guys, I recently wrote a C++ program for a company I'm doing an internship with that asks the user for the location of .txt files and then the program opens each .txt file, gets the necessary information from each files, then outputs the information to a .txt file that … | |
Hi, I'm just wondering if there is a good place where I can find some tree implementations for c++ (Splay trees and Heaps, in particular). Any input on resources where there is source code for different tree implementations would be appreciated, as I don't have the time to write one … | |
please chk my code. it works well but is its logic correct? Statement: Suppose we have a class named as Train it has two constructors, two methods, and a single attribute each of which described as follows:· One attribute:maxSpeed – an int value representing the maximum speed of the Train … | |
I've worked on it for a few days. It works great when I comment out the erase function. But it doesn't work when I include the erase function, which I use to remove an element in the playlist vector of type Songs. Here's the else if statement. The problem is … | |
I was writing a function to dump the contents of a 'matrix' in a vector-of-vectors to cout when I ran across conceptual difficulties. Here's the code of the working function: [code=c++] #include <iostream> #include <vector> using namespace std; void output_string_matrix(const vector<vector<string> >& matrix) { vector<vector<string> >::const_iterator rows_itr; vector<string>::const_iterator cols_itr; for … | |
I have a size_changed event in my Form that did cause a MessageBox with the below message. It says that can enable "just-in-time (JIT) debugging" but are not sure how to do this. I cant find: machine.config... [B][U]MessageBox Error:[/U][/B] To enable just-in-time (JIT) debugging, the .config file for this application … | |
I need help with this problem. I have tried writting the program, i just can not get it to run properly. Problem is: Create a function named 'circle_area' that will find the area of a circle. This function should have the following prototype: float circle_area(float radius) circle_area should return PI*r^2. … | |
hi, I have this assignment can anyone solve it? THe programme statement is Problem Statement: Suppose we have a class named as Train it has two constructors, two methods, and a single attribute each of which described as follows:· One attribute:maxSpeed – an int value representing the maximum speed of … | |
Hello all Im back with another crazy assignment from my professor and I'm running into the following debugging errors in Vi (we have to use it) so here are the errors: Assign4.cpp: In member function âvoid cCourselist::Load(Infile_t&)â: Assign4.cpp:105: error: expected unqualified-id before â[â token Assign4.cpp:109: error: expected unqualified-id before â[â … | |
Hello. I am working on a game called Kingdom Management. It was working fine until I added in the buildings you can make. Then it started skipping over the building, lawmaking, do nothing, and quit sections. All it could do is research. Here is the code: [CODE] /******************************************************************************* Kingdom Management … | |
I downloaded the latest version in the repository and unless the tutorial im following is incorrect in the #include function then im lost. here is the code im trying to compile taken from the tutorial. [CODE] #include <QtGui> int main(int argc, char *argv[]) { QApplication app(argc, argv); QLabel label("Hello, world!"); … | |
I want get data from the car1.txt file and do the probability calculation but all result is 0.0% ?? just want to ask how to get large number of data from txt file by using array method. This is my txt file and cpp file [CODE]1 1 2 2 3 … | |
Hi, I have a task where I programatically will open 2 Explorer Windows in a minimized mode. I have searched and the code I have come up with looks correct to me but what happens is that these 2 browser windows do open in a Normal mode. That will be … | |
So I am getting a runtime error and I have narrowed down the problem to this method. I am still learning about iterators and I assume that the problem is with this part of the code, getting the expression error list iterator not decrementable. Any help would be appreciated. [CODE=cpp] … | |
Hi; I am new to MFC applications and working on a MCQ based game in Visual C++ using MFC. I have a small question to ask, if I click the option (a-d) that is correct, the game increases score and displays msg "correct' , but I am not able to … | |
My souce is below. function is called from main program. But during execution segmentation fault occur. If I execute half are ok, but half are failed. I used kdb. But still I don't know why. I think I used correct expression. kdb said "if(entry->d_type) == DT_REG) " is problem. I … |
The End.