49,757 Topics

Member Avatar for
Member Avatar for andrew mendonca

Define a getStandardDeviation() function with the specification and prototype shown below: // Calculate the population standard deviation of the scores // That means... // 1) For each score i, add pow(scores[i] - mean,2) to a running sum. // 2) divide sum by the number of scores. That's the variance. // …

Member Avatar for Lucaci Andrew
0
988
Member Avatar for daino

Would anyone know how to install pre-compiled binaries. I want to use GLIB and have downloaded the pre-compiled binaries. I'm running Windows XP and have a MinGW compiler. I've googled this but i'm having trouble making sense of it. There must be a standard way of doing this. Thanks

Member Avatar for daino
0
135
Member Avatar for izabella.pearson

I've built this up but it will not run completely. When executed the program promts the users for the questions then print nothing of the calendar. this is my code so far. //Izabella Pearson //CIS 150 //Program 6 #include <iostream> //Header Files #include <fstream> #include <string> #include <iomanip> using namespace …

Member Avatar for Ancient Dragon
0
160
Member Avatar for Bowdown28

Hello, I am new to using windows form application in c++ and i am having a problem with making my program work. I have three textBars and one button. The first textBar is for the user to input a double. When the button is pressed i want it to perform …

Member Avatar for Ancient Dragon
0
337
Member Avatar for mahnaz0098

Hello i have a printer cable that i connect to it some LEDs . i want to use CreateFile and WriteFile functions but i don't know that i should use LPT1 and LPT2 or COM1 and COM2 in CreateFile function. h = CreateFile( L"LPT1", // pointer to name of the …

Member Avatar for Ancient Dragon
0
1K
Member Avatar for jude416

Hi guys. I am currently making a Question and Answer multiple choice Program. So far it is good. I used Array to shuffle 50 questions. the problem of the program is it cannot count the right answers and display it. This is the part of the program that has an …

Member Avatar for DeanMSands3
0
274
Member Avatar for alex910TN

Guys I have a quick general knowelege question. When defining a function in any programming langauge that will return a pointer to a linked list created in the function, can we return that pointer by reference? If so, can you provide me with a SIMPLE example of the following scenarios: …

Member Avatar for mrnutty
0
163
Member Avatar for santhoshkumar.k.372

I have sample xml content set in a string like, String s = "<MainInfo><Info><Param1>123</Param1><Param2>santhosh</Param2><Param3>001</Param3></Info><Info><Param1>123</Param1><Param2>santhosh</Param2><Param3>001</Param3>"; Now,I want to validate this ,If the xml content is valid with respect to opening and closing tags,the entered content does not have invalid junk tags etc....some validations like this. If(valid) { say success; } else …

Member Avatar for L7Sqr
0
124
Member Avatar for muhammad.khan.3576

1. You are required to make a structure named “section”. The names of the two sections are secA and secB. 2. There are two members of this structure i.e. numberOfBoys and numberOfGirls. 3. In secA there are 48 boys and 6 girls while in secB there are 50 boys and …

Member Avatar for Ancient Dragon
0
277
Member Avatar for xcindiix

Hi everyone... im using C++ Microsoft visual studio and would appreciate if you can help me out here. Ive been trying to do this the whole day ... and canttt figure it outtt PLEASEE HELPPP !! I am a total beginner so sorry if i have very stupid mistakes. #include …

0
112
Member Avatar for loldafuq

Sorry my English is bad.Im beginner in programing with c/c++ I have to write 2 codes and want some help **1. Write a program with a function main () and selecting a menu of functions: Generate a programming-random number generator data for lottery ticket / max 100 / with six-digit …

Member Avatar for laura90
0
217
Member Avatar for Magda6347

I have to make a program with that converts metrics to feet, inch ect. I have no idea how to even begin doing this. Theres two combo boxes one for the units of metrics and the user chooses millimeter, centimeter, meters, and kilometers. They enter an amount to convert and …

Member Avatar for hekri
0
91
Member Avatar for kingwordforetaste

The program should ask the user his or her name and surname, then print a msg saying "Goodday,name,surname, then asks the user to input his or her age in years. if the user is 18yrs or older, the program request whether or not the user has a job. if te …

Member Avatar for Lucaci Andrew
0
88
Member Avatar for andrew mendonca

Define a getMean() function with the specification and prototype shown below: // Return the sum of all scores divided by the number of scores. // This know as the "mean" or average of the scores. // Assume that numScores > 0. double getMean(double scores[], int numScores); Here is the driver …

Member Avatar for vijayan121
0
206
Member Avatar for gman1991

i want to run a program into terminal as well as putting in the numbers like this suppose u have a xyz.cpp file in home and want to run it in terminal ./xyz <num1> <num2> eg ./xyy 3 5 and outputing 8 ------- all this in the terminal is there …

Member Avatar for myk45
0
66
Member Avatar for manjushcool

I am doing my c++ program on hospital data base management. I have users of type admins,hospitals,doctors and patients. Each have their own username and passwords. I used files in order to maintain data base. It does not enter if the user name and passwords does'nt match. But my problem …

Member Avatar for happygeek
0
4K
Member Avatar for andrew mendonca

Define a getScores() function with the specification and prototype shown below: // Get scores from console and return the number of scores recorded. // A negative value signifies end of input. // If more than MAX_SCORES values are entered then discard entries beyond the first MAX_SCORES. // Assume that MAX_SCORES …

Member Avatar for faroukmuhammad
0
211
Member Avatar for rosanmas

can you give me a very simple qtwebkit example that explain how it works and how to use it?

0
46
Member Avatar for nyfan68

I'm kinda stuck with the first part of this assignment. Design and implement a program for a phone book application. Create classes Name, PhoneNumber, and PhoneBook that are employed by the provided phone book program, PhoneBookProgram.cpp. The Name class is where I'm at. Class Name • Represents the name for …

Member Avatar for nyfan68
0
157
Member Avatar for coroshea

The program works perfectly. But in order for an individual to succeed in computer science, he or she must fiddle around with the program, and come up with other algorithms, such as converting a pre existing one, even it it is more or less efficient. Again the program works perfectly. …

Member Avatar for coroshea
0
203
Member Avatar for jcrck

I'm taking an Intro to C++ course and I'm having some difficultly with a lab I'm working on. I don't have any code yet. I've been working on my design file but don't know which direction to go in to solve the problem. I want to put the dataSheet into …

Member Avatar for jcrck
0
239
Member Avatar for Sam_07

I wrote a short program to factor numbers, and it works in most cases. The problem I am getting is that when I use a very large number I get "Floating point exception: 8." I am assuming that I am trying to divide by 0 on line 43 or 46, …

Member Avatar for NathanOliver
0
4K
Member Avatar for algrandjean1

Hello, I am having some difficulties getting my program to write the contents of an object to a file. First off, I am not sure if I should be writing the contents of the the object (e1, e2, e3) to the file or if I should be writing the contents …

Member Avatar for aradicev
0
280
Member Avatar for DelilahDemented

I'm trying to build a tree from a file and it keeps blowing up on me. It doesn't even give an error but it shuts down when I try to run it. I'm not sure what is wrong. I think I have something wrong with my root but I'm really …

0
155
Member Avatar for PrimePackster

Sorry! The problems are all solved and every error is removed.. Sorry guys! Modes: Please delete this thread. CJ

Member Avatar for PrimePackster
0
101
Member Avatar for Milton Neal

I'm re-kindling some of my C++ theory and was working through a C++ SringBuilder class I found on the net. I understand it all except the 2 operator methods. (See listing below). Can anyone explain what these operator methods are for and how and why you would impliment them. class …

Member Avatar for rstralberg
0
125
Member Avatar for nicholas.buckley.14

I have to write a program that accepts data for a class and then ouputs it in the main. so far i have this. #include<iostream> #include<string> #include<fstream> using namespace std; ifstream infile; class animal { string species; string family; string phylum; string desc; static int count; public: bool readIN(const string …

Member Avatar for rstralberg
0
314
Member Avatar for Vish0203

hi everyone! I'm working on project which Generates certificates for different students. The interface takes the input of Name, College, Secured position and generates the certificate... but I want to generate all the certificates at once. So, to avoid overlapping of the file names, i want to generate different file …

Member Avatar for Vish0203
0
130
Member Avatar for darkeclipse8

---------------------------------------------TSet.h------------------------------------------------------ #include <iostream> using namespace std; template <class V> class TSet { public: TSet(); TSet(int size); ~TSet(); void add(V new_item); void remove(V item_to_remove); int num_of_items(); bool isFull(); bool is_item_in_set(V item); friend bool operator==(const TSet<V>& left, const TSet<V>& right); friend bool operator!=(const TSet<V>& left, const TSet<V>& right); friend ostream& operator<<(ostream& outs,const …

0
155
Member Avatar for izabella.pearson

I can not figure out the problem with my program. I am extremely knew at this. The error I get is at the last ' } ' of the program it says "Error expected declaration before '}' token" please help? This is my code #include <iostream> //Header Files #include <fstream> …

Member Avatar for Lucaci Andrew
0
136

The End.