No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
15 Posted Topics
I am getting an error saying function does not take 2 arugment. Dont know how to fix this. Please help. #include <iostream> #include <cmath> using namespace std; void set_sides(int,int,int&); int main() { int Area, Volume; cout << "Surface Area and Volume of a Cubic Prism. " << endl << "Please … | |
For some reason my program is not working and dont know how to solve this problem. In line 15 the "users" is underline in red and will not run. Please help. #include <iostream> #include <cmath> #include <iomanip> #include <string> #include <fstream> #include <C:\Users\N.\Desktop\Popcorn\Popcorn\JJ.cpp> using namespace std; int main() { fstream … | |
Define an integer vector and get several input from keyboard, then display the numbers in the vector. The while loop is required to write the display loop. I am having trouble turning my program into a while loop and getting mistakes. Please help. #include <iostream> #include <vector> using namespace std; … | |
I am writing a program for class but stuck. I need my program to pick adult, child, student or senior, if I enter any of them. #include<iostream> #include<iomanip> #include<string.h> #include<fstream> using namespace std; int main() { int choice; int months; int Adult, Child, Student, Senior; cout<<"Enter the number of months … | |
Show the hex addresses and variable values after the statements have been executed. (All pointers are 4 bytes!) The first byte of memory below is xFF2A. Not too sure if I am doing this right. Please help. Thanks. t s r q x d c b a 8 8 4 … | |
Im trying to get my program to do z=x*y and z=z+5.0 but not sure what I am doing wrong. #include <iostream> using namespace std; // Declaration: Tells the compiler how a function is called int multiply(int x, int y); int main() { // You can compile a call to the … | |
Would this be considered as a Subrountine problem? My program runs but I feel like it is missing something else. #include <iostream> using namespace std; void getData(int, int, int); int main() { int x,y,z; cout << "Please enter first number: "; cin >> x; cout << "Please enter second number: … | |
How do I turn my problem to have suboutine. Not so sure how to do it. #include <iostream> using namespace std; int main() { int x,y,z; cout << "Please enter first number: "; cin >> x; cout << "Please enter second number: "; cin >> y; z = x + … | |
I am not sure what I am doing so wrong. Please help. #include <iostream> using namespace std; int addition(int x, int y, int z); int main() int x,y,z; int main(){ cout << "Type a number. "; cin >> z; cout << "Type another. "; cin >> x; z = x+y; … | |
I created a program that will find the biggest number when give 3 different numbers. But when I want to change the program to find the biggest number when you enter 4 integer number I continue to run into problems. I can get it to find the biggest number when … | |
I am trying to get my program to run when I input two integer numbers in the subroutine, and then do the following math (x+y)/5. Dont know where I am going wrong. #include<iostream> using namespace std; int Divide(int X,int Y); int main() { int X; int Y; cout<<"first number:"; cin>>X; … | |
I do not understand were I went wrong. 1st is this line: (it is saying that this (;) Error: excepted an expression) 2nd is this line: cout<<"\nRadius is " << radius << set(8)<< "PI is" <<PI; something is wrong with the second (<<) // Program illustrating the use if #defines … | |
Keep saying The variable 'width' is being used without being initialized. #include <iostream> #include <cmath> using namespace std; int main() { float length; float width; float area; cout << "Enter The Length Of The Rectangle: "; cin >> length; area=length*width; cout <<"The area of the rectangle is : "<< area … | |
Using a text editor (i.e. Notepad), create a text file called Text1.txt and place it into a folder of your choosing. Fill Text1.txt with a sentence and save the file. Then, write a C++ program that performs the following: 1. Reads the sentence from the file Text1.txt and display it … | |
The End.