Forum: C++ Nov 9th, 2009 |
| Replies: 1 Views: 314 I keep getting errors in my code. I can enter the first number 1 fine but then is says that letter c or a is not initialized. What am I doing wrong? This is what i have so far
// Exercise 8.13:... |
Forum: C++ Nov 5th, 2009 |
| Replies: 6 Views: 331 if it shows the triangle after calculating then it should be ok. Thank a lot! |
Forum: C++ Nov 5th, 2009 |
| Replies: 6 Views: 331 Well i know how to do basic programming, I am in a class. I just do not know what to do next. Hence why I am asking on the forum. They are always my last resort. That is exactly what I do, I do basic... |
Forum: C++ Nov 5th, 2009 |
| Replies: 6 Views: 331 I know i have to declare the Variables height base and length
int i, base, hieght, length
for (i = 0; i< 1; ++1) {
printf("*\n"
"hieght= 10"
"base= 10"
"length= 20"} |
Forum: C++ Nov 5th, 2009 |
| Replies: 6 Views: 331 I have to print a triangle in C++ where the length is double the height and base of the triangle it is to be isosceles
this is my Isosceles code. how do I change the length base and width so that... |
Forum: C++ Oct 28th, 2009 |
| Replies: 8 Views: 316 ok thanks a lot i figured it out. |
Forum: C++ Oct 28th, 2009 |
| Replies: 8 Views: 316 In this case it would be line 5 in the code.
int max1, max2, min1, min2, num;
int poscount, negcount;
double sumpos, sumneg, avgpos, avgne;
while (num != 0)
{
cin >> num;
if (num < -100... |
Forum: C++ Oct 28th, 2009 |
| Replies: 8 Views: 316 In this case it would be line 5 in the code.
int max1, max2, min1, min2, num;
int poscount, negcount;
double sumpos, sumneg, avgpos, avgne;
while (num != 0)
{
cin >> num;
if (num < -100... |
Forum: C++ Oct 28th, 2009 |
| Replies: 8 Views: 316 ok when i complied this code it said that there was an expected unqualified id before while in line 2 |
Forum: C++ Oct 28th, 2009 |
| Replies: 8 Views: 316 Thanks again for your help. I cannot use arrays because we have yet to learn them in class. I will compose this code later and see if this works I will let you know. |
Forum: C++ Oct 28th, 2009 |
| Replies: 8 Views: 316 Hey all this is the problem i am currently stuck on; in fact my whole class doesn't get it...
Write a C++ program with a loop that asks user to enter a series of integers in the range of [-100... |
Forum: C++ Oct 27th, 2009 |
| Replies: 9 Views: 573 ok thanks a lot for all your help I get it now. In my class the teacher just lectures and we don't program at all that is for hw!!!! |
Forum: C++ Oct 27th, 2009 |
| Replies: 9 Views: 573 Sorry about that lol. and sorry if this seems basic but how do i ask the user to input the number from 1-30 but it can only be a number from 1-5 |
Forum: C++ Oct 27th, 2009 |
| Replies: 9 Views: 573 Thanks for the advice; So i put part A code in front and Part B code last or is there specific area i need to implement the codes in order to make them work.
Do you think you can show me a... |
Forum: C++ Oct 27th, 2009 |
| Replies: 9 Views: 573 As stated before i make simple programs first and then edit them for my workbook problems i have made a code to display 1-9 in asterisk form but how to i get it to implement to the other... |
Forum: C++ Oct 27th, 2009 |
| Replies: 9 Views: 573 Hello all I am new to this community have found help on it without even joining however I cannot find a solution to my specific problem...
Write a program that reads five numbers (each between 1... |