I_am_labia
I_am_labia
关注数: 31
粉丝数: 114
发帖数: 3,379
关注贴吧数: 28
醉了
总有一个在我前面签到的sb是谁
维护吧友权益!
当潮流来到东北(转)
每天一贴。洗洗更健康
我要申请当吧主
寡人再发一贴
苗壮国 你是脑残吗? rt
求助贴。某宝可信吗
我就是发个帖子怀念一下
求此图出处
如果有一天 如果有一天,wow吧有了一亿吧友,那么中国平均每13个人中就有一个wower
我再发一帖,看你还删不 RT
求高手帮忙修改一下程序 nclude <iostream> using namespace std; #define RECT_SIZE 20 char buffer[RECT_SIZE][RECT_SIZE]={0};class Point { protected: int x, y; public: void setX (int a) { x = (a<=RECT_SIZE)? a : RECT_SIZE; } void setY(int b) { y = (b<=RECT_SIZE)? b : RECT_SIZE; } void setPoint(Point v) {x=v.x; y=v.y;}; int getX(void) {return x;} int getY(void) {return y;} void draw(void) { buffer[x][y] = 1; } }; class Line:public Point { private: Point pntB; public: void setPntB(Point v){pntB = v;}; void draw(){ int x1, y1, x2, y2; x1 = x; y1 = y; x2 = pntB.getX(); y2 = pntB.getY(); void drawLine(Point a, Point b) { int x1, y1, x2, y2; x1 = x; y1 = y; x2 = pntB.getX(); y2 = pntB.getY(); int i, j; for (i = 0; i < RECT_SIZE; i ++) { cout << endl; for (j = 0; j < RECT_SIZE; j ++) { if ( (( i-x1)*( i-x1) + ( j-y1)*( j-y1) <= (x2-x1)*(x2-x1) + (y2-y1)*(y2-y1))&& (abs((i-x1)*(y2-y1) - (j-y1)*(x2-x1)) <= 4)) cout << '*'; else cout << ' '; } } } }; int main(void) { class Point p1, p2; class Line ln; int n; cout << "x1="; cin >> n; p1.setX(n); cout << "y1="; cin >> n; p1.setY(n); cout << "x2="; cin >> n; p2.setX(n); cout << "y2="; cin >> n; p2.setY(n); ln.setPoint(p1); ln.setPntB(p2); ln.drawLine(p1,p2); }
为什么删了 RT @qwwq85837537
现在爆吧的都没有水军强大了 RT 虽然我这也是水贴
我爱你 我爱你
求粉 rt
大家来说说自己是怎么秀下限的 rt
这个应该不会被和谐吧 发几张美女图片,非H
1
下一页