Click here to Skip to main content
15,895,667 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: how to dermine weather the Given string is numeric or not , vc++ Pin
Waldermort6-Sep-06 0:39
Waldermort6-Sep-06 0:39 
AnswerRe: how to dermine weather the Given string is numeric or not , vc++ Pin
Hamid_RT6-Sep-06 0:52
Hamid_RT6-Sep-06 0:52 
AnswerRe: how to dermine weather the Given string is numeric or not , vc++ Pin
David Crow6-Sep-06 4:04
David Crow6-Sep-06 4:04 
GeneralRe: how to dermine weather the Given string is numeric or not , vc++ Pin
toxcct6-Sep-06 4:53
toxcct6-Sep-06 4:53 
GeneralRe: how to dermine weather the Given string is numeric or not , vc++ Pin
David Crow6-Sep-06 6:15
David Crow6-Sep-06 6:15 
AnswerRe: how to dermine weather the Given string is numeric or not , vc++ Pin
Dennis Furlaneto6-Sep-06 5:59
Dennis Furlaneto6-Sep-06 5:59 
GeneralRe: how to dermine weather the Given string is numeric or not , vc++ Pin
toxcct6-Sep-06 21:13
toxcct6-Sep-06 21:13 
QuestionNeed help: fatal error C1004: unexpected end of file found Pin
bloodwinner6-Sep-06 0:33
bloodwinner6-Sep-06 0:33 
I just want to practice class using, but met this problem:
fatal error C1004: unexpected end of file found.Could anyone lend me a help,thank you!

Code:

// prac.cpp : Defines the entry point for the console application.

#include "stdafx.h"
#include "iostream"

using namespace std;


class polygon{
protected: int width, height;
public: polygon(int,int);

virtual int area ()
{ return (0); }
};

polygon::polygon(int a,int b)
{
width=a;
height=b;
}

class triangle: public polygon{
public: int area(){
return(width * height/2);
};

class quadrangle:public polygon{
public: int area()
{return (width * height);}
};


void main(int argc, char* argv[])
{
quadrangle ax(10,5);
triangle bx(10,5);

cout << "ax area: " << ax.area() << endl;
cout << "bx area: " << bx.area() << endl;

}
AnswerRe: Need help: fatal error C1004: unexpected end of file found Pin
toxcct6-Sep-06 0:37
toxcct6-Sep-06 0:37 
QuestionRe: Need help: fatal error C1004: unexpected end of file found Pin
bloodwinner6-Sep-06 0:55
bloodwinner6-Sep-06 0:55 
AnswerRe: Need help: fatal error C1004: unexpected end of file found Pin
toxcct6-Sep-06 2:09
toxcct6-Sep-06 2:09 
GeneralRe: Need help: fatal error C1004: unexpected end of file found Pin
Nish Nishant6-Sep-06 5:04
sitebuilderNish Nishant6-Sep-06 5:04 
GeneralRe: Need help: fatal error C1004: unexpected end of file found Pin
toxcct6-Sep-06 5:52
toxcct6-Sep-06 5:52 
GeneralRe: Need help: fatal error C1004: unexpected end of file found Pin
Nish Nishant6-Sep-06 7:04
sitebuilderNish Nishant6-Sep-06 7:04 
GeneralRe: Need help: fatal error C1004: unexpected end of file found Pin
toxcct6-Sep-06 21:16
toxcct6-Sep-06 21:16 
AnswerRe: Need help: fatal error C1004: unexpected end of file found Pin
Jun Du6-Sep-06 5:25
Jun Du6-Sep-06 5:25 
AnswerRe: Need help: fatal error C1004: unexpected end of file found Pin
oleg636-Sep-06 8:12
professionaloleg636-Sep-06 8:12 
Questionhow to solve this problem(posted again) Pin
sinbear5-Sep-06 23:44
sinbear5-Sep-06 23:44 
AnswerRe: how to solve this problem(posted again) Pin
Cedric Moonen5-Sep-06 23:55
Cedric Moonen5-Sep-06 23:55 
AnswerRe: how to solve this problem(posted again) Pin
Waldermort6-Sep-06 0:32
Waldermort6-Sep-06 0:32 
QuestionRe: how to solve this problem(posted again) Pin
David Crow6-Sep-06 4:09
David Crow6-Sep-06 4:09 
JokeRe: how to solve this problem(posted again) Pin
Maximilien6-Sep-06 4:18
Maximilien6-Sep-06 4:18 
GeneralRe: how to solve this problem(posted again) Pin
David Crow6-Sep-06 7:50
David Crow6-Sep-06 7:50 
AnswerRe: how to solve this problem(posted again) Pin
sinbear6-Sep-06 5:11
sinbear6-Sep-06 5:11 
QuestionRe: how to solve this problem(posted again) Pin
David Crow6-Sep-06 6:19
David Crow6-Sep-06 6:19 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.