柏翠9600wt自编程序怎么用

柏翠9600wt自编程序怎么用,第1张

*** 作方法如下。打开设备,点击面板上的自编程序快捷键,之后按烧色键,选择“浅”,之后每次按下自编程序快捷键,可以设置醒面、搅拌的时间,设置好具体时间,最后进行预约即可。设备使用注意事项:

1、柏翠面包机在使用时,建议合理设置温度,以免影响使用效果。

2、柏翠面包机发出噪音,可能是烘烤冷冻食品导致,是正常现象。

3、柏翠面包机无法启动,可能是电源插头松动导致,可以检查电源插头是否插紧;可能是设备硬件故障,建议联系售后检修;可能是主板损坏,需要进行维修。

4、柏翠面包机需要定期清理,可以使用专业工具清洁。

5、柏翠面包机工作时不要移动它,可能影响烘烤质量,需要放在平整的面板上使用设备。

从一个简单的helloword开始吧

pro文件

#-------------------------------------------------

#

# Project created by QtCreator 2010-11-18T12:10:20

#

#-------------------------------------------------

QT -= core

QT -= gui

TARGET = hello.wt

LIBS += -L/usr/local/lib -lwt -lwthttp

CONFIG += console

CONFIG -= app_bundle

TEMPLATE = app

SOURCES += main.cpp

main.cpp

#include <Wt/WApplication>

#include <Wt/WBreak>

#include <Wt/WContainerWidget>

#include <Wt/WLineEdit>

#include <Wt/WPushButton>

#include <Wt/WText>

#include <boost/version.hpp>

using namespace Wt

/*

* A simple hello world application class which demonstrates how to react

* to events, read input, and give feed-back.

*/

class HelloApplication : public WApplication

{

public:

HelloApplication(const WEnvironment&env)

private:

WLineEdit *nameEdit_

WText *greeting_

void greet()

}

/*

* The env argument contains information about the new session, and

* the initial request. It must be passed to the WApplication

* constructor so it is typically also an argument for your custom

* application constructor.

*/

HelloApplication::HelloApplication(const WEnvironment&env)

: WApplication(env)

{

setTitle("Hello") // application title

root()->addWidget(new WText("Your name, please ? ")) // show some text

nameEdit_ = new WLineEdit(root())// allow text input

nameEdit_->setFocus()// give focus

WPushButton *b = new WPushButton("Greet me.", root())// create a button

b->setMargin(5, Left)// add 5 pixels margin

root()->addWidget(new WBreak()) // insert a line break

greeting_ = new WText(root())// empty text

/*

* Connect signals with slots

*

* - simple Wt-way

*/

b->clicked().connect(this, &HelloApplication::greet)

/*

* - using an arbitrary function object (binding values with boost::bind())

*/

nameEdit_->enterPressed().connect

(boost::bind(&HelloApplication::greet, this))

}

void HelloApplication::greet()

{

/*

* Update the text, using text input into the nameEdit_ field.

*/

greeting_->setText("Hello there, " + nameEdit_->text())

}

WApplication *createApplication(const WEnvironment&env)

{

/*

* You could read information from the environment to decide whether

* the user has permission to start a new application

*/

return new HelloApplication(env)

}

int main(int argc, char **argv)

{

/*

* Your main method may set up some shared resources, but should then

* start the server application (FastCGI or httpd) that starts listening

* for requests, and handles all of the application life cycles.

*

* The last argument to WRun specifies the function that will instantiate

* new application objects. That function is executed when a new user surfs

* to the Wt application, and after the library has negotiated browser

* support. The function should return a newly instantiated application

* object.

*/

return WRun(argc, argv, &createApplication)

}

这就是helloword 的工程文件

现在编译肯定是无法运行的

然后在运行环境中添加wt的共享库地址 好了 现在打开浏览器 输入0.0.0.0:8080 点击编译运行

成功 ,这样开发起来效率不知道高出n倍吧,诶,不知道wt 什么时候才能在国内普及呢

wt需要纯DOS,建议下一个DOSBOX http://www.onlinedown.net/soft/42381.htm里面有说明,先用mount加载你程序所在文件夹,然后直接输入wt就可以运行了


欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/yw/12134834.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2023-05-21
下一篇 2023-05-21

发表评论

登录后才能评论

评论列表(0条)

保存