摘要:#include <iostream>#include <stdio.h>#include <stdlib.h>using namespace std;char *GetMemory(char *&p, int num){p = (char *)malloc(sizeof(char)*num);//p = new char[num];return p;}int main(void){char *str ;GetMemory(str, 100);strcpy(str, "hello");cout << str <&
阅读全文
posted @ 2012-07-28 23:44
浙公网安备 33010602011771号