As i'm c++ beginner the following Function Declaration and Definition couldnt understandable? so explain me what kind of Declaration this is......?
especially X& refers what?
Here instead of datatype X& is used. why?
Declaration :
private:
int len;
char *ptr;
public:
X& Set(char *);
Definition
X& X::Set(char...
User Profile
Collapse
-
function Declaration&Definition
-
pass by reference
how to pass char* value by creating new?
here function definition is
ConvertNumberTo String(double source, char *targetString)
{
}
wil u pleas tell me how to pass (char* targetstring) value in main() bymeans of creating memory by 'new' method?
Also explain Different types pass reference methods in c++? -
Trim function
here i kno trim function wil remove first and last whitespaces if occured. but i don the program for that.string wil u pleas explain this program step by step?
particularly why they take the concept of takin condition >' ' in conditional statement.
program: i didnt send main,class definition simply function definition
[code=cpp]
string StringUtil::Tri m(string givenString)
{
int count = givenString.len gth();... -
C++ Stl
1.(*((this->insert(make_pa ir(x,T()))).fir st)).second
2..while ( mymap.value_com p()(*it++, highest) )
pleas explain these function declaration step by step.i coulnt get. -
yes i failed to put <>. i'm beginner to c++. i'm always confusing with different type of function declarations. explain the
pair<map<char,i nt>::iterator,b ool> ret; declaration. here what happens?... -
C++ Stl
Difference between map(char,int) and pair(const char,int)?
pleas differentiate the function operations?
No activity results to display
Show More
Leave a comment: