-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrealQuine.cpp
More file actions
42 lines (41 loc) · 727 Bytes
/
realQuine.cpp
File metadata and controls
42 lines (41 loc) · 727 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#include <stdio.h>
int main(int argc, char const *argv[])
{
char array[][100] = {
"#include <stdio.h>",
"",
"int main(int argc, char const *argv[])",
"{",
" char array[][100] = {",
" };",
"int len = 6;",
"for (int i = 0; i < 5; ++i)",
"{",
" printf(\"%s\n\", array[i]);",
"}",
"for (int i = 0; i < len; ++i)",
"{ ",
" printf(\"\"%s\"\n\", array[i]);",
"}",
"for (int i = 5; i < len; ++i)",
"{",
" printf(\"%s\n\", array[i]);",
"}",
"return 0;",
"}",
};
int len = 21;
for (int i = 0; i < 5; ++i)
{
printf("%s\n", array[i]);
}
for (int i = 0; i < len; ++i)
{
printf("\t\"%s\"\n", array[i]);
}
for (int i = 5; i < len; ++i)
{
printf("%s\n", array[i]);
}
return 0;
}