Click here to Skip to main content
15,916,432 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Reverse Engenieering Software Pin
Henry miller22-Nov-04 3:09
Henry miller22-Nov-04 3:09 
GeneralRe: Reverse Engenieering Software Pin
Anonymous22-Nov-04 3:36
Anonymous22-Nov-04 3:36 
GeneralRe: Reverse Engenieering Software Pin
Filomela6-Dec-04 23:18
Filomela6-Dec-04 23:18 
Generalproblem about invoke OS format command Pin
momer19-Nov-04 22:54
momer19-Nov-04 22:54 
GeneralIntegrate Pin
Member 160860119-Nov-04 17:21
Member 160860119-Nov-04 17:21 
GeneralRe: Integrate Pin
Sujan Christo19-Nov-04 18:00
Sujan Christo19-Nov-04 18:00 
GeneralPrinting arbitray pages Pin
Jim Crafton19-Nov-04 16:37
Jim Crafton19-Nov-04 16:37 
Generalfatal error C1010 Pin
Cramp19-Nov-04 15:37
Cramp19-Nov-04 15:37 
Hi! I appreciate you spend your time to read my question.
I wrote a class which is called Student.
I don't know why I got fatal error C1010 when I compile my Class.

Can anyone tell me why? Thank you.

I past my code below.

//file name:student.h
class student
{
public:
void set_lastname(std::string );
void set_firstname(std::string );
void set_ssn(std::string );
void set_age(int);
void set_phone(std::string );
string show_lastname();
string show_firstname();
string show_ssn();
int show_age();
string show_phone();
private:
string lastname;
string firstname;
string ssn;
int age;
string phone;
};
//filename:student.cpp
#include <iostream>
#include <string>
#include "student.h"
using namespace std;
//--------------------------------------------------------------------------------
// The following functions declare for the class of student.
//--------------------------------------------------------------------------------
string student::show_lastname()
{
return lastname;
}
string student::show_firstname()
{
return firstname;
}
string student::show_ssn()
{
return ssn;
}
int student::show_age()
{
return age;
}
string student::show_phone()
{
return phone;
}
void student::set_lastname(std::string text)
{
lastname=text;
}
void student::set_firstname(std::string text)
{
firstname=text;
}
void student::set_ssn(std::string text)
{
ssn=text;
}
void student::set_age(int number)
{
age=number;
}
void student::set_phone(std::string text)
{
phone=text;
}
GeneralRe: fatal error C1010 Pin
22491719-Nov-04 17:53
22491719-Nov-04 17:53 
QuestionCould I bring a parent window on the top of its child window? Pin
carl wang19-Nov-04 14:06
carl wang19-Nov-04 14:06 
AnswerRe: Could I bring a parent window on the top of its child window? Pin
bmzhao19-Nov-04 14:48
bmzhao19-Nov-04 14:48 
GeneralRe: Could I bring a parent window on the top of its child window? Pin
Anonymous20-Nov-04 13:04
Anonymous20-Nov-04 13:04 
GeneralAll I want to do is update my dialog box! Pin
Zero_G19-Nov-04 12:21
Zero_G19-Nov-04 12:21 
GeneralRe: All I want to do is update my dialog box! Pin
bmzhao19-Nov-04 14:53
bmzhao19-Nov-04 14:53 
GeneralRe: All I want to do is update my dialog box! Pin
22491719-Nov-04 17:41
22491719-Nov-04 17:41 
GeneralRe: All I want to do is update my dialog box! Pin
Zero_G20-Nov-04 12:05
Zero_G20-Nov-04 12:05 
GeneralRe: All I want to do is update my dialog box! Pin
namaskaaram21-Nov-04 17:32
namaskaaram21-Nov-04 17:32 
GeneralRe: All I want to do is update my dialog box! Pin
namaskaaram21-Nov-04 17:42
namaskaaram21-Nov-04 17:42 
Generalurldownload2file Pin
Spiritofamerica19-Nov-04 11:24
Spiritofamerica19-Nov-04 11:24 
GeneralRe: urldownload2file Pin
Michael Dunn19-Nov-04 13:20
sitebuilderMichael Dunn19-Nov-04 13:20 
GeneralRe: urldownload2file Pin
22491719-Nov-04 17:05
22491719-Nov-04 17:05 
GeneralRe: urldownload2file Pin
Spiritofamerica20-Nov-04 3:06
Spiritofamerica20-Nov-04 3:06 
Generalurldownload2file no cache Pin
Spiritofamerica19-Nov-04 11:05
Spiritofamerica19-Nov-04 11:05 
GeneralCrystal Reports from VC++ Pin
BlackDice19-Nov-04 10:34
BlackDice19-Nov-04 10:34 
GeneralDialog debug error: DAMAGE Pin
19-Nov-04 10:00
suss19-Nov-04 10:00 

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.