var x = lines;
var num = line spacing;
!!!!!!
!!!!!!
!!!!!!
!!!!!!
CODE:::::
:
:
#include<iostream>
#include<cstdlib>
using namespace std;
int main(){
int num, x, rans;
cout << " RANDOM points::" << endl;
while(1){
x = num;
x++;
num = rand() % 70;
cout << "[" << x << "," << num << "]" << endl;
for(x = 0; x < num; x++){
cout << " ";
}
}
}
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
COORDINATES POINT::
:
:
#include<iostream>
#include<cstdlib>
using namespace std;
int main(){
int num, x, rans;
cout << " RANDOM points::" << endl;
while(1){
x = num;
x++;
num = rand() % 70;
cout << "[" << x << "," << num << "]" << endl;
for(x = 0; x < num; x++){
cout << " ";
}
}
}
!!!!!!!!!!!!!!!!!!!!OR C++ CODE::!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
FROM ORIGIN POINT:
:
:
#include<iostream>
#include<cstdlib>
using namespace std;
int main(){
int num, x, rans;
cout << " RANDOM points::" << endl;
while(1){
x = num;
x++;
num = rand() % 70;
cout << "[" << x << "," << num << "]" << endl;
for(x = 0; x < num; x++){
cout << "_";
}
}
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
HOW IT WORKS WITHOUT THE COORDINATES::
:
:
#include<iostream>
#include<cstdlib>
using namespace std;
int main(){
int num, x, rans;
cout << " RANDOM points::" << endl;
while(1){
x = num;
x++;
num = rand() % 70;
cout << "." << endl;
for(x = 0; x < num; x++){
cout << " ";
}
}
}
}
Be the first to comment
You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.