Fatal Error C1083 Iostream.h
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up fatal error C1083: Cannot open include file: 'iostream': No such file or directory up vote 4 down vote favorite 1 I've reinstalled Visual Studio 2010 Professional several times to try to get it to work. I had to uninstall Visual Studio 2012 Professional because it wasn't compiling something we did in class. I completely uninstalled everything including SQL Server.. I went to VC/include and the iostream header file is not there. #include int main () { cout << "hello"; system ("PAUSE"); return 0; } This is all I'm trying to do because nothing else is working. It's really driving me crazy because I need to get it working so that I can do my project!!! Every time I do; new project => empty project => add an item to source =>.cpp I'm running windows 8. It just says Error cannot open source file Also, error cout identifier is undefined.... I'm wondering if I should do a system restore? Or if I should just completely reinstall windows 8 from my recovery media? c++ windows visual-studio-2010 include iostream share|improve this question edited Mar 6 '13 at 5:58 Mysticial 282k35240264 asked Mar 3 '13 at 1:41 syuja 35115 add a comment| 2 Answers 2 active oldest votes up vote 5 down vote One problem is that you did not include the namespace std. This is what your code should look like: #include using namespace std; int main (void) { cout << "hello" << endl; system("pause"); return 0; } or you could have done something like this: std::cout << "Hello" << std::endl; This may be a problem because you did not set your environment to C++. This is how you do it: Go to Tools > Import and Export settings. If you cannot find it, just search for it in Quick Search Then go to reset all settings. Then simply select "Visual C++" Restart. That should do the trick. If it does not, you
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of http://stackoverflow.com/questions/15181537/fatal-error-c1083-cannot-open-include-file-iostream-no-such-file-or-directo 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up how do i fix this? fatal error C1083: Cannot open include file: 'iostream.h': No such file or directory up vote 1 down vote favorite i just started with visual studio 2008, i used codeblocks before and everything http://stackoverflow.com/questions/17763488/how-do-i-fix-this-fatal-error-c1083-cannot-open-include-file-iostream-h-no about visual studio is confusing. // PONG by Emilie Sutterlin, 10/10/97 // Description: This program is the game pong. //=================================================================== #include #include #include #include #include #include #include #include //==========GLOBALS AND CONSTANTS======================== const MAX = 10; int lprow=2, rprow=2, col=2, colinc=2, rowinc=1, row=1, oldrow, oldcol, scorr=0, scorl=0; //==========Prototypes=================================== void ball_bounce (); void paddle_pong (); //====================================================== int main (void) { clrscr (); fflush(stdin); int num; textbackground (BLACK); textcolor (WH|TE); clrscr(); _setcursortype(_NOCURSOR); //|NTRODUCT|ON cout<<"WELCOME TO PONG"<such file or directory Visual Studio Languages , Windows Desktop Development > Visual C++ Question 0 Sign in to vote below is my coding, please help me #include https://social.msdn.microsoft.com/Forums/vstudio/en-US/3dbd995f-f467-40bd-a0f1-b3abc863990e/fatal-error-c1083-cannot-open-include-file-iostreamh-no-such-file-or-directory?forum=vcgeneral #include #define MAXSIZE 100 int main() { int i,j,k; int n,A[MAXSIZE]; int ITEM; clrscr(); /* Read in a value for number of elements */ cout<< "\nEnter list size: "; cin>>n; //Note that in C++ an array index alwaysstarts from zero and //ends with size-1 where size is the array size. //E.G.,A[2] refers to the third element. /*Read in the list of number */ for(i=0;i> A[i]; // Displays contents of list beforeinsertion cout<<"\n Content of list before insertion:"; for (i=0; i>k; cout<<" Enter fatal error c1083 content(number) to insert at A ["<< k <<"]location:"; cin >> ITEM; // Insert new element for (j=n; j>=k; j--) // Initialize/decrease counter { A[j+1] = A[j]; //Move j-th element downward } A[k]= ITEM; //Insert element // Display contents of list after insertion cout<<" \n Contents of list after inserting new element:"; for (i=0; i is an obsolete header. Use Also remember that cin, cout etc. are in the std namespace. You can put using namespace std; at the top of your main() (after the include) to bring the std namespace into your code.David Wilkinson | Visual C++ MVP Proposed as answer by Scot Br - MSFTMicrosoft employee Saturday, June 06, 2015 12:01 AM Marked as answer by Shu HuMicrosoft contingent staff Tuesday, June 16, 2015 12:01 PM Thursday, June 04, 2015 6:24 PM Reply | Quote 0 Sign in to vote On 6/4/2015 1:38 PM, ais'm wrote: *below is my coding, please help me *#include The header didn't exi