/*i am an absolute c++ beginner and am having problems compiling even this very simple code. am using the bloodshed dev-c++
v.4.9.8.0. */
#include <iostream>
#include <string>
using namespace std;
string name = "";
int main(void)
{
cout<< "what is your name?";
cin>>name;
cout<<endl<< "hello " << name.c_str() ;
return 0;
}
// the compiler errors are:
29 C:\Dev-Cpp\Makefile.win
[Build Error] [Warning] overriding commands for target `"cin'
26 C:\Dev-Cpp\Makefile.win
[Build Error] [Warning] ignoring old commands for target `"cin'
make.exe C:\Dev-Cpp\make.exe
Circular "cin <- "cin dependency dropped.
// something is obviously wrong, but what? Thanks