#include<iostream> #include<string> #include<vector> #include<iomanip> #include<stdlib.h> #include <stdio.h> #include <stddef.h> #include <iterator> #include <algorithm> using namespace std; int strlen(char* a) { if(0 == *a) return 0; else return (1+strlen(a+1)); } int main() { char *s = "abcdefg"; cout << strlen(s) << endl; cout << (s+1) << endl; }