49,757 Topics

Member Avatar for
Member Avatar for kriszy0515
Member Avatar for hag++
-3
74
Member Avatar for blueman:-0

[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 = …

Member Avatar for mrnutty
0
183
Member Avatar for asa88

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 …

Member Avatar for abdelhakeem
0
154
Member Avatar for sexyzebra19

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 …

Member Avatar for sexyzebra19
0
148
Member Avatar for yUhki

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 …

Member Avatar for Fbody
-3
141
Member Avatar for zero_crack87

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

Member Avatar for Nick Evan
-1
289
Member Avatar for jayrana

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 …

Member Avatar for Salem
0
69
Member Avatar for gillanism

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 …

Member Avatar for gillanism
0
116
Member Avatar for XxWARGASMxX

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 …

Member Avatar for Narue
0
81
Member Avatar for toleen

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 …

Member Avatar for Narue
0
149
Member Avatar for jefanot

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 …

Member Avatar for Ancient Dragon
0
607
Member Avatar for Nexadus

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 …

Member Avatar for Nexadus
0
110
Member Avatar for vino chithra

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 …

Member Avatar for Narue
0
77
Member Avatar for twelvetosix

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 …

Member Avatar for twelvetosix
0
1K
Member Avatar for sailee
Member Avatar for jrkeller27

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 …

Member Avatar for amromun
0
183
Member Avatar for sidra 100

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 …

Member Avatar for iamthwee
-1
85
Member Avatar for swolll

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 …

Member Avatar for Agni
0
176
Member Avatar for Total Casual

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 …

Member Avatar for javelin
0
104
Member Avatar for Lukezzz

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 …

Member Avatar for kvprajapati
0
344
Member Avatar for sutty8303

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. …

Member Avatar for peter_budo
0
299
Member Avatar for ishaiman

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 …

Member Avatar for sidra 100
-3
250
Member Avatar for atticusr5

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 â[â …

Member Avatar for atticusr5
0
110
Member Avatar for bman214

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 …

Member Avatar for bman214
0
140
Member Avatar for Anarionist

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!"); …

Member Avatar for Anarionist
0
97
Member Avatar for th3kingdom1

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 …

Member Avatar for th3kingdom1
0
164
Member Avatar for Lukezzz

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 …

Member Avatar for Lukezzz
1
200
Member Avatar for Yellowdog428

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] …

Member Avatar for Yellowdog428
0
161
Member Avatar for Learning78

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 …

Member Avatar for mitrmkar
0
157
Member Avatar for mikabark

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 …

Member Avatar for nezachem
0
161

The End.