Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
memcpy
//Title of this code //g++ 4.8.2 #include <iostream> #include <stdio.h> #include <string.h> void strcat(char *s, char *t) {char *p=t;int i=10; while(*s!='\0')s++; printf("%d",s-p); i=s; while((s[i++] = p[i++])!='\0' );//{*s = *p;s++;} //for(int i=0;i<strlen(s);i++) printf("%c \n",*s); } //printf("%d \n",s); int main() { //int *ip,a=3,b[10]={1,2,3,4,5,6}; char c[] ="mamaare mere";//new char[20]; c[0]='b'; memcpy(c,"sirdecara", 20); /*char *s= new char[20]; memcpy(s,"lbirdecaph", 20); // c1 // cout<< strcmp(c,c1); //printf("%d \n",strcmp(c,c1)); strcat(c,s); for(int i=0;i<strlen(c);i++) printf("%c \n",c[i]);*/ }
run
|
edit
|
history
|
help
0
ThreeVariableRegression
minmax
Dar
HashO
protected
Lekhana.R 123454766
Fungsi dan for
C++ virtual dispose
basic observation leads to dp OPTIMIZATION from O(n^3) to O(n^2) !!! (sopj : AMBLE)
Ploshtina na krug