Code Monkey home page Code Monkey logo

whalemarket's Introduction

框架代码的说明

@author: 家才 @email: [email protected]

在初始框架代码中写好了一个简单的多模块的“Welcome”程序,整个项目可以在此基础上展开。 框架代码中有一些可能在各位知识范围之外的东西————主要是关于终端字体样式设置(ANSI控制码), 可以先上网搜索,还是无法理解可以询问我。

构建项目的Makefile我已经为各位写好了,同时添加了注释,有兴趣的同学可以看一看, 没兴趣的话只需要知道它的功能是构建整个项目就是了。

在这个项目中,我们需要实现如下的基本需求:

用户功能:

登陆、注册、注销

买家功能

查看、搜索商品 购买商品

卖家功能

商品的发布、下架 查看已发布商品 修改商品信息 查看历史订单 个人信息查看、修改

管理员功能

登陆、注销 查看、搜索、下架商品 查看所有订单 查看、删除用户

系统功能

程序结束后再次打开程序,原本的数据不能丢失

主要模块

名称 作用
tools 一些辅助工具(样式设计、日期、ID生成等内容)
menu 菜单模块,接口模块的辅助模块
good 商品模块,包括涉及商品的算法和数据结构
user 用户模块,包括涉及用户的算法和数据结构
order 订单模块,包括涉及订单的算法和数据结构
interface 接口/界面模块,实现用户和数据结构的交互
main.c 程序入口

基本使用方法:

user@linux WhaleMarket> make # 或者 make main

一些过程信息

user@linux WhaleMarket> ./main
输出main函数运行结果
user@linux WhaleMarket> make clean # 清除项目生成过程中产生的中间文件和生成的可执行程序

编辑项目的方式:

user@linux WhaleMarket> code .

会弹出vscode窗口,在窗口下编辑文件即可

建议自主设计项目的文件结构,不要所有的代码都堆在一个文件里, 也不要所有的代码文件都堆在一个文件夹里。

正常构建项目需要遵守的约定

  1. 在src文件夹下放源文件,在include文件夹下放头文件;
  2. 包含头文件的路径名是从include文件夹开始的相对路径,可以看框架;
  3. 文件IO的路径名是从WhaleMarket开始的相对路径;

环境测试

user@linux WhaleMarket> code . # 能够正常唤起vscode
user@linux WhaleMarket> make # 或者 make main
# 一些过程信息,没有报错信息
user@linux WhaleMarket> ./main
#得到下图中的结果并听到系统提示音

initial

whalemarket's People

Contributors

moyangcitta avatar 201220014 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.