大家好!初来扎道望多多关照! 有一麻烦想让大家帮忙!那位大哥大姐救救小弟!我最近跳个程序就是不能运行!不知道怎么办了!程序是这个样的! #include<iostream> #include<string> void new_line(); int main() { using namespace std; string first_name,last_name,record_name; string motto = "your record are our record"; cin >> first_name>>last_name; new_line(); record_name = last_name + " ." + first_name; cout<<"your name in our record is :"; cout<<record_name <<endl; cout<<"our motto is \n" <<motto<<endl; cout<<"please suggest a better motto on newline\n"; getline (cin,motto); cout <<"our newline will be \n"; cout<<motto<<endl; return 0; } void newline() { using namespace std; char next_char; do { cin.get(next_char); }while(next_char != '\n'); } 但是调的时候是出现这个错误不能搞定! Linking... 1.obj : error LNK2001: unresolved external symbol "void __cdecl new_line(void)" (?new_line@@YAXXZ) Debug/1.exe : fatal error LNK1120: 1 unresolved externals Error executing link.exe.
1.exe - 2 error(s), 0 warning(s) 请大家帮忙!!小弟这里先谢谢了!!