Jak poprawnie użyć cin oraz cout?

0
#include "stdafx.h"
#include <iostream>

int _tmain(int argc, _TCHAR* argv[])
{

	cout << "test" << endl;

	return 0;
}
//*********************
1>.\12.cpp(10) : error C2065: 'cout' : undeclared identifier
1>.\12.cpp(10) : error C2065: 'endl' : undeclared identifier
1>Build log was saved at "file://c:\Users\hp\Documents\Visual Studio 2005\Projects\12\12\Release\BuildLog.htm"
1>12 - 2 error(s), 0 warning(s)
2

Powinno być std::count i std::endl. Poczytaj o namespace. Nie będę komentować natomiast tego w czym to piszesz.

0
Dregorio napisał(a):

Powinno być std::count i std::endl. Poczytaj o namespace. Nie będę komentować natomiast tego w czym to piszesz.

dziękuje poradziłem sobie

1 użytkowników online, w tym zalogowanych: 0, gości: 1