2、进入主界面以后,点击下方工具栏中的发现。
4、在小程序页面中,可以看到自己以前使用过的小程序,点击右上角的搜索图标。
5、然后输入自己想要查询的小程序,这样就可以搜索到相关的小程序。
6、另外在微信的消息页面下滑屏幕,可以看到所有使用过的小程序。
二、微信小程序在哪里能打开?
微信小程序如何添加:
第一步、更新微信版本是6.5.3,如何查看自己的版本号(点击:我——设置——关于微信)
第三步、再打开微信,点击底部的「发现」按钮,你会发现,页面中多了一栏图标为S型的「小程序了,点击即可进入小程序页面。
三、微信小程序在哪?
在微信里面有许多的小程序可以使用,小程序可以节省手机的内存空间,在这里就分享一下微信的小程序在哪查看的方法。
1、首先打开手机桌面中的微信APP。
2、进入主界面以后,点击下方工具栏中的发现。
3、在发现页面中点击最下方的小程序。
4、在小程序页面中,可以看到自己以前使用过的小程序,点击右上角的搜索图标。
5、然后输入自己想要查询的小程序,这样就可以搜索到相关的小程序。
6、另外在微信的消息页面下滑屏幕,可以看到所有使用过的小程序。
#include<windows.h>
#ifdef __APPLE__
#include <GLUT/glut.h>
#else
#include <GL/glut.h>
#endif
#include<stdio.h>
#include<stdlib.h>
#include<math.h>
void init (void)
{
glClearColor (1.0, 1.0, 1.0, 0.0) // Set display-window color to white.
glMatrixMode (GL_PROJECTION) // Set projection parameters.
gluOrtho2D (0.0, 200.0, 0.0, 150.0)
}
int round(const float a)
{
return (int)(a+0.5)
}
void lineDDA(int x0,int y0,int xEnd,int yEnd)
{
glColor 3f(0.0,0.0,1.0)
glPointSize(3.0f)
int dx = xEnd - x0
int dy = yEnd - y0
int steps,k
float xIncrement,yIncrement,x = x0,y = y0
if(fabs (dx) > fabs(dy))
steps = fabs(dy)
else
steps = fabs(dx)
xIncrement = (float)(dx)/(float)(steps)
yIncrement = (float)(dy)/(float)(steps)
glBegin(GL_POINTS)
glVertex2i(round(x),round(y))
glEnd()
glFlush()
for (k=0k<stepsk++)
{
x += xIncrement
y += yIncrement
glBegin(GL_POINTS)
glVertex2i(round(x),round(y))
glEnd()
glFlush()
}
}
void lineBres(int x0,int y0,int xEnd,int yEnd)
{
glColor3f(1.0,0.0,0.0)
glPointSize(3.0f)
int dx = fabs(xEnd - x0)
int dy = fabs(yEnd - y0)
int p = 2*dy-dy
int twoDy = 2*dy,twoDyMinusDx = 2*(dy - dx)
int x,y
if (x0>xEnd)
{
x = xEnd
y = yEnd
xEnd = x0
}
else
{
x = x0
y = y0
}
glBegin(GL_POINTS)
glVertex2i(x,y)
glEnd()
glFlush()
while(x < xEnd)
{
x++
if (p < 0)
p += twoDy
else
{
y++
p += twoDyMinusDx
}
glBegin(GL_POINTS)
glVertex2i(x,y)
glEnd()
glFlush()
}
}
void pointFun(void)
{
int x0 = 0,y0 = 0,xEnd = 100,yEnd = 100
//scanf("%d%d%d%d",&x0,&y0,&xEnd,&yEnd)
lineDDA(x0,y0+1,xEnd,yEnd)//调用DDA画线函数
lineBres(x0+1,y0,xEnd,yEnd)//调用Bresenham画线函数
}
int main (int argc, char** argv)
{
glutInit (&argc, argv) // Initialize GLUT.
glutInitDisplayMode (GLUT_SINGLE | GLUT_RGB) // Set display mode.
glutInitWindowPosition (50, 100) // Set top-left display-window position.
glutInitWindowSize (800, 600) // Set display-window width and height.
//glutFullScreen()
glutCreateWindow ("An Example OpenGL Program") // Create display window.
init() // Execute initialization procedure.
glutDisplayFunc (pointFun) // Send graphics to display window.
glutMainLoop ( )// Send graphics to display window. // Display everything and wait.
return 0
}
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)