okay, I got a few line of code
#include "stdafx.h"
#include "iostream"
#include "conio.h"
#include "string"
#include "windows.h"
environment is visualstudio 8 and I am learning OOP..
what I know so far is (From my previous background of learning so far)
- using
#include<iostream>
will search a fileiostream.h
in standard include library - using
#include"myHeader.h"
will search a filemyHeader.h
in the directory where executing file is present, if not found, it will then go to search in standard include library
based on this, I am much confused, my questions are
- WHY qoutes are used with each header? I believe qoutes belong to header on local directory where executing code is present..while these files are in standard lib include folder?
- WHERE should I use qoutes or and where not?
- I can see .h extension with a few files, and Don't see it with others...Why so??
thanks for bearing these foolish questions..but confused..:( and even reading different sources makes me more confused,
Edit
Based on first answer,
Please guide me the correct and OPTIMAL way to include header files in my case (sequence, Qoutes and placing .h )
P.S Dont know why, but these files includes correctly, and does not give in error in compiler (visual studio 8)