parina's blog

By parina, 16 years ago, In English

[code]

string line;

cin>>line;

char* er = (char*)malloc( sizeof( char ) *(line.length() +1) );

strcpy( er, line.c_str() );

[/code]



  • Vote: I like it
  • +2
  • Vote: I do not like it

16 years ago, hide # |
 
Vote: I like it 0 Vote: I do not like it
You should better to post your code on one of the services like codepad.org and have just one post, containing useful methods, e.g.:

16 years ago, hide # |
 
Vote: I like it 0 Vote: I do not like it
I didn't get it. I think this is my blog,So I am pasting codes which are useful to me.Am i wrong?
  • 16 years ago, hide # ^ |
     
    Vote: I like it 0 Vote: I do not like it
    Yes, you can, but it would better if you do like in previous post, for not to flooding into the stream (Recent actions).
16 years ago, hide # |
 
Vote: I like it 0 Vote: I do not like it
okay....