• 首页
  • 技术
    • C/C++
    • Linux
    • Android
    • Web
  • 随笔
  • 关于
  • 留言
C/C++

GDB基本用法

基本命令 进入GDB:#gdb test   test是要调试的程序,由gcc test.c -g -o test生成。进入后提示符变为(gdb) 。 查看源码:(gdb) l   源码会进行行号提示。   如果需要查看…

2022年3月30日 0条评论 646次阅读 0人点赞 阅读全文
C/C++

linux下怎样用c语言调用shell命令

C程序调用shell脚本共同拥有三种法子 :system()、popen()、exec系列数call_exec1.c ,system() 不用你自己去产生进程。它已经封装了,直接增加自己的命令exec 须要你自…

2022年2月24日 0条评论 577次阅读 0人点赞 阅读全文
C/C++

linuxC指定格式输出时间

时间戳转字符串 #include <time.h> size_t strftime(char *s, size_t max, const char *format, const struct tm *tm);…

2021年9月25日 0条评论 944次阅读 0人点赞 阅读全文
C/C++

getchar,gets,fgets,scanf的用法与区别

首先,四个函数都可以从标准输入(键盘)读取字符串,并存储到指定内存空间(变量)中。 1、int getchar(void) 功能:返回从标准输入的下一个字符。 参数:无。 返回值:字符作为一个int型值被返回。 getc…

2018年7月12日 5条评论 4,746次阅读 4人点赞 阅读全文
  • «
  • <
  • 1
  • 2

搜索

分类

  • Android (4)
  • C/C++ (9)
  • Linux (28)
  • Web (4)
  • 生活随笔 (10)
  • 科技新鲜事 (2)
linux docker java git c 优化 wordpress checkout stack LANG cert root JNA kafka mysql route netstat html5 输入 缓存 时间 date android 组件 activity intent 中文 canvas ping ifconfig 技巧

Copyright 2025 博雅笔记. All Rights Reserved.
冀ICP备18025420号