Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
D

Dee

@Dee
About
Posts
5
Topics
3
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • how to run perl in xampp windows
    D Dee

    "i call it like localhost/printenv.pl" But, you should call it like this: localhost/cgi-bin/printenv.pl

    Linux, Apache, MySQL, PHP perl apache tools help tutorial

  • linking errors LNK2001
    D Dee

    When I build my bank.cpp file, I get these linking errors. I don't understand these coding errors, I would appreciate any help you could give me. Linking... Bank.obj : error LNK2001: unresolved external symbol "public: class Account & __thiscall Customer::getchecking(void)" (?getchecking@Customer@@QAEAAVAccount@@XZ) Bank.obj : error LNK2001: unresolved external symbol "public: void __thiscall Account::setbalance(float)" (?setbalance@Account@@QAEXM@Z) Bank.obj : error LNK2001: unresolved external symbol "public: void __thiscall Account::setnum(int)" (?setnum@Account@@QAEXH@Z) Bank.obj : error LNK2001: unresolved external symbol "public: class Account & __thiscall Customer::getsavings(void)" (?getsavings@Customer@@QAEAAVAccount@@XZ) Bank.obj : error LNK2001: unresolved external symbol "public: void __thiscall Customer::setpin(int)" (?setpin@Customer@@QAEXH@Z) Bank.obj : error LNK2001: unresolved external symbol "public: __thiscall Customer::Customer(void)" (??0Customer@@QAE@XZ) Bank.obj : error LNK2001: unresolved external symbol "public: float __thiscall Account::getbalance(void)" (?getbalance@Account@@QAEMXZ) Bank.obj : error LNK2001: unresolved external symbol "public: int __thiscall Account::getnum(void)" (?getnum@Account@@QAEHXZ) Bank.obj : error LNK2001: unresolved external symbol "public: int __thiscall Customer::getpin(void)" (?getpin@Customer@@QAEHXZ) LIBCD.lib(crt0.obj) : error LNK2001: unresolved external symbol _main Debug/Bank.exe : fatal error LNK1120: 10 unresolved externals Error executing link.exe. Bank.exe - 11 error(s), 0 warning(s) This is my bank.cpp file............................. #include "Bank.h" #include Bank::Bank() { numcustomers=0; companyname=""; } int Bank::getNumcustomers() {return numcustomers;} char * Bank::getCompanyname() {return companyname;} Customer& Bank::getCustomer(int index) { return customers[index];} void Bank::setNumcustomers(int n) { numcustomers=n; } void Bank::setCompanyname(char * c) { companyname =c;} void Bank::setCustomer(Customer &c,int index) {customers[index]= c;} bool Bank::readCustomers() { ifstream infile; infile.open("customers.dat"); if(!infile) { return false; } else { infile>>numcustomers; int numberpin=0; int cksavnumber=0; float savckbalance=0.00f; customers = new Customer[numcustomers]; for(int x1=0;x1<=numcustomers;x1++) { infile>>numberpin; infile>>cksavnumber; infile>>savckbalance; customers [x1]

    C / C++ / MFC help c++ database debugging sales

  • New to the language and confused
    D Dee

    I mean can the following be done: bool Bank::withdraw(float amount,Account a); cout<<"\nEnter a positive amount for the withdrawal-$"; cin>>amount; while(amount<=0) { cout<<"\ninvalid amount"; cout<<"\nEnter a positive amount for withdrawal-$"; cin>>amount; } If there was an int or float in the place of bool I would not be so lost.

    C / C++ / MFC

  • New to the language and confused
    D Dee

    I'm confused with booleans. If I have these kind of methods in my classes bool withdraw(float amount,Account a); bool transfer(float amount,Account s,Account c); could I still use couts and cin in my void main

    C / C++ / MFC

  • Two Errors LNK2001 and LNK1120
    D Dee

    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 #include 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

    C / C++ / MFC c++ debugging help
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups