• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
donneyming
博客园    首页    新随笔    联系   管理    订阅  订阅
2010年4月15日
再议指针
摘要: int *p= 12;//错误char* p ="hello";// 可以 不过这样不好 没法修改等同于const char*p ="hello";int *p[] = int *(p[]); 数组,元素是指针int(*p)[] 指向 数组的指针int *p();函数,返回值为int*int*(*p)();函数指针,返回值 int* 阅读全文
posted @ 2010-04-15 20:43 donneyming 阅读(117) 评论(0) 推荐(0)
scanf、gets、puts的使用
摘要: scanf函数,与printf函数一样,都被定义在stdio.h里,因此在使用scanf函数时要加上#include<stdio.h>。它是格式输入函数,即按用户指定的格式从键盘上把数据输入到指定的变量之中,其关键字最末一个字母f即为“格式”(format)之意。scanf(格式控制,地址表列)  int scanf(char *format[,argument... 阅读全文
posted @ 2010-04-15 13:46 donneyming 阅读(392) 评论(0) 推荐(0)
c和指针的第一个程序 哈哈
摘要: #include "iostream"using namespace std;#define MAX 10#define LEN 50char strraw[MAX*2+1];int a[MAX][2];char str[MAX][LEN];int count = 0;int strcount = 0;int getsplitarr(FILE* fs);int getstrarr(FILE* fs... 阅读全文
posted @ 2010-04-15 11:29 donneyming 阅读(261) 评论(0) 推荐(0)
博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3