码迷,mamicode.com
首页 >  
搜索关键字:打印字符    ( 413个结果
c1(基础篇)
int a= 10 ; printf("a = %d\n", a); char number = 'H'; printf("number = %c\n", number); //打印字符对应的 ASCII值(十进制) printf("number = %d\n", number); sh...
分类:其他好文   时间:2015-01-13 23:13:38    阅读次数:215
字符函数
ispunct 原型:extern int ispunct(int c); 用法:#include 功能:判断字符c是否为标点符号 说明:当c为标点符号时,返回非零值,否则返回零。 标点符号指那些既不是字母数字,也不是空格的可打印字符。 举例: // ispunct.c #include ...
分类:其他好文   时间:2015-01-13 10:21:33    阅读次数:159
C++ 打印字符串的地址
1、如下代码char c[5] = {'h', 'a', '\0'};char *p = c;cout (c) (p) << endl;
分类:编程语言   时间:2015-01-05 12:38:52    阅读次数:171
C二级指针内存模型二
#include<stdio.h> #include<stdlib.h> #include<string.h> /* 二级指针的第二种内存模型 */ //打印字符串数组 intprintArray(chararrayStr[10][30],intnum) { inti=0; for(i=0;i<num;i++) { printf("%s\n",arrayStr[i]); } return0; } //排序 intsortAr..
分类:其他好文   时间:2015-01-03 21:11:26    阅读次数:159
C二级指针内存模型一
#include<stdio.h> #include<stdlib.h> #include<string.h> /* 二级指针的第一种内存模型 */ //打印字符串数组 intprintArray(char**arrayStr,intnum) { inti=0; for(i=0;i<num;i++) { printf("%s\n",arrayStr[i]); } return0; } //排序 intsortArrayStr..
分类:其他好文   时间:2015-01-03 21:09:47    阅读次数:142
C二级指针内存模型三
#include<stdio.h> #include<stdlib.h> #include<string.h> /* 二级指针的第三种内存模型 */ //打印字符串数组 intprintArray(char**arrayStr,intnum) { inti=0; for(i=0;i<num;i++) { printf("%s\n",arrayStr[i]); } return0; } //排序 intsortArrayStr..
分类:其他好文   时间:2015-01-03 21:08:41    阅读次数:137
linux正则表达式与文件格式化处理指令
1.特殊符号:1)[:alnum:]:字母和数字2)[:alpha:]:字母3)[:blank:]:空格和tab键4)[:cntrl:]:控制键CR,LF,Tab,Del等5)[:digit:]:数字6)[:graph:]:除了空格符(空格和tab)外的其他按键7)[:lower:]:小写字母8)[:print:]:可打印字符9)[:punct:]:标点符号10)[:..
分类:系统相关   时间:2014-12-28 02:00:01    阅读次数:221
Shell脚本
【脚本】1、使用多个Shell命令#cd;ls-a命令过长时使用反斜线字符(\)在命令行上扩充示例:#echo“hello\>world”2、编辑Shell脚本新建文件,并以.sh为扩展名,编辑脚本。显示消息:使用echo打印字符串时可以不需要加引号,但是如果字符串中有引号,那就需要另外的引号括起..
分类:系统相关   时间:2014-12-26 18:53:27    阅读次数:170
Redis管理
redis管理 连接 命令 描述 AUTH password 验证密码是否正确 ECHO message 打印字符串 PING 查看服务是否运行 QUIT 关闭当前连接 SELECT index 切换到指定的数据库 服务器 服务器相关命令 命令 描述...
分类:其他好文   时间:2014-12-23 10:35:57    阅读次数:176
利用 ljust rjust center函数打印整齐的字符串
Python中打印字符串时可以调用ljust(左对齐),rjust(右对齐),center(中间对齐)来输出整齐美观的字符串,使用起来非常简单,包括使用第二个参数填充(默认为空格)。看下面的例子就会明白了:print‘|‘,‘*‘.ljust(10),‘|‘ print‘|‘,‘*‘.ljust(10,‘-‘),‘|‘ print‘|‘,‘*‘...
分类:其他好文   时间:2014-12-21 18:09:33    阅读次数:203
413条   上一页 1 ... 36 37 38 39 40 ... 42 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!