oc_study02

来源:互联网 发布:python subprocess 编辑:程序博客网 时间:2024/04/30 13:20

学习.m .c 多文件调用



main.m

#import "hhaa.m"#import "hhaaa.c"int main(){    helo();    holy();    return 0;}


hhaa.m

#import <Foundation/Foundation.h>int helo(){    NSLog(@"调用helo, this is oc");    return 0;}


hhaaa.c

#include "hhaaa.h"int holy(void){    printf("调用holy, this is c\n");    return 0;}

hhaaa.h

#include <stdio.h>



0 0
原创粉丝点击