Help with homework please! Please use Microsoft visual studios, project win 32 c
ID: 3847949 • Letter: H
Question
Help with homework please!
Please use Microsoft visual studios, project win 32 console application and new item as c++ file please.
Thank You
Your program will be creating 10 library books. Each library book will have title, author and publishing year. Each library book will be stored as a structure and your program will have an array of library books (an array of structures). You will create a corresponding array of book genres: Mystery, Romance, Fantasy, Technology, Children, etc. If the first element of the array is storing information about a book titled : "More about Paddington", then the corresponding first element of book genre would indicate 'Children'. The user of your program should be able to select what they want to do from a menu of the following things and your program needs to do what the menu selection indicates: * Print the entire list of library books (including the title, author, publishing year and book genre) * Display a count of how many books exist per genre * Find all books where the publishing year is greater than the year they put in * Print the titles of the books where the Genre may be indicated by a 'C' for Children, or 'M' for Mystery Create an algorithm. Program and save as LibraryBooksYourName.cpp. Make sure to include the algorithm and comment your code!
Explanation / Answer
#include extern "C" { __declspec(dllexport) void DisplayHelloFromDLL() { printf ("Hello from DLL ! "); } } [DllImport("TestLib.dll")] public static extern void DisplayHelloFromDLL (); using System; using System.Runtime.InteropServices; // DLL support class HelloWorld { [DllImport("TestLib.dll")] public static extern void DisplayHelloFromDLL (); static void Main () { Console.WriteLine ("This is C# program"); DisplayHelloFromDLL (); } }Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.