I'm new to this so forgive me if this is too simple a question, but for my assignment we were to change a program from just a simple exercise with a base and derived class to begin using virtual functions, etc.<br><br>In the first program I used:<br>Highway::Highway(char *n, double dist):Length(dist) {<br> setName;<br> carCount = 0;<br> width = 0; }<br><br>void Highway::setName( char *n) { strncpy(name, n, strlen); }<br><br>to set my private data of "Name" to the value sent to it.<br><br>However, when I made the necessary changes to add polymorphism to this program, I began getting access violations whenever I tried to copy strings. I traced through the code and it seems to be occurring during the copy portion and gives me the access violation message. I made the strncpy a friend in the class, but it did not seem to make any difference. Any help provided would be greatly appreciated.<br><br>