User Profile

Collapse

Profile Sidebar

Collapse
shashahayes
shashahayes
Last Activity: Mar 31 '10, 01:44 PM
Joined: Mar 5 '10
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • shashahayes
    replied to Output an asterisk rectangle
    in C
    Thanks to all, I finally got to work with all your help !!!
    See more | Go to post

    Leave a comment:


  • shashahayes
    replied to Output an asterisk rectangle
    in C
    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()
    { ...
    See more | Go to post

    Leave a comment:


  • shashahayes
    replied to Output an asterisk rectangle
    in C
    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; ...
    See more | Go to post

    Leave a comment:


  • shashahayes
    replied to Output an asterisk rectangle
    in C
    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 <=
    ...
    See more | Go to post

    Leave a comment:


  • shashahayes
    started a topic Output an asterisk rectangle
    in C

    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;
    ...
    See more | Go to post

  • shashahayes
    replied to Error C2061: syntax error
    in C
    Thank You For your help !
    See more | Go to post

    Leave a comment:


  • shashahayes
    started a topic Error C2061: syntax error
    in C

    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>Furniture.cp p
    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...
    See more | Go to post
    Last edited by shashahayes; Mar 6 '10, 07:25 PM. Reason: missing info

  • shashahayes
    replied to Fatal error C1010: unexpected end of file
    in C
    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()
    ...
    See more | Go to post

    Leave a comment:


  • shashahayes
    replied to Fatal error C1010: unexpected end of file
    in C
    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
    ...
    See more | Go to post

    Leave a comment:


  • shashahayes
    replied to Fatal error C1010: unexpected end of file
    in C
    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()
    ...
    See more | Go to post

    Leave a comment:


  • shashahayes
    replied to Fatal error C1010: unexpected end of file
    in C
    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)...
    See more | Go to post

    Leave a comment:


  • shashahayes
    replied to Fatal error C1010: unexpected end of file
    in C
    Thank you so much. I am having alot of trouble and I appreciate all your help!
    See more | Go to post

    Leave a comment:


  • shashahayes
    started a topic Fatal error C1010: unexpected end of file
    in C

    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
    ...
    See more | Go to post
No activity results to display
Show More
Working...