kiem tien, kiem tien online, kiem tien truc tuyen, kiem tien tren mang
Thứ Sáu, 21 tháng 2, 2014

Mã nguồn: Click here


Video: xem video để biết cách sử dụng chương trình, xem rõ nhất ở chế độ 720p




Yêu cầu: để biên dịch thành công mã lệnh bên dưới, các bạn phải cấu hình đồ họa cho C++, xem video hướng dẫn cấu hình đồ họa ở đây: link


Mã lệnh:

#include<iostream>
#include<fstream>
#include <conio.h>
#include <graphics.h>
#include <dos.h>
using namespace std;

int
main(int argc, char *argv[]) {
ifstream myReadFile;
myReadFile.open(argv[1]);
initwindow(800,800);
char
output[1000];
int
y=0;
int
x=100;
int
yy=100;
if
(myReadFile.is_open()) {
while
(!myReadFile.eof()) {
myReadFile >> output;
for
(int i=0;i<strlen(output);i++)
if
(output[i]!='0')
putpixel(i+x,y+yy,15);
y++;
cout<<output;
delay(1);
}
}

myReadFile.close();
getch();
return
0;
}
Tải File ToBin.exe: Tải về
21 Feb 2014

0 nhận xét:

Đăng nhận xét

:) :)) ;(( :-) =)) ;( ;-( :d :-d @-) :p :o :>) (o) [-( :-? (p) :-s (m) 8-) :-t :-b b-( :-# =p~ $-) (b) (f) x-) (k) (h) (c) cheer
Click to see the code!
To insert emoticon you must added at least one space before the code.

domain, domain name, premium domain name for sales

Bài đăng phổ biến