in c++ coding what does it mean when for #include <iostream> it says 'iostream' file not found? here is my code
This is where it gives me that error message |
#include <iostream> | |
#include <fstream> | ||
#include <iomanip> | ||
#include <string> | ||
#include <limits> | ||
using namespace std; | ||
void get_input(int& month, int& day, int& year); | ||
// post-condition: get the input of a date. If the date is NOT valid, will prompt the user to reenter a valid date | ||
// I really like the overloading of the functions - I wish I would have thought about | ||
// how obvious that was when I was writing Project 5! | ||
void get_input(int& month, int& year); | ||
// post-condition: get the input of a month. If the month is NOT valid, will prompt the user to reenter a valid month | ||
void get_input(int& year); | ||
// post-condition: get the input of a year. If the date is NOT valid, will prompt the user to reenter a valid year. | ||
// the year must be later than 1582 in order to be valid. | ||
bool isValid(int month, int day, int year); | ||
// post-condition: return true if the specified date is valid, false otherwise | ||
bool isValid(int month, int year); | ||
// post-condition: return if the specified month is valid, false othewise | ||
bool isValid(int year); | ||
// post-condition: return true if the given year is valid. false otherwise. | ||
// the given year is valid if it is later than year 1582. | ||
void print_calendar(int month, int day, int year); | ||
// pre-condition: the date is a valid date | ||
// post-condition: print out the day of week for specified date. For example, print_calendar(10, 15, 2014) will print out | ||
// October 15, 2014 is Wednesday | ||
void print_calendar(int month, int year); | ||
// pre-condition: the month is a valid month, and the year is a valid year | ||
// post-condition: print out the calendar of specified month | ||
void print_calendar(int year); | ||
// pre-condition: the year is a valid year | ||
// post-condition: print out the calendar of specified year | ||
string monthName(int month); | ||
// pre-condition: the month value is 1, 2, .., 12 | ||
// post-condition: return a string that represents the name of the month. If month is 1, the name is "January" and so on | ||
Step 1 : Check the name of the file or Program. The extension should be .CPP and NOT .c
Step 1: In case the file has an extension of .c . Please rename the file from the file menu and ensure it has the extension of .CPP
Step 3: Compile the program again with this new file extension (.CPP) and it should work.
Note: <iostream> is a header file and part of the C++ standard library so <iostream> only works with C++ language programs and will not work with C programs.
Get Answers For Free
Most questions answered within 1 hours.