48,985 Topics
|
|
ight here is my program or what i need my program to do and my frame work its pretty nasty its got lot of gaps but i just need to figure out how to output the ending to this to have the right start day the right num of days … |
|
Sir, I need ur help in the Following Assignement. I have to write a program to store the Employee details i.e rollno,Department,salary,name,experience etc using the file operation. plz help me! Urs PriyaJaiGanesh |
|
#include <iostream.h> int main() { int ID,Choice,Addition,Subtraction,Multiplication,Division,Exit; char Firstname[10]; char Lastname[10]; cout<<"Enter your Firstname\n"; cin>>Firstname; cout<<"Enter your Lastname\n"; cin>>Lastname; cout<<"Enter your ID\n"; cin>>ID; cout<<"1. Addition\n"; cout<<"2. Subtraction\n"; cout<<"3. Multiplication\n"; cout<<"4. Division\n"; cout<<"5. Exit\n"; cout<<"Enter your Choice:\n"; cin>>Choice; while (Choice != 5) { switch(Choice) { case 1: cout<<"You have selected Addition\n";Addition;break; … |
|
Hello, I'm back again and i brought my code.. This Program counts upper/ lower case letters, digits, end of sentence markers, intrasentence markers, Blanks, and all other symbols, and then approximate the following statistics on average word and sentence length. But i'm not to sure if this is the right … |
|
The System () function call is in C and C++, but I can't seem to find out just exactly what it can do. I use "C++ How to Program", by Deitel and Deitel, but it's silent on the application of System(). Any help would be appreciated. Thanks. PS: For example, … |
|
i am taking a cpsc 140 class and i'm a little confused how to begin my assignment. Write a C++ program that reads in an unknown number of characters from the a text file, count the number of words, and print each word in reverse to the screen. Words are … |
|
hi all, i need urgent help. i am currently learning c++ and i have been given a program to write, I am really struggling with it and as it is an assignment whic needs to be handed in tomorrow i really need help :( - im not lazy its just … |
|
hi eveyone, my first post...:) my second yr in CS and i decided to start working on VC++ while all C++ i learned and practice is on unix systems using gcc compiler. im using Microsoft Visual Studeio.NET academic verson ver 2003. i keep on getting weird error messages although code … |
|
Hello... I am writing a C++ program that needs to code division with remainders. My current code does not work. //Division if (num2==0) do {num2 = rand() % 10; cout<<"new number "<<num2<<endl;} //get another number while (num2 == 0); cout << "(10) "; cout<<num1 << " / " << num2 … |
|
Hi my name is Peter and I'm looking for somebody who can help me to understand how to read from external file without "destroing" existing inforamtion inside. whole staff is based on book example which i'm trying to extend. I have a programm which is working with database of 3 … |
|
When reading character data from an input stream, what is the difference between using the >> operator and using the `get` function? |
|
I am working on a program that asks for 2 number between 1 and 100. Its supposed to say how much even numbers are in between these two numbers. Then I need it to list out all the even numbers between those numbers... So far I got it to calculate … |
|
Hi Can anyone tell me what isdigit(cin.peek()) means? Is it the same as isdigit(next_char) where next_char is a character variable? Thx...I'm just a beginner... |
|
hey everyone. School is finally over (heck yes!) and next semester I'm moving onto C++, kinda nerve recking. I don't have a good C backround yet. So I'm working on some problems from our text book over the holidays. (If anyone has some interesting problems/programs that I could practice they … |
|
Yeah, it's your typical homework help topic, but the problem is this is stuff we NEVER COVERED IN CLASS and it was NOT IN OUR BOOK, even our TA can't figure out why our professor assigned this to our 101 class. I have a good chunk of it done, I … |
|
Hi Integers ahve a range from -32.767 to +32,767. How come I can use the following code: int a = 1000000; int b = 5000000; int c = a + b; cout << c << endl; ... and it works? Thanks Frank |
|
Can someone point me in the right direction on implementing a merge sort. Here is what the main program will look like. THanks. [CODE]int main(void) { int ar[100]; int i, v, len; for (i=0; i<100; i++) { cout << "enter a number (-1 to quit): "; cin >> v; if … |
|
I'm writing a program that asks the user to input 3 numbers, then outputs the shape of the triangle. This is what I have so far, but it still doesn't work. Can someone help? Thanks! [CODE]#include <iostream> using namespace std; enum triangleType {scalene, isosceles, equilateral, noTriangle}; void triangleShape (int shape); … |
|
I am new to C++ and so how do i start my first programs. Can some one tell me what i need to do first. Also can someone send a free online C++ book? |
|
since no one replied to my first posting I am trying again. This time I was able to take a set length (4) number and sort its digits in order. Example make 5961 output 1659. Can anyone tell me how to do this without limiting the length of the number? … |
|
Ok, I'm sitting here in my CIS class trying to figure out how to move words put in my character array. The program is, sorting the monthly rainfall in order from highest to lowest, organizing the months along with it. I have one array of ints and another character array. … |
|
I AM RUNNING A PROGRAM THAT DEALS WITH TEXT FILES IN NOTEPAD. I TYPE IN A FAKE SSN AND THE PROGRAM IS TO READ A LIST OF FILES FROM student course. I AM GETTING AN ERROR MESSAGE TELLING ME THAT PROGRAM CAN'T READ FILE. TWO EX OF SSN'S ARE 201235678 … |
|
hi, just a quick question i have created a program to input 6 numbers, but the problem is that i need it to subract the highest and lowest numbers then add the remaining numbers left. im new to "c" and cant figure this out i just need someone to point … |
|
I need help with a printData function to output my code to an output file. Ive tried you can see one of my attempts commented out. [code] #include<fstream> #include <iostream> using namespace std; //functions void getData(ifstream& ,ofstream&, int temperature[2][12]); float avgerageHigh(int temperature[2][12]); float avgerageLow(int temperature[2][12]); int indexHighTemp(int temperature[2][12]); int indexLowTemp(int … |
|
I am being asked to take a number like 86249 and produce the output 24689. Basically take a number and print it in ordered form. I can do this with an array of multiple numbers, but can't figure out how to split the number entered into an array so this … |
|
I need help with the source code that I am going to attach. I have all of the pieces but I cannot figure out to put the pieces together. I am to ( 1) have a display showing denominations of money accepted, total amount deposited, price of a soda, and … |
|
i am trying to avg scores but i keep getting errors, can someone please help me. [code] #include "stdafx.h" #include <iostream> using namespace std; const int SIZE =3; int main() { int sum=0; int tests[SIZE]={0}; float average; char terminate; cout<<" Enter test1:"; cin>> tests[0]; cout<<"Enter test2:"; cin>> tests[1]; cout<<" Enter … |
|
I have a silly problem. I want to make a class (let's call it Classone) that has an object that's an instance of Classtwo as an attribute. So far so good, but when Classtwo has an attribute that's an instance of Classone, I get a compilationerror. I would appreciate if … |
|
Me and my friend need to make a license plate generator program as a final project for our c++ class. We're trying to make it so it outputs 6 random numbers and letters. I'm gonna try to make it pick 6 random numbers between 0 and 35. If it is … |
|
What does it mean if my program compiles but when I run it it says foating point exception (core dumped). Thanks for your help!! |
The End.