Click here to Skip to main content
15,894,180 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: a error has been throwed out when I add records into database? Pin
Maxwell Chen18-May-02 7:56
Maxwell Chen18-May-02 7:56 
Generalabout DCT & IDCT Pin
storein17-May-02 16:22
storein17-May-02 16:22 
GeneralRe: about DCT & IDCT Pin
storein18-May-02 22:13
storein18-May-02 22:13 
GeneralClass View Pin
Francisco Moraes17-May-02 14:40
Francisco Moraes17-May-02 14:40 
GeneralRe: Class View Pin
Amit Dey17-May-02 15:00
Amit Dey17-May-02 15:00 
GeneralRe: Class View Pin
Francisco Moraes18-May-02 2:44
Francisco Moraes18-May-02 2:44 
GeneralRe: Class View Pin
Francisco Moraes18-May-02 3:49
Francisco Moraes18-May-02 3:49 
GeneralTwo Errors LNK2001 and LNK1120 Pin
Dee17-May-02 13:18
Dee17-May-02 13:18 
IBCD.lib(crt0.obj) : error LNK2001: unresolved external symbol _main
Debug/Accounts.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.

This is my HEADER file
#ifndef ACCOUNTS_H
#define ACCOUNTS_H

class Accounts
{ private:
int num;
int type;
float balance;
public:
Accounts();
int getnum();
void setnum(int n);
int gettype();
void settype(int t);
float getbalance();
void setbalance(float b);
};
#endif
This is my CPP file:
#include "Accounts.h"
#include <string.h>
#include <iostream.h>


int Accounts::getnum()
{ return num; }
void Accounts::setnum(int n)
{ num=n; }
int Accounts::gettype()
{ return type; }
void Accounts::settype(int t)
{type=t; }
float Accounts::getbalance()
{ return balance; }
void Accounts::setbalance(float b)
{ balance =b; }

I appreciate any suggestion.
Thank you
GeneralRe: Two Errors LNK2001 and LNK1120 Pin
Christian Graus17-May-02 13:50
protectorChristian Graus17-May-02 13:50 
Generalunace.dll Pin
carrie17-May-02 13:11
carrie17-May-02 13:11 
GeneralRe: unace.dll Pin
Mukkie18-May-02 0:38
Mukkie18-May-02 0:38 
Generalsimple question Pin
rbc17-May-02 12:50
rbc17-May-02 12:50 
GeneralRe: simple question Pin
Jack Handy17-May-02 13:34
Jack Handy17-May-02 13:34 
GeneralRe: simple question Pin
rbc17-May-02 14:00
rbc17-May-02 14:00 
GeneralRe: simple question Pin
rbc17-May-02 14:09
rbc17-May-02 14:09 
GeneralUDP broadcast again!! Pin
Rickard Andersson2017-May-02 12:34
Rickard Andersson2017-May-02 12:34 
GeneralCListView.. OnPaint().. Help! Pin
RobJones17-May-02 11:33
RobJones17-May-02 11:33 
GeneralRe: CListView.. OnPaint().. Help! Pin
Shog917-May-02 14:30
sitebuilderShog917-May-02 14:30 
GeneralSame problem :( Pin
17-May-02 14:42
suss17-May-02 14:42 
GeneralRe: Same problem :( Pin
Shog917-May-02 15:52
sitebuilderShog917-May-02 15:52 
GeneralThanks! Pin
RobJones20-May-02 6:18
RobJones20-May-02 6:18 
GeneralMAPIAddress() and the default button Pin
Shog917-May-02 11:23
sitebuilderShog917-May-02 11:23 
GeneralCTreeCtrl issues Pin
dazinith17-May-02 10:33
dazinith17-May-02 10:33 
GeneralRe: CTreeCtrl issues Pin
Ravi Bhavnani17-May-02 11:06
professionalRavi Bhavnani17-May-02 11:06 
GeneralRe: CTreeCtrl issues Pin
dazinith20-May-02 3:59
dazinith20-May-02 3:59 

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.