Показать сообщение отдельно

  #2154  
Старый 10.01.2009, 09:52
iffan
Новичок
Регистрация: 07.01.2009
Сообщений: 10
Провел на форуме:
22534

Репутация: 7
По умолчанию

привет. пример из книги ввожу:

//Использование прототипов функции
int
#include <iostream>
using namespace std;
int Area(int length, int width); //прототип функции

int main()
{
int lengthofYard;
int widthofYard;
int areaofYard;

cout << "\nHow wide is your yard?: ";
cin >> widthofYard;
cout << "\nHow long is your yard?: ";
cin >> lengthofYard;

areaofYard = Area(lengthofYard, widthofYard);

cout << "\nYour yard is: ";
cout << areaofYard;
cout << \n square feet \n \n";
return 0;
}
int Area(int yardlength, int yardwidth)
{
return yardlength * yardwidth;
}

ввожу это и в VStudio 2008 Pro и в Сode:Blocks 8.0, всеравно ругаетца, в VS 2008 Pro вот так:1>Embedding manifest...

1>.\Debug\op.exe.intermediate.manifest : general error c1010070: Failed to load and parse the manifest. 5 C405BAO =09B8 C:070==K9 D09;.

1>Build log was saved at "file://c:\Documents and Settings\Ivn\Мои документы\Visual Studio 2005\Projects\op\op\Debug\BuildLog.htm"

1>op - 1 error(s), 0 warning(s)
а в Code:Blocks еще хлеще.
мне как новичку первое что пришло в голову добавить к iostream вот это .h и убрать namespace, таже хрень всеравно
 
Ответить с цитированием