签到

05月05日
尚未签到

共有回帖数 0

    幸福没有捷径

    等级:
    绝对原创,如有雷同,纯属巧合。
    一个简单的小程序。先上图。

    代码如下:
    #include iostream
    #include cstdlib

    using namespace std;

    const int MaxSize = 100;

    int main(void){
    char cmd[MaxSize];
    cout  "Android Shell v1.0"  endl;
    cout  "------------------------------"  endl;
    cout  "提示:你既可以直接输入shell命令,也可以先输入"sh"间接进入shell"  endl;
    cout  "输入exit退出"  endl;
    cout  "" ;
    while (cin.getline(cmd,MaxSize)){
    if (strcmp(cmd,"exit")==0) break;
    system(cmd);
    cout  "" ;
    }

    return 0;
    }
    Shell命令都可以运行:


    小白一枚,欢迎对代码提意见;
    打包好的apk文件:http://pan.baidu.com/share/link?shareid=3884563166&uk=68366457

    楼主 2016-06-25 12:27 回复

共有回帖数 0
  • 回 帖
  • 表情 图片 视频
  • 发表

登录直线网账号

Copyright © 2010~2015 直线网 版权所有,All Rights Reserved.沪ICP备10039589号 意见反馈 | 关于直线 | 版权声明 | 会员须知