Linux C + + Training
Linux C + + Training
Syllabus
________________________________________
1, Linux Operating System
System Environment: Ubuntu GNU / Linux, RedHat Linux AS5,
FreeBSD
Course Requirements: proficient use of commonly used Linux
/ UNIX commands.
Time: 1 week.
________________________________________
2, Linux C + + development environment to build, develop
the use of tools
Related content: vi, GCC, GDB, Make, CVS, Subversion,
Eclipse CDT
Course requirements:
Skilled use of vi text
editor;
Skilled use of GCC tool chain for compiling, debugging,
build an executable file or shared library / static library;
Skilled preparation of Makefile;
Skilled configuration, using two kinds of CVS and
Subversion version control tool;
Skilled configuration, use the Eclipse CDT development
tools.
Time: 1 week
________________________________________
3, C + + language
C + + is a
multi-paradigm programming language, compared with C, Java, C # language such
as C Department of complex high, but once comprehend the essence of C + +, you
can play a powerful C + + language, the power, in order to enable trainees to
master C + + language programming techniques We
see this part of the program is divided into five parts:
Process-Oriented Programming: Core C + +
Dealing with technology: C + + basics: types and
declarations, pointers and arrays, expressions and statements, functions,
namespaces, exceptions, code files organization
Course requirements: a solid grasp the basic knowledge of
C + +.
Time: 1.5 weeks.
Object-oriented programming: encapsulation, inheritance
and polymorphism (encapsulation, inherit & Polymorphism)
Related to technology: class design, operator overloading,
inheritance and polymorphism.
Course requirements: a
correct understanding of object-oriented concepts, object-oriented way of
thinking and methods of building software, the correct design and use of
clas
Ïà¹ØÎĵµ£º
linuxÔ¶³Ì¸´ÖÆ linuxÔ¶³Ì¿½±´
Ô¶³ÌÉÏ´«Îļþ¼Ð
¾ÙÀý£¬
ÎÒÒª½«±¾µØÎļþ¼Ð/home/administrator/Desktop/old/driver/test/
Ô¶³ÌÉÏ´«µ½ 192.168.62.10 Õą̂»úÆ÷µÄ/root/Îļþ¼ÐÏ£¬Ê¹ÓÃÔ¶³Ì¶ËµÄrootÓû§×÷ΪµÇ½Óû§
scp -r /home/administrator/Desktop/old/driver/test/ root@192.168.62.10:/root/
Ô¶³ÌÉÏ´«Îļþ¼Ð
¾ÙÀ ......
mount [-t vfstype] [-o options] device dir
¡¡¡¡ÆäÖУº
¡¡¡¡1.-t vfstype Ö¸¶¨ÎļþϵͳµÄÀàÐÍ£¬Í¨³£²»±ØÖ¸¶¨¡£mount »á×Ô¶¯Ñ¡ÔñÕýÈ·µÄÀàÐÍ¡£³£ÓÃÀàÐÍÓУº
¡¡¡¡¹âÅÌ»ò¹âÅ̾µÏñ£ºiso9660
¡¡¡¡DOS fat16Îļþϵͳ£ºmsdos
¡¡¡¡Windows 9x fat32Îļþϵͳ£ºvfat
¡¡¡¡Windows NT ntfsÎļþϵͳ£ºntfs
¡¡¡¡Mount WindowsÎļþ ......
LinuxϵĴÅÅÌË鯬ÕûÀí
ÍøÉÏÓÐЩÌû×Ó˵XFS²»ÓÃ×öË鯬ÕûÀí£¬ÆäʵÊÇ´íÎóµÄ¡£XFSÓÃÑÓ³ÙдÈëµÈ¼¼Êõȷʵ¿ÉÒÔ¼õÉÙË鯬µÄ³öÏÖ£¬µ«ÊÇÈç¹û·þÎñÆ÷ÓÃÁ˼¸Ä꣬²¢ÇÒÎļþ²Ù×÷±È½ÏƵ·±£¬»¹ÊÇ»á³öÏÖË鯬µÄ£¬Ó¦¸ÃÕûÀí¡£×¢Ò⣺ÔÚDebianÖÐXFSÏà¹ØÃüÁîÔÚxfsprogs°üÖУ¬¶øxfs_fsrÃüÁîÊÇÔÚxfsdump°üÖеġ£ËùÒÔÒªÓÃxfs_fsrÕûÀíË鯬£¬¼ÇµÃ°²×°xfsdu ......
ÕâÆªÎÄÕºܳ¤£¬×ªÔØÏÂÀ´¹©×Ô¼ºÂýÂýѧϰ¡£
±à³ÌÐÞÑø £¨×÷Õߣº³Â𩣩
————
ʲôÊǺõijÌÐòÔ±£¿ÊDz»ÊǶ®µÃºÜ¶à¼¼Êõϸ½Ú£¿»¹ÊǶ®µ×²ã±à³Ì£¿»¹ÊDZà³ÌËٶȱȽϿ죿
ÎÒ¾õµÃ¶¼²»ÊÇ¡£¶ÔÓÚһЩ¼¼Êõϸ½ÚÀ´ËµºÍµ×²ãµÄ¼¼Êõ£¬Ö»Òª¿´°ïÖú£¬²é×ÊÁϾÍÄÜÕÒµ½£¬¶Ô
ÓÚËٶȿ죬ֻҪ±àµÃ¶àÒ²¾ÍÊìÄÜÉúÇÉÁË¡ ......
#include <stdio.h>
#include <stdlib.h>
#include <dirent.h>
#include <errno.h>
#include <string.h>
#define MAX 1024
int get_file_count(char *root)
{
DIR *dir;
struct dirent * ptr;
int total = 0;
char path[MAX];
dir = opendir(root ......