No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
I am writing a program that outputs whether or not a number is prime. Can anyone help me find where my syntax error is? Also, i get that i = 3; i <= num; i++ would be true for it being a prime number from the other forums I have … |
|
Hello, for some reason I am having trouble remembering how to make it exit when they push the number 9. Can anyone help me? Also, I need it to repeat rather than at the end saying "press any key to continue" I know I will do this using while (choice … |
|
Can someone help me on this? While considering the following function definition: [CODE]void defaultParam(int u, int v = 5, double z = 3.2) { int a; u = u + static_cast<int>(2 * v + z); a = u + v * z; cout << "a = " << a << … |
|
My program is supposed to open files, initialize variables, use the functions sumGrades, averageGrade and printResults. I am having some errors and was hoping someone could help me out. To begin with some errors I'm getting are: line 10- two few arguments to function 'void printResult(int, int, float, float, float, … |
|
With this program I need to be able to find the circumference, area, diameter and radius of a circle. Here is what I have, please let me know of any advice you have: [CODE]#include <iostream> #include <iomanip> #include <cmath> using namespace std; int main () { int x1; int x2; … |
|
I have typed this many ways into dev-c++ trying to figure out how to figure out the output but it always comes back with errors no matter what headers I have used and other things. Can anyone give me some ideas? I don't want the answer, just ideas on how … |
|
Hello, I need some help figuring out which errors are syntax errors in this. Compared to what I started with this has come a long way but there are still some in there that I am having trouble spotting. I do know that they if statements are incorrect, i'm just … |
|
Hello, I'm new here and not quite sure what it means by wrapping code in code tags so for my future posts can someone let me know how this should have been formatted so it would be a correct post? My question is I have a program I am writing … |