User Profile
Collapse
-
Thanks to all, I finally got to work with all your help !!! -
I know I must be over looking something simple. It seems as if the else if statement is doing nothing. All I am getting is a vertical line on the left side. I am at a loss for what to do. Thanks for all your help and if anyone can see what I am doing wrong now please let me know.
Her is the code
#include <iostream>
#include <string>
using namespace std;
int main()
{ ...Leave a comment:
-
Thank you so much for your help. I am now getting a straight line down instaed of across. Any Ideas on how to fix this?
*
*
*
*
*
This is what I have now.
#include <iostream>
#include <string>
using namespace std;
int main()
{
const int NUM_ACROSS = 8;
const int NUM_DOWN = 6;
int row;
int column; ...Leave a comment:
-
Now I am just getting the line across the top.
************
Do you have any ideas why I am not getting the down row?
this is what I have now.
Code:#include <iostream> #include <string> using namespace std; int main() { const int NUM_ACROSS = 8; const int NUM_DOWN = 6; int row; int column; for (row = 0; row <=
Leave a comment:
-
Output an asterisk rectangle
This program prints the outline of a rectangle with 6 asterisks
across and 8 asterisks down.
Input: None
Output: Prints the outline of the rectangle.
Code:#include <iostream> #include <string> using namespace std; int main() { const int NUM_ACROSS = 6; const int NUM_DOWN = 8; int row; int column;
-
-
Error C2061: syntax error
I am getting an error on this line, does anyone have any suggestions?
here is the error
here is line 25
Code:if area > 750 then charge = 200
1>c:\users\jims ha\documents\vi sual studio 2008\projects\f urniture\furnit ure\furniture.c pp(25) : error C2061: syntax error : identifier 'area'
1>Build log was saved at "file://c:\Users\JimSha \Documents\Visu al... -
I only have one error now and I don't know what is causing it. Do you have any ideas?
Code:// Furniture.cpp : Defines the entry point for the console application. // #include "stdafx.h" // Furniture.cpp - This program calculates prices for custom made tables. #include <iostream> #include <string> using namespace std; int main()
Leave a comment:
-
I got past the string problem. Thanks I don't how it would have took me without your help!!! Now my problem has moved down to line 25, 26, 28. Do you see what I did wrong?
Code:// Furniture.cpp - This program calculates prices for custom made tables. #include <iostream> #include <string> using namespace std; int main() { double Charge = 0.0; double Length
Leave a comment:
-
Here is what I got now, I changed the wood type to WoodType and I still get an error.
Code:// Furniture.cpp : Defines the entry point for the console application. // #include "stdafx.h" // Furniture.cpp - This program calculates prices for custom made tables. #include <iostream> #include <string> using namespace std; int main()
Leave a comment:
-
Thanks again. I got past the intial problem with your help. Now I am getting a different message. If you could add some insight to what I am doing wrong I would really appreciate it !
1>------ Build started: Project: Furniture, Configuration: Debug Win32 ------
1>Compiling...
1>stdafx.cpp
1>Compiling...
1>Furniture.cp p
1>c:\users\jims ha\documents\vi sual studio 2008\projects\f urniture\furnit ure\furniture.c pp(19)...Leave a comment:
-
Thank you so much. I am having alot of trouble and I appreciate all your help!Leave a comment:
-
Fatal error C1010: unexpected end of file
This is the message I am getting when I try to compile it.
fatal error C1010: unexpected end of file while looking for precompiled header. Did you forget to add '#include "stdafx.h"' to your source?
Code:// Furniture.cpp - This program calculates prices for custom made tables. #include <iostream> #include <string> using namespace std; int main() { double
No activity results to display
Show More
Leave a comment: