I'm a c++ beginner & I'm using VC++ enetrprise edition v5.0
I'm trying to run a pgm & it is giving me an access violation error. the message is as follows
oaded 'C:\WINDOWS\SYSTEM\KERNEL32.DLL', no matching symbolic information found.
First-chance exception in Port.exe: 0xC0000005: Access Violation.
The thread 0xFFE36615 has exited with code -1 (0xFFFFFFFF).
The program 'C:\Program Files\DevStudio\MyProjects\Port\Debug\Port.exe' has exited with code -1 (0xFFFFFFFF).
I've no clue where to look for the error.
& heres the code
Port::Port(const char * br ,
const char * st,
style = new char;
bottles = b;
cout<<" the style is :"<<style<<"\n";
cout<<" the num of bottles is : "<<b<<"\n";
& style is declared char * style;
I'm guessing the problem is with the strcpy part
should be an easy 50pts
THANXS IN ADVANCE