51,593 Topics
![]() | |
hello there, when I try to combine 2 arrays together it displays "0". I think I don't understand the concept of constant. This is my code: [code] #ifndef INTSET_H #define INTSET_H class IntegerSet { public: IntegerSet( int ); IntegerSet( const IntegerSet& ); IntegerSet unionOfIntegerSets( const IntegerSet& ); IntegerSet intersectionOfIntegerSets( const … | |
hi i need help i install microsoft visual c++ 6.0 but if i compile any programme he write error spawing cl.exe plz help me coz i have exam and i need help plzzzzzzzzzzzzzzzzzzzzzzzzzzzz | |
This is my program but that I have to put it into structure form but without using member functions but i dont see how I can make it run #include <iostream.h> #include <string.h> #include <stdlib.h> #include <iomanip.h> struct hope() { int x; char st_name[25]; char st_address[75]; char st_color[25]; float f_ccost; … | |
If you type in employee ID, and then a character (other than s, h or c) including the enter key. You get a message that says, "Do you want to try again or quit?" "Type q or Q to quit any other key to continue." If you hit any other … | |
I'm making a program that takes the words from one text or data file and transferes it to another. there are not supposed to be any spaces in the second file. I need to know why I can't make this code work. It would not be the completed code but … | |
ok im having this problem. i have a function in which i have to create a triangle using *'s. The user inputs the base and height of the triangle and from that im supposed to print out the shape. Ive been playing with for, and while loops and cant seem … | |
I finally give up. I have here two very simple forms that (for demonstration purposes) consist of a single click button. When you click on the button, the form becomes invisible, and the other becomes visible. you can keep going back and forth till your coffee needs re-heating in the … | |
Please let me know why this is going into an endless loop if you enter a decimal point for your monthly salary, hours worked, or sales. Is there an easy fix? #include <iostream> #include <iomanip> using namespace std; #include <cstdlib> #include <string> bool getEmployeeData (int*, char*, int*, int*, int*, int); … | |
plz anyone can send me the code for Round Robin simulation ??? send that to [email]ur_friend_qau@hotmail.com[/email] plz its very urgent i got only 12 hrs plzzzzzzzzzzzzzzzzzzzzzz ALLAH HAFIZ | |
Hi everyone, Ive got a question concerning an excersise I have to make in wich I use an array in a function: I have to manually fill an array with twenty numbers randomly and the array has to be used by a function, now, I know how to do this … | |
need help with current code, I am a newbie. keep in mind, that everything that can be, needs to be passed by value. and only three functions can be called from main. they are getEmployeeData, displayEmployeeInfo, and calculateGrossPay. and all functiontions must keep the header type below. Help is greatly … | |
I need help using the GCD Algo. in my program, I can't figure out to use the algo in my program. The algo: int gcd(int a, int b){ assert(b != 0); int rem = a % b; while(rem !=0 ){ a = b; b = rem; rem = a % … | |
hi i need help i install microsoft visual c++ 6.0 but if i compile any programme he write error spawing cl.exe plz help me coz i have exam and i need help plzzzzzzzzzzzzzzzzzzzzzzzzzzzz | |
a program that will allow the user to input two fractions and one of the four operations of +, - , *, and / . Once this information has been entered, the program should compute the operation on the two fractions and then output the answer appropriate labeled. Reducing the … | |
I have never seen an example of this, but I need to call a function or another bool from inside a bool! If anyone knows how this might go, please let me know. P.S. This website is awsome! Thanks, Paul //something like this, however this is not working... bool getEmployeeData(int … | |
i wanna know how i can write in C a compiler for checking the multiplication and the division of course... ;) | |
am calling Form2 from Form1, and depending on the input in Form2, I want to enable/disable buttons in Form1 when I exit. However, because I need to call Form2 header before I define class Form1, Form1 is not defined when the compiler sees my call to it. If I therefore … | |
I have a problem. I have this code but the problem is how do i put the results in a histogram form. Can someone please help. #include <iostream> using namespace std; int main() { const int arraySize=30, rangeSize=9; int gross_Sales[arraySize]= { 2430, 3500, 9400, 14300, 4200, 1250, 9990, 5410, 5400, … | |
I have to use a while loop to display everything 3 times and then i have to use a do while loop to do the same thing when i added my while and do while loop it keeps on repeating like a millions times and i cant stop it can … | |
This is my program but i cant get it to calculate my cost These are my calculations: 1) if the color of the car is blue and the cost of the car is less than 1200 add 10% of the cost of the car to the cost of the car … | |
This is really urgent ..... I would be very thankful for anyone who could suggest me and help me out! Hi all, Can I club two exe files while developing a software... Details are as follows: 1. I want to develop a software in which I want to add features … | |
I have created a simple webform that has a submit button. I cannot figure out how so that when the button is pressed it sends the form to an email address. Can anyone help? Thanks | |
I have MFC Application which expected to generate reports in XML formats, my problem I do not have an idea for how simply dealing with XML as found in .NET (XmlDocument Class). can u suggent me with solution? Regards | |
HI there guys any one know how to create the correct tone for the sound using c++? i manage to know the basic only c 262 d294 e 330 f 349 f 392 a 440 b 494 c2 524 This is from a handphone ringing tone how do i know … | |
Hello Everyone, I was wondering if anyone could show me how to call a function from inside a boolean statement. Something like the example below. I know it isn't right and was wondering if anyone could give me a hint or an example of coding it correctly. Thank you, hill0ster! … | |
I'm learn c++ alone and need help to write programs plz help me :cry: [COLOR=Magenta]A.Write is the greatest number?[/COLOR] [COLOR=Blue]You have to stor. In an array, twenty integer number given by the user. One these numbers are stored in this array, you have to find the greatest number and print … | |
I am going to the nearest Barnes and Noble store this weekend, with the greatful help of you, I need some C++ recommendation books for beginners. I know I already asked, but just thought I'd ask again, I have $50 so no expensive books. Overall, anybody with help gets a … | |
I am a windows programming student, am doing VC++ but I have a problem about socket programming. I just don't know which code has be written in the clients and which has be written to the server Can somebody help me complete my CSocket programming Best bregards Steward | |
Can you tell me why my loop is not working correctly. I am attempting to have only the groups (20-30),(490-500),and (8120-8130) printed on the screen but all the numbers are printing from 1-8130. We I try the loop by itself is prints fine but when I added to the rest … | |
Anyone out there pliz help me.am new to c++ and the program am supposed to write has to accept 1. 19 country names 2. there populations 3. growth const and i have to use a formula (population*growth const) to find the growth of the country. dispalay sholud be like as … | |
This is my new program and it is like so killing me I dont understand all those errors I keep getting // Description: This is program 1 of 3 // Display person name, address, calculated and // actual cost of car and color of car 3x. 1 using the For … | |
| |
i have got to write a program to read a set of program n print out the average. it will start by prompting the user for the number of numbers to be read and will then prompt for the individual numbers with a prompt such as Enter Number 23 to … | |
Hello Everyone, I'm trying to exchange messages between three different programs, I was able to establish a connection between the Server and Client A programs, but when I added code to include client B program I got an infinite loop. I've enclosed segments of my code. I would really appreciate … | |
ok...i am trying to figure out how to read input .... i am reading input from the command line [code] sh% ./a.out < input_file[/code] within the input_file, it looks like this: [code]0 4 6 7 3 1 3 6 7 4 3 6 2 3 6 7 3 2 4 … | |
Hello there, why do I have this message when I try to use subTwoComplex in my testing file? The addTwoComplex works fine but not the "sub"one. What's wrong? thanks error C2039: 'subTwoComplex' : is not a member of 'Complex' *********header file #ifndef COMPLEX_H #define COMPLEX_H class Complex { public: Complex( … | |
| |
Hey there I have this C++ program to do where I have to output principal, interest and debt and those type of things, all in a table. My program works well, except fot the fact that the cents are not correctly outputted. Like, instead of getting a value like 46999.88, … | |
Hi all! My first post here. I have a question about FileWrite(int Handle, const void *Buffer, unsigned Count) function in C++ Builder 6. How do I write Ansistring into the file using this function? Here is a code sample. Everything works fine. File 11_10_2004.txt has string "Simple text" in it. … | |
:sad: I want to do serious C++ and VB programming but schooling is quite expensive, so I want to read and do it on my own. I know there are various text editors...even note pad. Are these editors used for programming, and then copied to a special programming software???? Forgive … | |
dear respected....... would u plz help me to learn graphics in C++.Like drawing lines,circles,ellips etc. Wish u all the best :mrgreen: | |
[FONT=Verdana]Hello everybody, I am fairly new here. I was banned from another forum because of a false rumor that got to the administration. Anyway, just wanted to welcome myself. Secondly, I am trying to learn C++ and I purchase a C++ book from a local book store. The book is … | |
hi im havin a problem w/ printing a linked list. my program reads two input files and makes two linked lists out of them, and apend the lists and print it out. my input files look like this: 1 2 3 4 5 (input1) 11 22 33 44 (input2) here's … | |
I've written the program out but I'm not sure on how I can get the largest and smallest # to display.. can anyone help? thanks. Write a program with a loop that lets the user enter a series of integers. The user should enter -99 to signal the end of … | |
As a long time Windows C++ developer I now find myself with the will/opportunitty to develop on the Linux platform. I'm intrested in multi-thread development, Socket, ODBC development. Thanks for any help James | |
Hi! I am trying to write the program described below. Below the program I have included the text from the file I call. I have written the program, but I don't know what I have done wrong. Can anyone enlighten me? Thanks *Write a program that will compute the words … | |
greetings.... can any of you people give me some websites where i can take some C++ programmin' challenges(free) -h3rtz- | |
Hi I am just beginning to learn C++. I am using Borland C++ Builder ( free version ). I want to know is after writing the C++ commands in Note pad, how do I save it in .CPP format. CPP format is required to convert to .EXE through Borland. Notepad … | |
hi! i'm trying to make a simple line editor... i have two main questions in mind: 1.) what's the syntax to make the cursor appear at the middle, or at the bottom part of the screen...or how can you print something and make it appear at a certain position 2.) … | |
I'm writing a program that uses functions that I create.It hasn't been much trouble until I got to a point where I am supposed to create a function that calculates the total of everything bought with sales tax. the problem is I can't get the total which has already been … |
The End.