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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
T

Ting

@Ting
About
Posts
2
Topics
1
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • A window into a big world
    T Ting

    Was this reply meant for someone else. My problem is an address book. Not a game! What does this have to do with my qustion???

    C / C++ / MFC c++ help question

  • Need code for Address Book...
    T Ting

    Hi. I am trying to finish this code for an address book using a struct. Can someone please correct my code. If anyone wishes to help please run the program and you will see what my problem is. After the user makes an entry (with choice 1), it should be able to display (with choice 2). My display function is not working. I am not doing something right. I need help with that, please, anyone :) ! Also, if the user enters more than one entry, the display function should display these entries one at a time. The user will hit enter to display the next entry. And so forth. Here is my code: const char FILENAME[80] = "C:\\MS Visual C++\\Programs\\AddressBooktest.dat"; struct addresstype { char lastname[21]; char firstname[21]; char line1[31], line2[31], line3[31], line4[31]; char phone[14]; }; int menu(); void add_to_address_book(struct addresstype &); void output_info(struct addresstype &, ofstream &); void input_info(struct addresstype &); void display_address_book(struct addresstype); void main() { struct addresstype addin; int choice=0; ofstream outfile; outfile.open(FILENAME, ios::out); if(outfile.fail()) { cout< 3) { system("cls"); cout<<"\t\t" << "INVALID ENTRY"<>choice; return choice; } void add_to_address_book(addresstype& addin) { system("cls"); cout<

    C / C++ / MFC c++ help ios learning
  • Login

  • Don't have an account? Register

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