49,761 Topics

Member Avatar for
Member Avatar for dalawh

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.

Member Avatar for mike_2000_17
0
231
Member Avatar for sabrimev

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 …

Member Avatar for sabrimev
0
167
Member Avatar for umerm04

Isn't the remainder should be 0? But in programming 2%5=2, 4%5=4 Please explain

Member Avatar for nmaillet
0
137
Member Avatar for coroshea

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 …

Member Avatar for coroshea
0
218
Member Avatar for Carc369

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

Member Avatar for Ancient Dragon
0
225
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
136
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
278
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
166
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
278
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
206
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
240
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

The End.