This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| I am creating a class vector3d which will be used for vector operation . I have overloaded all the basic functions for the required for vector operation . | |
| There is no need for extra class , so no inheritance was necessary . | |
| */ | |
| #include<iostream> | |
| #include<math.h> | |
| #include<assert.h> | |
| using namespace std; | |
| typedef float f; | |
| class vector3d |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include<iostream> | |
| #include<string> | |
| using namespace std; | |
| unsigned int FindFunctionDefn(const char* strFunctionName,const char* strSourceCode) | |
| { | |
| string s1=strFunctionName; | |
| string s2=strSourceCode; | |
| //cout<<"s1 is "<<s1<<endl; | |
| //cout<<"s2 is "<<s2<<endl; | |
| int fn=s2.find(s1); |