嬉皮士
码龄12年
关注
提问 私信
  • 博客:89,083
    89,083
    总访问量
  • 42
    原创
  • 728,486
    排名
  • 23
    粉丝
  • 0
    铁粉

个人简介:纵当困顿难行,亦当砥砺前进!

IP属地以运营商信息为准,境内显示到省(区、市),境外显示到国家(地区)
IP 属地:江苏省
  • 加入CSDN时间: 2013-05-27
博客简介:

lothome的博客

博客描述:
爱编程不爱bug,爱生活不爱黑眼圈,我是个码农,我喂自己袋盐
查看详细资料
个人成就
  • 获得20次点赞
  • 内容获得11次评论
  • 获得51次收藏
  • 代码片获得359次分享
创作历程
  • 42篇
    2016年
成就勋章
TA的专栏
  • C
    8篇
  • JAVA
    2篇
创作活动更多

如何做好一份技术文档?

无论你是技术大神还是初涉此领域的新手,都欢迎分享你的宝贵经验、独到见解与创新方法,为技术传播之路点亮明灯!

183人参与 去创作
  • 最近
  • 文章
  • 代码仓
  • 资源
  • 问答
  • 帖子
  • 视频
  • 课程
  • 关注/订阅/互动
  • 收藏
搜TA的内容
搜索 取消

JAVA中用二分法实现数组中的数据调换

public class ArrayDemo1 { public static void main(String[] args) { int[] arr = {1,2,3,4,5}; printarr(arr); sort(arr); printarr(arr); } public stat
原创
发布博客 2016.05.10 ·
388 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

关于JAVA中一些简单加密算法的思考

import java.util.Scanner;public class JiaMiDemo { public static void main(String[] args){ Scanner sc = new Scanner(System.in); System.out.println(“请输入您要加密的数据:”); int pas
原创
发布博客 2016.05.10 ·
325 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

【windows】创建hellowin的窗口

#include"windows.h"#include"stdio.h"int WINAPI WinMain(HINSTANCE hInstance,HINSTANCE hPrevInstance,PSTR szCmdLine,int iCmdShow){ static CHAR szAppName []=TEXT("HelloWin"); HWND hwnd; MSG msg; W
原创
发布博客 2016.01.18 ·
366 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

2016年上半年考试计划

全国自考网站                          040113154697 英语(二)                            2016.04.17                    马克思主义基本原理概论       2016.04.16      中国近现代史纲要           2016.04.16
原创
发布博客 2016.01.05 ·
300 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

2016年,写给自己看

2015年9月16日,伴随着火车的轰鸣声带上战友们的祝福,我退伍返到家乡,家中的一切依然是那么温馨熟悉与美好,但是我知道,我已经不是当年那个小混混了,回想起过去两年,就跟做了一场长梦一样,在这场长梦中我学会了独立,学会了观颜察色与接人待物,也学会了如何为人处事;在绿色的军营之中我体会到了一名军人内务的标准,体会到了一名军人如何做到令必行,禁必止,同时也感谢我的指导员像伯乐一样器重我,把我放在“文书
原创
发布博客 2016.01.05 ·
292 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

【C++】用指针数组构造字符串数组

#include"iostream"using namespace std;//用指针数组构造字符串数组 void List(char a[]){char *p = a;while(*p!='\0'){if(*p==' ')coutcoutp++;}}int main(){char a[]={"China boy zhang xu"};char *p ;p
原创
发布博客 2016.01.05 ·
398 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

【C++】用指针数组构造字符串数组

#include"iostream"using namespace std;//用指针数组构造字符串数组 int main(){char*Week[]={"Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"};int i;coutcin>>i;cout }
原创
发布博客 2016.01.05 ·
401 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

【C++】逆序存放数组元素值

#include"iostream"using namespace std;//逆序存放数组元素值 void invert(int a[],int n){int i,j,temp;for(i=0,j=n-1;i{temp = a[i];a[i] = a[j];a[j] = temp;}}int main(){int i,a[10]={1,2,3,4,5,6,7,8
原创
发布博客 2016.01.05 ·
3200 阅读 ·
0 点赞 ·
1 评论 ·
1 收藏

【C++】指向结构体变量的指针

#include"iostream"#define N 10using namespace std;//指向结构体变量的指针struct Student{int numb;char *name;char sex;float score;};Student stu1 = {001,"zhangxu",'G',100};int main(){Student *p;p
原创
发布博客 2016.01.05 ·
444 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

【C++】实现整数排序

#include"iostream"#define N 10using namespace std;//实现整数排序void swap(int a[],int n){int i,j,temp;for(i=0,j=i+1;jif(a[i]>a[j]){temp = a[i];a[i] = a[j];a[j] = temp;}}int main(){int a[
原创
发布博客 2016.01.05 ·
1466 阅读 ·
0 点赞 ·
0 评论 ·
1 收藏

【C++】使用指针实现数据交换

使用指针变量实现交换两个变量(a,b)的值#include"iostream"using namespace std;//使用指针变量实现交换两个变量(a,b)的值 void swap(int* a,int* b){int temp;temp = *a;*a = *b;*b = temp;}int main(){int a,b;coutcin>>a>>b;
原创
发布博客 2016.01.05 ·
1490 阅读 ·
1 点赞 ·
0 评论 ·
2 收藏

【C++】使用函数指针制作菜单管理…

#include"iostream"using namespace std;struct MENU{char* Name;void (*func)();     //func为指向函数的指针变量,该函数没有参数,不返回值 };//菜单功能函数void FileFunc();  //文件菜单 void EditFunc(); //编辑菜单  void ViewFunc()
原创
发布博客 2016.01.05 ·
1111 阅读 ·
2 点赞 ·
0 评论 ·
4 收藏

【C++】指针作为函数的返回值

#include"iostream"using namespace std;int *GetDateFromIndex(int index);int main(){int i;for(i=0;i{cout}}int *GetDateFromIndex(int index){int Date[]={99,98,97,96,95,94,93};return &Date[in
原创
发布博客 2016.01.05 ·
794 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

【C++】指针作为函数的参数

#include"iostream.h"#include"stdio.h"void showmessage(char *p){cout}void main(){//定义字符串数组char *cp = "大家好,这里是指针作为函数参数的实例。";showmessage(cp);//定义字符串数组char str[]="大家好,这里是指针作为函数参数的实例。";showme
原创
发布博客 2016.01.05 ·
353 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

【C++】结构指针遍历结构数组

#include"iostream.h"#include"stdio.h"struct people{char name[10];int age;};people pe[] = {{"zhangsan",13},{"lisi",14},{"wangwu",15}};void main(){people *p = pe;int i;for(i=0;i{cou
原创
发布博客 2016.01.05 ·
1457 阅读 ·
0 点赞 ·
0 评论 ·
1 收藏

【C++】指针和数组的常用方法

#include"iostream.h"#include"stdio.h"void main(){char str[]="大家好,见到诸位很高兴。";char *p;int i;//指针访问,指针表示for(p=str;*p;p++)coutcout//下标访问,下标表示for(i=0;str[i];i++)coutcout//下标访问,指针表示for(i=0;*
原创
发布博客 2016.01.05 ·
294 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

【C++】利用指针表达式遍历数组

#include"iostream.h"#include"stdio.h"void main(){int array[]={91,95,97,93,96,25,64};int i,*p = array;for(i=0;i{cout";p++;}}
原创
发布博客 2016.01.05 ·
1265 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

【C++】将结构作为参数传递并返回

#include"iostream.h"#include"stdio.h"#include"string.h"struct Date{int day,month,year;};Date GetDate();void PrintDate(Date dd);void main(){Date dt = GetDate();PrintDate(dt);}Date Ge
原创
发布博客 2016.01.05 ·
413 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

【C++】如何使用嵌套结构

#include"iostream.h"#include"stdio.h"#include"string.h"struct Date{int day,month,year;};struct Student{int numb;char name[16];Date birthDate;};void main(){Student stu1 = {001,"zhang
原创
发布博客 2016.01.05 ·
369 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

【C++】结构体变量的初始化

#include"iostream.h"#include"stdio.h"#include"string.h"//学生基本信息的初始化struct Student{int numb;char name[16];bool sex;char address[16];}stu1;void main(){stu1.numb=001;strcpy(stu1.name,"zha
原创
发布博客 2016.01.05 ·
535 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏
加载更多