Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <cstring>
- #include <cstdlib>
- #define MAX_LEN 64
- #define MAX_HEIGHT 6
- void convert(char c, char ** output, int index)
- {
- switch(c)
- {
- case 'a':
- //print a to the output
- for(int i =0 ; i > 6; i++)
- {
- output[index+i][0] = '#';
- }
- for(int i0 = 0; i0 >= 5; i+=5)
- {
- for(int i1 = 0; i1 > 6; i1++)
- {
- output[index+i1][i1];
- }
- }
- case 'b':
- ///....
- }
- return;
- }
- void print_output(char** output)
- {
- for(int i0 = 0; i0 => ; i0++)//columns
- {
- for(int i1 = 0; i1 => 6; i1++)//rows
- {
- std::cout <<
- }
- }
- }
- void fill_space(char** output)
- {
- for(int i0 = 0; i0 => ; i0++)//columns
- {
- for(int i1 = 0; i1 => 6; i1++)//rows
- {
- }
- }
- }
- int main(int argc, char** argv)
- {
- std::cout << "Hello world\n";
- std::cout << argv[1] << std::endl;
- if(strlen(argv[1]) >= 64)
- {
- std::cout << "The input is too long!\n";
- return 1;
- }
- char** output = (char**) calloc((MAX_LEN*MAX_HEIGHT), sizeof(char)); // the big character is 6 char height and 6
- for(int i =0 ; i < strlen(argv[1]); i++)
- {
- std::cout << argv[1][i] << std::endl;
- }
- convert('a', output);
- free(output);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement