首页 > 编程语言
Java学习----字符串函数
1.Stringstring类是最终类,不可以有子类package com.demo.pkg1;public class TestString { public static void main(String[] agrs) { // 构造字符串 String na...
分类:编程语言   时间:2016-01-13 01:58:00    收藏:0  评论:0  赞:0  阅读:108
【C++】复数类的实现
复数类的实现:这个是以前学习的补全,记录一下吧。复数类本身概念是具备一个实部_real和虚部_p_w_picpath,然后实现复数的加减乘除,自加自减还有等于符号的重载。算是一个基本的联系吧。废话不多说,看看代码,很简单。Complex_class.h#include<iostream> #include<..
分类:编程语言   时间:2016-01-13 00:48:50    收藏:0  评论:0  赞:0  阅读:292
python---购物
#!/usr/bin/envpython//程序开始 #Date:2016-01-12 importsys wide=51 title=‘shoplist‘ none=(wide-len(title)-2)//2 Goods=[‘Iphone‘,‘Quecao‘,‘LV‘,‘Trival‘,‘watch‘] Prices=[5000,99,999,19999,3000] print‘*‘*wide print‘*‘*none+‘‘+title+‘‘+‘*‘*none printGoods prin..
分类:编程语言   时间:2016-01-13 00:48:03    收藏:0  评论:0  赞:0  阅读:144
C语言【单链表】:从尾到打头印单链表
#define_CRT_SECURE_NO_WARNINGS1 #include<stdio.h> #include<assert.h> #include<stdlib.h> typedefintDataType; typedefstructSListNode { DataTypedata; structSListNode*next; }SListNode; SListNode*BuyNode(DataTypex) { SListNode*next=(SListNode..
分类:编程语言   时间:2016-01-13 00:47:00    收藏:0  评论:0  赞:0  阅读:150
C语言:【单链表】删除一个无头单链表的非尾节点
#include<stdio.h> #include<assert.h> #include<stdlib.h> typedefintDataType; typedefstructSListNode { DataTypedata; structSListNode*next; }SListNode; SListNode*BuyNode(DataTypex) { SListNode*next=(SListNode*)malloc(sizeof(SListNode)); ne..
分类:编程语言   时间:2016-01-13 00:46:51    收藏:0  评论:0  赞:0  阅读:222
C语言:【单链表】在无头单链表的一个非头节点前插入一个节点
#include<stdio.h> #include<assert.h> #include<stdlib.h> typedefintDataType; typedefstructSListNode { DataTypedata; structSListNode*next; }SListNode; SListNode*BuyNode(DataTypex) { SListNode*next=(SListNode*)malloc(sizeof(SListNode)); ne..
分类:编程语言   时间:2016-01-13 00:46:41    收藏:0  评论:0  赞:0  阅读:137
C语言:【单链表】逆置反转单链表
#include<stdio.h> #include<assert.h> #include<stdlib.h> typedefintDataType; typedefstructSListNode { DataTypedata; structSListNode*next; }SListNode; SListNode*BuyNode(DataTypex) { SListNode*next=(SListNode*)malloc(sizeof(SListNode)); ne..
分类:编程语言   时间:2016-01-13 00:46:38    收藏:0  评论:0  赞:0  阅读:200
C语言:【单链表】查找单链表的中间节点,要求只能遍历一次
#include<stdio.h> #include<assert.h> #include<stdlib.h> typedefintDataType; typedefstructSListNode { DataTypedata; structSListNode*next; }SListNode; SListNode*BuyNode(DataTypex) { SListNode*next=(SListNode*)malloc(sizeof(SListNode)); ne..
分类:编程语言   时间:2016-01-13 00:46:20    收藏:0  评论:0  赞:0  阅读:195
C++11中的小细节--字符串的原始字面量
原始字面量很容易理解,即不进行转义的完整字符串。最近看了看Python,其中讲到了原始字符串。Both string and bytes literals may optionally be prefixed with a letter ‘r’ or ‘R’; such strings are called raw strings and treat backslashes as literal c...
分类:编程语言   时间:2016-01-13 00:43:40    收藏:0  评论:0  赞:0  阅读:296
python基础教程第二章
1、序列基础序列:python包含6种内建的序列,常用的有:列表、元组、字符串。列表可以修改,元组和字符串不能修改。索引:从0开始递增,通过索引获取元素;可使用负数索引,从右至左。最后1个元素的位置编号为-1;s = 'hello'print(s[-1])print(s[5]) // error:不...
分类:编程语言   时间:2016-01-13 00:40:40    收藏:0  评论:0  赞:0  阅读:255
Javascript ----字符串(String)中的方法
涉及字符串时,常用到的几个方法...----------------------------------------------------------------------------------------------------1. charAt() 方法可返回指定位置的字符。var st....
分类:编程语言   时间:2016-01-13 00:38:50    收藏:0  评论:0  赞:0  阅读:156
信息管理系统(java)
目录 摘要:.... 2 绪论.... 2 课程目的.... 2 课程研究的意义... 2 一、java课程设计目的和要求... 3 1.1课程设计目的... 3 1.2课程设计要求... 3 1.3系统功能图... 4 二、程序的设计与实现... 4 2.1登陆界面的设计与实现... 4 2.2密...
分类:编程语言   时间:2016-01-13 00:37:20    收藏:0  评论:0  赞:0  阅读:172
C 语言 :判断数字奇偶性的方法(1.if 函数 2.三目运算符 3.异或运算符)
int main(int argc, const char * argv[]) {int num =-1; //定义并且初始化scanf("%d",&num); //键盘输入 方法1: if 函数if (num % 2 == 0) { printf("偶数\n"); }e...
分类:编程语言   时间:2016-01-13 00:36:10    收藏:0  评论:0  赞:0  阅读:681
Spring MVC 学习笔记 json格式的输入和输出
Spring mvc处理json需要使用jackson的类库,因此为支持json格式的输入输出需要先修改pom.xml增加jackson包的引用 org.codehaus.jackson jackson-core-lgpl ...
分类:编程语言   时间:2016-01-13 00:35:40    收藏:0  评论:0  赞:0  阅读:205
Python学习之字符串函数
下面是在看python核心编程中序列字符串中提到的一些函数,根据自己的学习理解总结了下,方便日后用到的时候查看。 1、string.capitalize() 把字符串的第一个字符大写 例子: a = 'name is : ' print a.capitalize() ==》Name is : 2、....
分类:编程语言   时间:2016-01-13 00:35:00    收藏:0  评论:0  赞:0  阅读:225
Java常用知识整理
一、ClassLoader 当运行一个Java 程序时,JVM启动,运行bootstrap classLoader(启动类加载器),将Java核心的API加载进来;接着调用ExtClassLoader加载扩展API,最后AppClassLoader加载CLASSPATH目录下定义的Class;这就....
分类:编程语言   时间:2016-01-13 00:33:40    收藏:0  评论:0  赞:0  阅读:193
循序渐进看Java web日志跟踪(2)-Java日志API认识
接触过Java的朋友应该都会知道,java的开源框架百花齐放,实现同样的功能,总能找到几个强大的开源框架来进行选择。在日志方面,Java同样不逊色。除了JDK本身自带的简单的日志工具,java还有如log4j,commons-loggin,slf4j,logback等众多第三方工具框架可供开发者.....
分类:编程语言   时间:2016-01-13 00:32:50    收藏:0  评论:0  赞:0  阅读:285
如何使用springmvc的@requestbody 返回json数据
先配置 XXX_ servletxml再然后Action方法里注解就可以@RequestMapping(value="/XXXXXX", method = RequestMethod.POST)@ResponseBodypublic 返回类型 XXXXXX(){}
分类:编程语言   时间:2016-01-13 00:32:40    收藏:0  评论:0  赞:0  阅读:129
python基础教程第三章
字符串1、字符串格式化:举例:在屏幕上打印九九乘法表:print("九九乘法表:")for x in range(1, 10): for y in range(1, x + 1): format1 = "%2d%s%-d%s%2d" tuple1 = (x, ' *...
分类:编程语言   时间:2016-01-13 00:30:40    收藏:0  评论:0  赞:0  阅读:371
JavaScript LoopQueue
function Queue() { var items = []; this.enqueue = function(element) { items.push(element) } this.dequeue = function(element) { return items.shift() .....
分类:编程语言   时间:2016-01-13 00:25:30    收藏:0  评论:0  赞:0  阅读:214
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!