Im a newbie and want to learn writing c/c++ programs..
i have a Mac OS X Yosemite 10.10.5
and just downloaded the new version of Code::Block 13.12
the simple program i write is:
1 2 3 4 5 6
|
#include <stdio.h>
main ()
{
printf (" Hello World!"\n);
return 0;
}
|
when i run the program, this will show:
/Volumes/MYBOOK/C:C++ Files/hw
-bash: /Volumes/MYBOOK/C:C++: No such file or directory
-------------
also,
/Volumes/MYBOOK/C:C_2 error: C++ requires a type specifier for all declarations
===Buil failed: 1 error(s), 0 warning(s) (0)minute(s), 1 second(s)) ===
i tried saving in .c or .cpp
but nothing works..
I don't know where the problem is.. pls. help...