49,761 Topics
| |
Is there anyway to interrupt one program with another program? One program writes to a file, and the other one reads and prints a certain statement depending on what was read. I want the reading program to be interrupted when the writing program writes. | |
I get a compiling error in the main fuction 'cout << a.GetVect() ; ' I am not sure whether the problem is in the overloading function or in class. Anyone has any idea why I take this error? you can check the compiled code and errors in http://ideone.com/ODOJik Thanks in … | |
Isn't the remainder should be 0? But in programming 2%5=2, 4%5=4 Please explain | |
The prgram will only display one number. In this case 9. I switched, 9 with 6.71; and only 6.71 displayed. So what this means, only the 2nd to last node's value is displayed. Note that the display function is able to display the original order of the array passed to … | |
I will be posting bits and pieces of my code that is relevant. //Function Prototype int binarySearch(char*); // Binary search of dictionary. the Function I'm passing to. char* reverseTruncateCipher[80]; <---- variable I'm passing. /*I have these variables stored in them reverseTruncateCipher[0] = all reverseTruncateCipher[1] = generalizations reverseTruncateCipher[2] = are reverseTruncateCipher[3] … | |
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. // … | |
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 | |
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 … | |
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 … | |
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 … | |
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 … | |
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: … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
can you give me a very simple qtwebkit example that explain how it works and how to use it? | |
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 … | |
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. … | |
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 … | |
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, … | |
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 … | |
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 … | |
Sorry! The problems are all solved and every error is removed.. Sorry guys! Modes: Please delete this thread. CJ |
The End.