How to use iostream.h on C on Xcode?
First of all I must say I'm a NOOB both in programming C as in Xcode.
I started college this month and all the basic programming lessons are in C and using iostream.h file. And averybody uses PC/Windows there.
I already had Xcode installed and after searching for a while I've downloaded and installed Command Line Tools. After the installation I've found IOStream.h file on /System/Library/Frameworks/Kernel.framework/Versions/A/Headers/IOKit/stream
I've tried to include the file on my C file but it didnt work. It says some files are missing: /System/Library/Frameworks/Kernel.framework/Versions/A/Headers/IOKit/stream/IOS tream.h:9:10: 'IOKit/IOService.h' file not found
If i try to correct the file path it says I dont have permission. And if i change the permission it complains about other files included in other files.
When I create a project it already opens a main.c file including a stdio.h file (that i dont know where in my computer it is) but when i run the build has no errors:
#include <stdio.h>
When i try to include iostream it sugests me IOKit, which has no iostream file. The closest i found was a
IOKit/stream/IOStreamLib.h. Seems those files sugested by Xcode are in another directory: /System/Library/Frameworks/IOKit.framework/Versions/A/Headers/stream
If i try to include only "iostream.h" or "iostream" it doesn't work neither.
What should I do to use commands as cin and cout on my C code?