01 2012 档案
摘要:在Linux中,为了保护内核空间,将程序的运行空间分为内核空间和用户空间,(内核态和用户态),他们运行在不同的级别上,在逻辑上是相互隔离的,因此用户进程在通常情况下不允许访问内核数据,也无法使用内核函数,他们只能在用户空间操作用户数据,调用用户空间的函数,操作系统为用户提供了两个接口:1.一个是用户编程接口API,用户利用这些操作命令来组织和控制任务的执行或管理计算机系统,2.另一个接口是系统调用,编程人员使用系统调用来请求操作系统提供服务。系统调用包括:进程控制、文件系统控制、系统控制、内存管理、网络管理、socket控制、用户管理、进程间通信8个模块Linux中文件分为4种,普通文件、目录
阅读全文
摘要:烧写系统的操作我就不多说了,谢思源还是很牛啊,估计人家当年学的时候真的是发了很多时间在上面,而我,惭愧,少壮不努力,老大徒伤悲!系统烧好了以后然后就是缺少一个库,这个库是在/usr/local/tslib/lib 这个路劲下面,其他一些就不多解释了,只要搞定这个然后将QT编译好的程序用命令./myCom -qws然后就可以运行起来了
阅读全文
摘要:在这里告诫大家,做软件开发,包括嵌入式软件,最重要的有两件事:1、积累设计经验和常用的编程技巧,特别是软件总体架构的设计经验。2、积累自己的库代码,重用性越高,就意味着你在新项目中越省事。
阅读全文
摘要:#include<stdio.h>int main(){ float a1, a2, a3 ; float sum, ave; scanf("%f%f%f", &a1, &a2, &a3); sum = a1 + a2 + a3; ave = sum/3; printf("sum=%f, ave=%f", sum, ave ); return 0;}上面是求和运算。将一个三位数逆序输出。#include<stdio.h>main(){ int n; int n3, n2, n1; int num; prin
阅读全文
摘要:#include <reg52.h>unsigned char m; unsigned char flag;unsigned char tvb;unsigned char xianshi;void main(){ TMOD=0x20; //设置定时器1为方式2 TH1=0xfd; //装入处初值 TL1=0xfd; TR1=1; //启动定时器 SM0=0;// SM1=1; // shezhifangshi1 REN=1;//接收使能 EA=1; ES=1; while(1) { i...
阅读全文
摘要:// test.cpp : 定义控制台应用程序的入口点。//#include "stdafx.h"#include<iostream>int _tmain(int argc, _TCHAR* argv[]){ std::cout << "Enter two numbers:" << std::endl; int v1,v2; std::cin >> v1 >> v2; std::cout << "The sum of " << v1 <<
阅读全文
摘要:qt-sdk-win-opensource-2010.05.exeqt-vs-addin-1.1.9.exeqt-win-opensource-4.7.4-vs2008.exeVS2008.iso
阅读全文
摘要:函数:gets(),puts(),strcat()strncat(),strcmp(),strncmp()strcpy(),strncpy()sprintf(),strchr()先看gets()和puts()函数吧。/**************************************************************************************** File Name : main.c* Copyright : 2011-2012 ecjtu Corporation,All Rights Reserved* Module Name : 字符串** C
阅读全文
摘要:先上代码吧:/*--------------------------------------------------------------日期:2012/1/1功能:串口接收转发到网络--------------------------------------------------------------*/#include <stdio.h>#include <stdlib.h>#include <string.h>#include "rs232.h"#include <errno.h>#include <sys/
阅读全文

浙公网安备 33010602011771号