The following code ....
#include <iostream>
#include <string>
#include <algorithm>
#include <stdlib.h>
#include <stdio.h>
#define DEBUG 0
using namespace std;
extern int nw(
string, string,
string&, string&,
bool
);
extern int nw_align(
int **, char **,
string, string,
string&, string&,
int
);
extern void dpm_init ( int **, char **, int, int, int );
extern void print_al ( string&, string& );
extern void print_matrix ( int ** const, string, string );
extern void print_traceback ( char ** const, string, string );
extern int max ( int, int, int, char * );
does not compile, reporting the following errors:
1:unable to open include file IOSTREAM
2:----------------------------STRING
3:-----------------------------ALGORITHM
9: deceleration syntax error
13:multiple decleration for 'string'
14:---------------------------------
14: , expected
20: ) expected
26:string cannot start a parameter decleration
26: ) expected
27: ) expected
28: ) expected
29: wrong no of arguments in call of macro 'max'
29: storage class 'extern' is not allowed here
Any idea about what's gone wrong ?
as i executed dis program in visual studio v10 im gettin some errors like;
'alignment.exe': Loaded 'C:\Users\Punith Chandra\Documents\Visual Studio 2010\Projects\alignment\Debug\alignment.exe', Symbols loaded.
'alignment.exe': Loaded 'C:\Windows\SysWOW64\ntdll.dll', Cannot find or open the PDB file
'alignment.exe': Loaded 'C:\Windows\SysWOW64\kernel32.dll', Cannot find or open the PDB file
'alignment.exe': Loaded 'C:\Windows\SysWOW64\KernelBase.dll', Cannot find or open the PDB file
'alignment.exe': Loaded 'C:\Windows\SysWOW64\msvcr100d.dll', Symbols loaded.
The program '[4432] alignment.exe: Native' has exited with code 0 (0x0).
Any idea about what's gone wrong ?