48,985 Topics

Member Avatar for
Member Avatar for sherbertmonkey

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 …

Member Avatar for 1o0oBhP
0
101
Member Avatar for PriyaJaiGanesh

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

Member Avatar for alc6379
0
87
Member Avatar for shermili

#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; …

Member Avatar for alc6379
-1
227
Member Avatar for badchick

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 …

Member Avatar for alc6379
0
123
Member Avatar for CPLUSCPLUS

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

Member Avatar for CPLUSCPLUS
0
116
Member Avatar for mak 23

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 …

Member Avatar for vegaseat
0
148
Member Avatar for dello

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 …

Member Avatar for dello
0
187
Member Avatar for jamir0n

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 …

Member Avatar for jwenting
0
75
Member Avatar for LostinCode

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 …

Member Avatar for LostinCode
0
193
Member Avatar for peter_budo

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 …

Member Avatar for peter_budo
0
151
Member Avatar for Nyika

When reading character data from an input stream, what is the difference between using the >> operator and using the `get` function?

Member Avatar for Tresa
0
81
Member Avatar for sangoku22

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 …

Member Avatar for sangoku22
0
206
Member Avatar for Nabs

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...

Member Avatar for Narue
0
84
Member Avatar for tyalangan

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 …

Member Avatar for Dave Sinkula
0
129
Member Avatar for Marivel

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 …

Member Avatar for britt_boy
0
197
Member Avatar for fero45

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

Member Avatar for fero45
0
149
Member Avatar for skeet123

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 …

Member Avatar for vegaseat
0
186
Member Avatar for KittyGirl

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); …

Member Avatar for jwenting
0
188
Member Avatar for sridarravi

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?

Member Avatar for vegaseat
0
117
Member Avatar for dowens3rd

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

Member Avatar for Dave Sinkula
0
143
Member Avatar for auronvi

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

Member Avatar for auronvi
0
119
Member Avatar for cgre0205

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 …

Member Avatar for alc6379
0
149
Member Avatar for rangers10

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 …

Member Avatar for alc6379
0
159
Member Avatar for blacjuice

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 …

Member Avatar for anastacia
-1
56
Member Avatar for dowens3rd

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 …

0
80
Member Avatar for jeannette1960

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 …

Member Avatar for Dave Sinkula
0
215
Member Avatar for missy

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 …

Member Avatar for vegaseat
0
117
Member Avatar for gallas

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 …

Member Avatar for jwenting
0
195
Member Avatar for arrr matey

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 …

Member Avatar for arrr matey
0
90
Member Avatar for walljoshua

What does it mean if my program compiles but when I run it it says foating point exception (core dumped). Thanks for your help!!

Member Avatar for walljoshua
0
157

The End.