pdf?
Hmm, i get a compile error when i use cin.get()
Code:
// Exercise One
#include <iostream>
int main()
{
std::cout <<"This (\") is a quote, and (\\) is a backslash" << std::endl;
cin.get()
return 0;
}
Error is
Code:
------ Build started: Project: Exercise 1, Configuration: Debug Win32 ------
Compiling...
Exercise 1.cpp
.\Exercise 1.cpp(7) : error C2065: 'cin' : undeclared identifier
.\Exercise 1.cpp(7) : error C2228: left of '.get' must have class/struct/union
type is ''unknown-type''
.\Exercise 1.cpp(8) : error C2143: syntax error : missing ';' before 'return'
Build log was saved at "file://c:\Documents and Settings\Reece.YOUR-E0367A1424\My Documents\Visual Studio 2005\Projects\Exercise 1\Exercise 1\Debug\BuildLog.htm"
Exercise 1 - 3 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
How come?