Jump to content

C programming Libary error

Hi all when compiling my program in Visual Studio I get this error C1083 Can include file stdio.h No such directory or file
 
my code is attached bellow
 
The only idea I have why this is caused is that Visual Studio is looking in the wrong place as I
moused over it and it said Debug
 
Does that mean that is looking in the Debug folder for some reason>?

 

Update this is Now happening on known working programs
 
 
any way .............................
 
All help is greatly appreciated

#include < stdio.h>#include <stdlib.h>#include <conio.h>void StudentID(int studentNumber);int GetstudentID ();		// StudentID  //int studentID(int Min, int Max);int main (void){      // Student number //    int GetstudentID();    int studentID=0;    {		int Number = 0, Min = 1, Max = 100;        int studentID;        printf("Plase enter a studentID <101-999>" );        scanf("%d", &studentID);        return studentID;		printf("\n Validated studentID (%d-%d) : %d", Min, Max, Number);        fflush(stdin);        return (studentID);		printf("Press any key to continue");		scanf("%d");     }}{	int Number = 0, Min = 1, Max = 100;	printf("Enter a vaild grade %d and %d: ", Min, Max);	Number = studentID(Min, Max);	printf("\nValidated Grade (%d-%d) : %d", Min, Max, Number);	getchar(); }int studentID();{int studentID(int Min, int Max)	const int True= 1; // Constant True defined as 1 */	const int False= 0;			int ItemRead = False;	float Input = 0; // Input read as float //	int Valid = False; // Must be initialised to flase //	do 	{		// Read NB scanf() returns the iteams of successfully read //		ItemRead = scanf("%f", &Input);		fflush(stdin);		// Validate None numeruc (In which case scanf doesnt read in anything //		if(ItemRead == False)		{			printf("Invalid - must be a number Please try again (%d-%d): ", Min, Max);		}		// Validate not a whole number //		else if(Input != (int)Input) // INput truncates float value to no decimal points //		{			printf("Invalid - must be a integer Please try again (%d-%d) : ", Min, Max);		}		// Validated - Invalied value? (ie Not in range Max-Min) //		else if((Input < Min) || (Input > Max))		{			printf("Invalid - out of range Plase try again (%d-%d) : ", Min, Max);		}		else		{			Valid = True;		}	} while(Valid == False);	return((int)Input); // Cast store as int before running //}void int (){int Day=0;	Grade=GetDisplay();	DisplayGradename(Day);	printf("\n\n\n");	system("pause");}void DisplayGradename(int Day){	switch(Grade)	{	case 70%> :		printf("A");		break;	case 60%> :		printf("B");			break;	case 50%> :		printf("C");		break;	case 40% :		printf("D");		break;	case 50%<:			printf("F");			break;		default: // default is opitional  (User validation of user input) //		printf("InvalidGrade");		break;	}}int GetGradename(){	int Day =0;	printf("Enter Grade : ");	scanf("%d", &Grade);	fflush(stdin);	return(Grade);}

IntelCorei54670k,Maximus VI Formula,Swift tech H220, 16gigs Corsair Dominator platinums, Asus DCUII GTX 780,1x256 840 evo, 1x 2TB Segate barracuda, Corsair AX 860, 

3 X Noctua NF-F12, 2x Noctua NF A-14, Ducky Shine 3 Blue Leds Blue switches, Razer Death Adder 2012, Corsair vengence 1400  

Link to comment
Share on other sites

Link to post
Share on other sites

You forgot your code...

Woops Sorry don't know how I forgot that

IntelCorei54670k,Maximus VI Formula,Swift tech H220, 16gigs Corsair Dominator platinums, Asus DCUII GTX 780,1x256 840 evo, 1x 2TB Segate barracuda, Corsair AX 860, 

3 X Noctua NF-F12, 2x Noctua NF A-14, Ducky Shine 3 Blue Leds Blue switches, Razer Death Adder 2012, Corsair vengence 1400  

Link to comment
Share on other sites

Link to post
Share on other sites

Don't have a compiler handy, but you have an extra space in the

#include < stdio.h>   (should be #include <stdio.h>

That might be causing the problem

 

*edit, also there are various errors in the code...like missing { and or missing function names...I am not sure if it is caused by copy and paste though

0b10111010 10101101 11110000 00001101

Link to comment
Share on other sites

Link to post
Share on other sites

Don't have a compiler handy, but you have an extra space in the

#include < stdio.h>   (should be #include <stdio.h>

That might be causing the problem

Nope sadly just tried it all though my install of visual stdio may be broken

IntelCorei54670k,Maximus VI Formula,Swift tech H220, 16gigs Corsair Dominator platinums, Asus DCUII GTX 780,1x256 840 evo, 1x 2TB Segate barracuda, Corsair AX 860, 

3 X Noctua NF-F12, 2x Noctua NF A-14, Ducky Shine 3 Blue Leds Blue switches, Razer Death Adder 2012, Corsair vengence 1400  

Link to comment
Share on other sites

Link to post
Share on other sites

Try an alternate option? Dev-C++ for instance. 

Tried compiling with GCC after fixing the space issue, but it doesn't work because of conio.h - maybe that's just a Linux thing. You may need to use an alternate implementation of it (curses.h apparently has most of the functionality). 

 

e: Just checked, Windows shouldn't have the above issue with missing conio.h

Interested in Linux, SteamOS and Open-source applications? Go here

Gaming Rig - CPU: i5 3570k @ Stock | GPU: EVGA Geforce 560Ti 448 Core Classified Ultra | RAM: Mushkin Enhanced Blackline 8GB DDR3 1600 | SSD: Crucial M4 128GB | HDD: 3TB Seagate Barracuda, 1TB WD Caviar Black, 1TB Seagate Barracuda | Case: Antec Lanboy Air | KB: Corsair Vengeance K70 Cherry MX Blue | Mouse: Corsair Vengeance M95 | Headset: Steelseries Siberia V2

 

 

Link to comment
Share on other sites

Link to post
Share on other sites

Try finding your header file location, and open the header file. Maybe something in there is messed up.

[ Cruel Angel ]:     Exterior  -   BENQ XL2420T   |   SteelSeries MLG Sensei   |   Corsair K70 RED   |   Corsair 900D  |                                                                                                    CPU:    -   4.7Ghz @ 1.425v             |

                             Interior    -   i7 4770k   |    Maximus VI Formula    |   Corsair Vengeance Pro 16GB    |   ASUS GTX 980 Strix SLIx2  |  840 Pro 512Gb    |    WD Black 2TB  |           RAM:   -   2400Mhz OC @ 1.650v    |

                             Cooling   -   XSPC 120mm x7 Total Radiator Space   |   XSPC RayStorm    |    PrimoChill Tubing/Res  |                                                                                             GPU:   -   1000Mhz @ 1.158            |

Link to comment
Share on other sites

Link to post
Share on other sites

Try finding your header file location, and open the header file. Maybe something in there is messed up.

Any thing In particulier that I should be look for >?

IntelCorei54670k,Maximus VI Formula,Swift tech H220, 16gigs Corsair Dominator platinums, Asus DCUII GTX 780,1x256 840 evo, 1x 2TB Segate barracuda, Corsair AX 860, 

3 X Noctua NF-F12, 2x Noctua NF A-14, Ducky Shine 3 Blue Leds Blue switches, Razer Death Adder 2012, Corsair vengence 1400  

Link to comment
Share on other sites

Link to post
Share on other sites

Try: Right-click your project in Solution Explorer, Properties, Configuration Properties, C/C++, Precompiled Headers, Create/Use Precompiled Header = "Not using...".

Found Here

Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×