diff --git a/15/15.1.c b/15/15.1.c new file mode 100644 index 0000000..6f66e10 --- /dev/null +++ b/15/15.1.c @@ -0,0 +1,19 @@ +#include +int main (void) +{ + int val = 2, val2 = 3, val3 = 7; + unsigned char val1 = 2; + + val3 &= val2; + ~val1; + printf ("%d, %u, %d, %d\n", ~val, ~val1, val & val2, val3); + + val = 5; + val3 |= val; + printf ("%d \n", val3); + + val3 = 5; + val3 ^= val; + printf ("%d \n", val3); + return 0; +} \ No newline at end of file diff --git a/15/15.1.exe b/15/15.1.exe new file mode 100644 index 0000000..2ec73bf Binary files /dev/null and b/15/15.1.exe differ diff --git a/15/15.10.c b/15/15.10.c new file mode 100644 index 0000000..923cd3d --- /dev/null +++ b/15/15.10.c @@ -0,0 +1,60 @@ +#include "15.9_10.h" + +int main (int argc, char * argv[]) +{ + bool eigen = 1; + int j, p; + char ch [5][33]; + + if (argc < 3) + { + printf ("No enough parameters. \n"); + exit (0); + } + + for (int i = 0; i < strlen (argv[1]); i ++) + { + if ((argv[1][i] != '0') && (argv[1][i] != '1')) + { + eigen = 0; + break; + } + } + + if (eigen == 1) + { + j = b2dcov (argv[1]); + }else + { + printf ("Wrong input"); + exit (0); + } + + for (int i = 0; i < strlen (argv[2]); i ++) + { + if ((argv[2][i] != '0') && (argv[2][i] != '1')) + { + eigen = 0; + break; + } + } + + if (eigen == 1) + { + p = b2dcov (argv[2]); + }else + { + printf ("Wrong input"); + exit (0); + } + + printf ("~ %s = %s\n", argv [1], itobs (~ j, ch[0])); + printf ("~ %s = %s\n", argv [2], itobs (~ p, ch[1])); + printf ("%s & %s = %s\n", argv[1], argv[2], itobs (j & p, ch[2])); + printf ("%s | %s = %s\n", argv[1], argv[2], itobs (j | p, ch[3])); + printf ("%s ^ %s = %s\n", argv[1], argv[2], itobs (j ^ p, ch[4])); + printf ("%d bits in %s open. \n", bits_open (j), argv[1]); + printf ("%d bits in %s open. \n", bits_open (p), argv[2]); + + return 0; +} diff --git a/15/15.10.exe b/15/15.10.exe new file mode 100644 index 0000000..9eede0b Binary files /dev/null and b/15/15.10.exe differ diff --git a/15/15.11.c b/15/15.11.c new file mode 100644 index 0000000..c71aced --- /dev/null +++ b/15/15.11.c @@ -0,0 +1,42 @@ +#include "15.11.h" + +int main (int argc, char * argv[]) +{ + int j, p; + char th[3]; + + if (argc < 3) + { + printf ("No enough parameters. \n"); + exit (0); + } + + j = str2int (argv[1]); + p = str2int (argv[2]); + + if ((p > 32) || (p <= 0)) + { + printf ("Bits are to %s. \n", (p > 32) ? "more" : "less"); + exit (0); + } + + switch (p) + { + case 1: + strcpy (th, "st\0"); + break; + case 2: + strcpy (th, "nd\0"); + break; + case 3: + strcpy (th, "rd\0"); + break; + default: + strcpy (th, "th\0"); + break; + } + + printf ("%d's %d%s bit is %s. \n", j, p, th, (if_open (j, p)) ? "opened" : "closed"); + + return 0; +} diff --git a/15/15.11.exe b/15/15.11.exe new file mode 100644 index 0000000..bf83dd1 Binary files /dev/null and b/15/15.11.exe differ diff --git a/15/15.11.h b/15/15.11.h new file mode 100644 index 0000000..e77d70e --- /dev/null +++ b/15/15.11.h @@ -0,0 +1,24 @@ +#include +#include +#include + +int str2int (char * ch) +{ + int ret = 0; + + for (int i = 0; i < strlen (ch); i ++) + { + ret *= 10; + ret += (ch[i] - 48); + } + + return ret; +} + +_Bool if_open (int j, int p) +{ + int mask; + + mask = 1 << (p - 1); + return ((j & mask) == mask) ? 1 : 0; +} diff --git a/15/15.12.c b/15/15.12.c new file mode 100644 index 0000000..fc0293a --- /dev/null +++ b/15/15.12.c @@ -0,0 +1,43 @@ +#include + +unsigned int rotate_1 (unsigned int j, unsigned int p); + +int main (void) +{ + unsigned int j, p; + + printf ("Please enter a number to convert: \n"); + scanf ("%u", &j); + while (getchar() != '\n'); + printf ("Please enter how many bits to convert: \n"); + scanf ("%u", &p); + while (getchar() != '\n'); + + printf ("The number converted is %u. \n", rotate_1 (j, p)); + + return 0; +} + +unsigned int rotate_1 (unsigned int j, unsigned int p) +{ + unsigned int temp = 1 << p; + unsigned int j1, p1 = j, count = 0, mask = 0; + + for (; p1 > 0; p1 >>= 1, count ++); + + if (count < p) + { + return 0; + } + + for (int i1 = 0, i2 = 1; i1 < (count - p); i1 ++, i2 <<= 1) + { + mask += i2; + } + + for (j1 = j; j1 > temp; j1 >>= 1); + j &= mask; + j <<= p; + + return j1 + j; +} \ No newline at end of file diff --git a/15/15.13.c b/15/15.13.c new file mode 100644 index 0000000..d1c26c6 --- /dev/null +++ b/15/15.13.c @@ -0,0 +1,19 @@ +#include "15.13_14.h" + +int main (void) +{ + union font_para_in2ways + { + struct font_para font_para_instruct; + unsigned int font_para_inuint; + }; + + union font_para_in2ways set_font = { + 1, 12, 0, 0, 0, 0 + }; + + print_para (&set_font.font_para_instruct); + put_menu (&set_font.font_para_instruct); + + return 0; +} \ No newline at end of file diff --git a/15/15.13_14.h b/15/15.13_14.h new file mode 100644 index 0000000..60dddfc --- /dev/null +++ b/15/15.13_14.h @@ -0,0 +1,397 @@ +#include +#include + +#define mask_id 0xFF +#define write_id 0x1 +#define mask_size 0xFF00 +#define write_size 0x100 +#define mask_align 0xF0000 +#define write_align 0x10000 +#define mask_bold 0x100000 +#define mask_ital 0x200000 +#define mask_udline 0x400000 + +struct font_para +{ + unsigned int font_id: 8; + unsigned int font_size: 7; + unsigned int: 1; + unsigned int font_align: 2; + unsigned int: 2; + _Bool if_bold: 1; + _Bool if_ital: 1; + _Bool if_udline: 1; +}; + +void put_menu (struct font_para * setings); +void print_para (struct font_para * seted); +void print_paraandmenu (struct font_para * setings); +void change_fid (struct font_para * setings); +void change_fsize (struct font_para * setings); +void change_align (struct font_para * setings); +void if_BIU (struct font_para * setings, char ch); +_Bool change_bool (char * pt); +void print_para1 (unsigned int * seted); +void print_paraandmenu1 (unsigned int * setings); +void put_menu1 (unsigned int * setings); +void change_fid1 (unsigned int * setings); +void change_fsize1 (unsigned int * setings); +void change_align1 (unsigned int * setings); +void if_BIU1 (unsigned int * setings, char ch); +void change_bool1 (char * pt, unsigned int * setings, unsigned int mask_1_in_3); + +void print_para (struct font_para * seted) +{ + char align[][7] = { + "left\0", "middle\0", "right\0" + }; + char if_BIU[][4] = { + "off\0", "on\0" + }; + + printf (" ID SIZE ALIGMENT BOLD ITAL UDL \n"); + printf ("%5d%7d%10s%7s%7s%7s\n", + seted -> font_id, seted -> font_size, align[seted -> font_align], + if_BIU[seted -> if_bold], if_BIU[seted -> if_ital], if_BIU[seted -> if_udline]); +} + +void put_menu (struct font_para * setings) +{ + char ch; + + printf ("Do you need to change some settings? \n"); + printf ("f) change font; s) change size; a) change alignment; \n"); + printf ("b) toggle bold; i) toggle ital; u) toggle underline; \n"); + printf ("q) quit; \n"); + printf ("Selecet a setting, all OK with q: \n"); + + scanf ("%c", &ch); + while (getchar () != '\n'); + + switch (ch) + { + case 'f': + change_fid (setings); + print_paraandmenu (setings); + case 's': + change_fsize (setings); + print_paraandmenu (setings); + case 'a': + change_align (setings); + print_paraandmenu (setings); + case 'b': + case 'i': + case 'u': + if_BIU (setings, ch); + print_paraandmenu (setings); + case 'q': + printf ("The settings you've chosen: \n"); + print_para (setings); + printf ("Thank you for using. \n"); + exit (0); + default: + printf ("Please enter a correct input. \n"); + put_menu (setings); + } +} + +void print_paraandmenu (struct font_para * setings) +{ + print_para (setings); + put_menu (setings); +} + +void change_fid (struct font_para * setings) +{ + int temp; + + printf ("Choose a font ID number: \n"); + + for (; ; ) + { + if (scanf ("%d", &temp)) + { + if ((temp > 0) && (temp < 255)) + { + while (getchar () != '\n'); + break; + } + } + while (getchar () != '\n'); + + printf ("Please enter a correct input. \n"); + } + + setings -> font_id = temp; +} + +void change_fsize (struct font_para * setings) +{ + int temp; + + printf ("Choose a font size number: \n"); + + for (; ; ) + { + if (scanf ("%d", &temp)) + { + if ((temp > 0) && (temp < 127)) + { + while (getchar () != '\n'); + break; + } + } + while (getchar () != '\n'); + + printf ("Please enetr a correct input. \n"); + } + + setings -> font_size = temp; +} + +void change_align (struct font_para * setings) +{ + char temp; + + printf ("Choose a way of alignment: \n"); + printf ("1) left; 2) middle; 3) right;\n"); + + while ((temp = getchar())) + { + if ((temp == '1') || (temp == '2') || (temp == '3')) + { + while (getchar () != '\n'); + break; + } + + printf ("Please enter a correct input. \n"); + while (getchar () != '\n'); + } + + setings -> font_align = temp - 49; +} + +void if_BIU (struct font_para * setings, char ch) +{ + char BIU[][10] = { + "bold\0", "italic\0", "underline\0" + }, * pt; + + switch (ch) + { + case 'b': + pt = BIU[0]; + setings -> if_bold = change_bool (pt); + break; + case 'i': + pt = BIU[1]; + setings -> if_ital = change_bool (pt); + break; + case 'u': + pt = BIU[2]; + setings -> if_udline = change_bool (pt); + break; + } +} + +_Bool change_bool (char * pt) +{ + char temp; + + printf ("Do you want the font to be %s? \n", pt); + printf ("1) %s; 0) not %s\n", pt, pt); + + while ((temp = getchar())) + { + if ((temp == '1') || (temp == '0')) + { + while (getchar () != '\n'); + break; + } + + printf ("Please enter a correct input. \n"); + while (getchar () != '\n'); + } + + return temp - 48; +} + +void print_para1 (unsigned int * seted) +{ + char align[][7] = { + "left\0", "middle\0", "right\0" + }; + char if_BIU[][4] = { + "off\0", "on\0" + }; + + printf (" ID SIZE ALIGMENT BOLD ITAL UDL \n"); + printf ("%5d%7d%10s%7s%7s%7s\n", + *seted & mask_id, (*seted & mask_size) >> 8, align[(*seted & mask_align) >> 16], + if_BIU[(*seted & mask_bold) >> 20], if_BIU[(*seted & mask_ital) >> 21], if_BIU[(*seted & mask_udline) >> 22]); +} + +void put_menu1 (unsigned int * setings) +{ + char ch; + + printf ("Do you need to change some settings? \n"); + printf ("f) change font; s) change size; a) change alignment; \n"); + printf ("b) toggle bold; i) toggle ital; u) toggle underline; \n"); + printf ("q) quit; \n"); + printf ("Selecet a setting, all OK with q: \n"); + + scanf ("%c", &ch); + while (getchar () != '\n'); + + switch (ch) + { + case 'f': + change_fid1 (setings); + print_paraandmenu1 (setings); + case 's': + change_fsize1 (setings); + print_paraandmenu1 (setings); + case 'a': + change_align1 (setings); + print_paraandmenu1 (setings); + case 'b': + case 'i': + case 'u': + if_BIU1 (setings, ch); + print_paraandmenu1 (setings); + case 'q': + printf ("The settings you've chosen: \n"); + print_para1 (setings); + printf ("Thank you for using. \n"); + exit (0); + default: + printf ("Please enter a correct input. \n"); + put_menu1 (setings); + } +} + +void print_paraandmenu1 (unsigned int * setings) +{ + print_para1 (setings); + put_menu1 (setings); +} + +void change_fid1 (unsigned int * setings) +{ + int temp; + + printf ("Choose a font ID number: \n"); + + for (; ; ) + { + if (scanf ("%d", &temp)) + { + if ((temp > 0) && (temp < 255)) + { + while (getchar () != '\n'); + break; + } + } + while (getchar () != '\n'); + + printf ("Please enter a correct input. \n"); + } + + *setings &= (~ mask_id); + *setings &= (write_id * temp); +} + +void change_fsize1 (unsigned int * setings) +{ + int temp; + + printf ("Choose a font size number: \n"); + + for (; ; ) + { + if (scanf ("%d", &temp)) + { + if ((temp > 0) && (temp < 127)) + { + while (getchar () != '\n'); + break; + } + } + while (getchar () != '\n'); + + printf ("Please enetr a correct input. \n"); + } + + *setings &= (~ mask_size); + *setings &= (write_size * temp); +} + +void change_align1 (unsigned int * setings) +{ + char temp; + + printf ("Choose a way of alignment: \n"); + printf ("1) left; 2) middle; 3) right;\n"); + + while ((temp = getchar())) + { + if ((temp == '1') || (temp == '2') || (temp == '3')) + { + while (getchar () != '\n'); + break; + } + + printf ("Please enter a correct input. \n"); + while (getchar () != '\n'); + } + + *setings &= (~ mask_align); + *setings &= (write_align * temp); +} + +void if_BIU1 (unsigned int * setings, char ch) +{ + char BIU[][10] = { + "bold\0", "italic\0", "underline\0" + }, * pt; + + switch (ch) + { + case 'b': + pt = BIU[0]; + change_bool1 (pt, setings, mask_bold); + break; + case 'i': + pt = BIU[1]; + change_bool1 (pt, setings, mask_ital); + break; + case 'u': + pt = BIU[2]; + change_bool1 (pt, setings, mask_udline); + break; + } +} + +void change_bool1 (char * pt, unsigned int * setings, unsigned int mask_1_in_3) +{ + char temp; + + printf ("Do you want the font to be %s? \n", pt); + printf ("1) %s; 0) not %s\n", pt, pt); + + while ((temp = getchar())) + { + if ((temp == '1') || (temp == '0')) + { + while (getchar () != '\n'); + break; + } + + printf ("Please enter a correct input. \n"); + while (getchar () != '\n'); + } + + *setings &= (~ mask_1_in_3); + *setings |= ((temp - 48) * mask_1_in_3); +} diff --git a/15/15.14 b/15/15.14 new file mode 100644 index 0000000..28e1eaa Binary files /dev/null and b/15/15.14 differ diff --git a/15/15.14.c b/15/15.14.c new file mode 100644 index 0000000..08d9c6a --- /dev/null +++ b/15/15.14.c @@ -0,0 +1,19 @@ +#include "15.13_14.h" + +int main (void) +{ + union font_para_in2ways + { + struct font_para font_para_instruct; + unsigned int font_para_inuint; + }; + + union font_para_in2ways set_font = { + 1, 12, 0, 0, 0, 0 + }; + + print_para1 (&set_font.font_para_inuint); + put_menu (&set_font.font_para_instruct); + + return 0; +} \ No newline at end of file diff --git a/15/15.2.c b/15/15.2.c new file mode 100644 index 0000000..d089d46 --- /dev/null +++ b/15/15.2.c @@ -0,0 +1,111 @@ +#include +int main (void) +{ + int j, j1[2], p, jp[7][16]; + + printf ("please enter j: \n"); + scanf ("%d", &j); + printf ("please enter p: \n"); + scanf ("%d", &p); + + //这种写法被允许: j <<= 1; + j1[0] = j << 1; + j1[1] = j >> 1; + printf ("j << 1: %d, j * (2 ^ 1) = %d\n", j1[0], j * 2); + printf ("j >> 1: %d, j / (2 ^ -1) = %d\n", j1[1], j / 2); + putchar ('\n'); + + for (int i = 15; i > -1; i --) + { + if (j > 0) + { + jp[1][i] = j % 2; + j /= 2; + }else + { + jp[1][i] = 0; + } + + if (p > 0) + { + jp[0][i] = p % 2; + p /= 2; + }else + { + jp[0][i] = 0; + } + + if (j1[0] > 0) + { + jp[5][i] = j1[0] % 2; + j1[0] /= 2; + }else + { + jp[5][i] = 0; + } + + if (j1[1] > 0) + { + jp[6][i] = j % 2; + j1[1] /= 2; + }else + { + jp[6][i] = 0; + } + + jp[2][i] = jp[1][i] & jp[0][i]; + jp[3][i] = jp[1][i] | jp[0][i]; + jp[4][i] = jp[1][i] ^ jp[0][i]; + } + + printf (" j: "); + for (int i = 0; i < 16; i ++) + { + printf ("%d", jp[1][i]); + } + putchar ('\n'); + + printf (" p: "); + for (int i = 0; i < 16; i ++) + { + printf ("%d", jp[0][i]); + } + putchar ('\n'); + + printf (" j & p: "); + for (int i = 0; i < 16; i ++) + { + printf ("%d", jp[2][i]); + } + putchar ('\n'); + + printf (" j | p: "); + for (int i = 0; i < 16; i ++) + { + printf ("%d", jp[3][i]); + } + putchar ('\n'); + + printf (" j ^ p: "); + for (int i = 0; i < 16; i ++) + { + printf ("%d", jp[4][i]); + } + putchar ('\n'); + + printf ("j << 1: "); + for (int i = 0; i < 16; i ++) + { + printf ("%d", jp[5][i]); + } + putchar ('\n'); + + printf ("j >> 1: "); + for (int i = 0; i < 16; i ++) + { + printf ("%d", jp[6][i]); + } + putchar ('\n'); + + return 0; +} diff --git a/15/15.3.c b/15/15.3.c new file mode 100644 index 0000000..da53c78 --- /dev/null +++ b/15/15.3.c @@ -0,0 +1,54 @@ +#include +#include + +char * itobs (int n, char * ps); +void show_bstr (const char * str); + +int main (void) +{ + char bin_str[CHAR_BIT * sizeof (int) + 1]; + int number; + + puts ("Enter integers to turn into binary. "); + puts ("Non-numeric input terminates program. "); + + while (scanf ("%d", &number)) + { + itobs (number, bin_str); + printf ("%d is ", number); + show_bstr (bin_str); + putchar ('\n'); + } + + printf ("Thank you for using. \n"); + + return 0; +} + +char * itobs (int n, char * ps) +{ + int i; + const static int size = CHAR_BIT * sizeof (int); + + for (i = size - 1; i >= 0; i --, n >>= 1) + { + ps[i] = (01 & n) + 48; + } + + ps[size] = '\0'; + + return ps; +} + +void show_bstr (const char * str) +{ + int i = 0; + while (str[i]) + { + putchar (str[i]); + if (!((++ i) % 4) && str[i]) + { + putchar (' '); + } + } +} diff --git a/15/15.4.c b/15/15.4.c new file mode 100644 index 0000000..e457c70 --- /dev/null +++ b/15/15.4.c @@ -0,0 +1,73 @@ +#include +#include + +char * itobs (int n, char * ps); +void show_bstr (const char * str); +int invert_end (int num, int bits); + +int main (void) +{ + char bin_str[CHAR_BIT * sizeof (int) + 1]; + int number; + + puts ("Enter integers to turn into binary. "); + puts ("Non-numeric input terminates program. "); + + while (scanf ("%d", &number)) + { + printf ("%d is ", number); + show_bstr (itobs (number, bin_str)); + putchar ('\n'); + number = invert_end (number, 4); + printf ("Inverting the last 4 bits gives... \n"); + show_bstr (itobs (number, bin_str)); + putchar ('\n'); + } + + printf ("Thank you for using. \n"); + + return 0; +} + +char * itobs (int n, char * ps) +{ + int i; + const static int size = CHAR_BIT * sizeof (int); + + for (i = size - 1; i >= 0; i --, n >>= 1) + { + ps[i] = (01 & n) + 48; + } + + ps[size] = '\0'; + + return ps; +} + +void show_bstr (const char * str) +{ + int i = 0; + while (str[i]) + { + putchar (str[i]); + if (!((++ i) % 4) && str[i]) + { + putchar (' '); + } + } +} + +int invert_end (int num, int bits) +{ + int mask = 0; + int bitval = 1; + + while (bits -- > 0) + { + mask |= bitval; + bitval <<= 1; + printf ("%d %d\n", mask, bitval); //mask其实就是15; + } + + return num ^ mask; +} diff --git a/15/15.5.c b/15/15.5.c new file mode 100644 index 0000000..30cbca9 --- /dev/null +++ b/15/15.5.c @@ -0,0 +1,85 @@ +#include +#include +#define SOLID 0 +#define DOTTED 1 +#define DASHED 2 + +#define BLUE 4 +#define GREEN 2 +#define RED 1 + +#define BLACK 0 +#define YELLOW (RED | GREEN) //= 3; +#define MAGENTA (RED | BLUE) //= 5; +#define CYAN (GREEN | BLUE) //= 6; +#define WHITE (RED | GREEN | BLUE) //= 7; + +const char * colors[8] = { + "black", "red", "green", "yellow", "blue", "magenta", "cyan", "white" +}; + +/* 示例代码; +struct prnt +{ + unsigned int autfd: 1; + unsigned int bidfc: 1; + unsigned int undln: 1; + unsigned int itals: 1; +}; +*/ + +struct box_props +{ + bool opaque: 1; + unsigned int fill_color: 3; + unsigned int: 4; //可有可无, 不影响编译; + bool show_border: 1; + unsigned int border_color: 3; + unsigned int border_style: 2; + unsigned int: 2; //同上; +}; + +void show_settings (const struct box_props * pb); + +int main (void) +{ + struct box_props box = { + true, YELLOW, true, GREEN, DASHED //clion此处代码提示有误, 无名位字段不会被赋值; + }; + + printf ("Original box seetings: \n"); + show_settings (&box); + + box.opaque = false; + box.fill_color = WHITE; + box.border_color = MAGENTA; + box.border_style = SOLID; + printf ("\nModified box settings: \n"); + show_settings (&box); + + return 0; +} + +void show_settings (const struct box_props * pb) +{ + printf ("Box is %s. \n", pb -> opaque ? "opaque" : "transparent"); + printf ("The fill color is %s. \n", colors[pb -> fill_color]); + printf ("Border %s. \n", (pb -> show_border == true) ? "shown" : "not shown"); + printf ("The border color is %s. \n", colors[pb -> border_color]); + printf ("The border style is "); + switch (pb -> border_style) + { + case SOLID: + printf ("solid. \n"); + break; + case DOTTED: + printf ("dotted. \n"); + break; + case DASHED: + printf ("dashed. \n"); + break; + default: + printf ("unknown type. \n"); + break; + } +} diff --git a/15/15.6 b/15/15.6 new file mode 100644 index 0000000..3813c05 Binary files /dev/null and b/15/15.6 differ diff --git a/15/15.6.c b/15/15.6.c new file mode 100644 index 0000000..1b53fc8 --- /dev/null +++ b/15/15.6.c @@ -0,0 +1,152 @@ +//windows没有效果; +#include +#include +#include + +#define SOLID 0 +#define DOTTED 1 +#define DASHED 2 + +#define BLUE 4 +#define GREEN 2 +#define RED 1 +#define BLACK 0 +#define YELLOW (RED | GREEN) //0011 +#define MAGENTA (RED |BLUE) //0101 +#define CYAN (GREEN | BLUE) //0110 +#define WHITE (RED | GREEN | BLUE) //0111 + +#define OPAQUE 0x1 //0000 0000 0000 0001 +#define FILL_BLUE 0x8 //0000 0000 0000 1000 +#define FILL_GREEN 0x4 //0000 0000 0000 0100 +#define FILL_RED 0x2 //0000 0000 0000 0010 +#define FILL_MASK 0xE //0000 0000 0000 1110 +#define BORDER 0x100 //0000 0001 0000 0000 +#define BORDER_BLUE 0x800 //0000 1000 0000 0000 +#define BORDER_GREEN 0x400 //0000 0100 0000 0000 +#define BORDER_RED 0x200 //0000 0010 0000 0000 +#define BORDER_MASK 0xE00 //0000 1110 0000 0000 +#define B_SOLID 0 //0000 0000 0000 0000 +#define B_DOTTED 0x1000 //0001 0000 0000 0000 +#define B_DASHED 0x2000 //0010 0000 0000 0000 +#define STYLE_MASK 0x3000 //0011 0000 0000 0000 + +const char * colors[8] = { + "black", "red", "green", "yellow", "blue", "magenta", "cyan", "white" +}; + +struct box_props +{ + bool opaque: 1; + unsigned int fill_color: 3; + unsigned int: 4; + bool show_border: 1; + unsigned int border_color: 3; + unsigned int border_style: 2; + unsigned int: 2; +}; + +union Views +{ + struct box_props st_view; + unsigned short us_view; +}; + +void show_settings(const struct box_props * pb); +void show_settings1 (unsigned short us); +char * itobs (int n, char * ps); + +int main (void) +{ + union Views box = {{true, YELLOW, true, GREEN, DASHED}}; + char bin_str[8 * sizeof (int) + 1]; + + printf("Address of st_view: %p\n", (void*)&box.st_view); + printf("Address of us_view: %p\n", (void*)&box.us_view); + + printf ("Orignal box settings: \n"); + show_settings (&box.st_view); + printf ("\nBox settings using unsigned int view: \n"); + show_settings1 (box.us_view); + + printf ("bits are %s\n", itobs (box.us_view, bin_str)); + box.us_view &= ~ FILL_MASK; + box.us_view |= (FILL_BLUE | FILL_GREEN); + box.us_view ^= OPAQUE; + box.us_view |= BORDER_RED; + box.us_view &= ~ STYLE_MASK; + box.us_view |= B_DOTTED; + printf ("\nModified box settings: \n"); + show_settings (&box.st_view); + printf ("\nBox settings using unsigned int view: \n"); + show_settings1 (box.us_view); + printf ("bits are %s\n", itobs (box.us_view, bin_str)); + + return 0; +} + +void show_settings(const struct box_props * pb) +{ + printf ("Box is %s. \n", (pb -> opaque == true) ? "opaque" : "transparent"); + printf ("The fill color is %s. \n", colors[pb -> fill_color]); + printf ("Border %s. \n", (pb -> show_border == true) ? "shown" : "not_shown"); + printf ("The border color is %s. \n", colors[pb -> border_color]); + printf ("The border style is "); + switch (pb -> border_style) + { + case SOLID: + printf ("solid. \n"); + break; + case DOTTED: + printf ("dotted. \n"); + break; + case DASHED: + printf ("dashed. \n"); + break; + default: + printf ("unknown type. \n"); + break; + } +} + +void show_settings1 (unsigned short us) +{ + printf ("Box is %s. \n", ((us & OPAQUE) == OPAQUE) ? "opaque" : "transparent"); + printf ("The fill color is %s. \n", colors[(us >> 1) & 07]); + printf ("Border %s. \n", ((us & BORDER) == BORDER) ? "shown" : "not_shown"); + printf ("The border style is "); + switch (us & STYLE_MASK) + { + case B_SOLID: + printf ("solid. \n"); + break; + case B_DOTTED: + printf ("dotted. \n"); + break; + case B_DASHED: + printf ("dashed. \n"); + break; + default: + printf ("unknown type. \n"); + break; + } + printf ("The border color is %s. \n", colors[(us >> 9) & 07]); +} + +char * itobs (int n, char * ps) +{ + int i; + const static int size = CHAR_BIT * sizeof (int); + + for (i = size - 1; i >= 0; i --, n >>= 1) + { + ps[i] = (01 & n) + '0'; + } + ps[size] = '\0'; + + return ps; +} + +//我怀疑目前使用的编译器里是union里的unsigned int和struct是分开处理的, 目前我的能力还没法证明这一点. +//Linux正常运行. +//传递指针可正常运行. diff --git a/15/15.6.exe b/15/15.6.exe new file mode 100644 index 0000000..6724719 Binary files /dev/null and b/15/15.6.exe differ diff --git a/15/15.7.c b/15/15.7.c new file mode 100644 index 0000000..c36cadc --- /dev/null +++ b/15/15.7.c @@ -0,0 +1,25 @@ +#include +#include + +int main (void) +{ + double dx; + char ca; + char cx; + double dz; + char cb; + char _Alignas (double) cz; + char alignas (double) ch; + + printf ("char alignment: %zd\n", _Alignof (char)); + printf ("char alignment: %zd\n", _Alignof (double)); + printf ("double: &dx: %p\n", &dx); + printf ("char: &ca: %p\n", &ca); + printf ("char: &cx: %p\n", &cx); + printf ("double: &dz: %p\n", &dz); + printf ("char: &cb: %p\n", &cb); + printf ("char _Alignas (double): &cz: %p\n", &cz); + printf ("char alignas (double) &ch: %p\n", &ch); + + return 0; +} diff --git a/15/15.8.c b/15/15.8.c new file mode 100644 index 0000000..62358e2 --- /dev/null +++ b/15/15.8.c @@ -0,0 +1,17 @@ +struct Thinkbell_input +{ + unsigned int soft_num: 2; + unsigned int: 1; + unsigned int cd_rom_num: 2; + unsigned int: 1; + unsigned int hard_num: 2; +}; + +struct Klinkerbell_input +{ + unsigned int hard_num: 2; + unsigned int: 1; + unsigned int cd_rom_num: 2; + unsigned int: 1; + unsigned int soft_num: 2; +}; diff --git a/15/15.9.c b/15/15.9.c new file mode 100644 index 0000000..4bec3fc --- /dev/null +++ b/15/15.9.c @@ -0,0 +1,22 @@ +#include "15.9_10.h" + +int main (void) +{ + char ch[33]; + bool eigen = 1; + + printf ("Please enter number in binary, this programme will converse it to decimal. \n"); + s_gets (ch, 32); + for (int i = 0; i < strlen (ch); i ++) + { + if ((ch[i] != '0') && (ch[i] != '1')) + { + eigen = 0; + break; + } + } + + (eigen == 1) ? printf ("The number is %d. \n", b2dcov (ch)) : printf ("Wrong input"); + + return 0; +} diff --git a/15/15.9_10.h b/15/15.9_10.h new file mode 100644 index 0000000..1621126 --- /dev/null +++ b/15/15.9_10.h @@ -0,0 +1,43 @@ +#include "../s_gets.h" +#include + +int b2dcov (const char * pbin) +{ + int ret = 0; + int count = 0; + + for (const char * temp = pbin; *temp != 0; temp ++, count ++) + { + (*temp == '0') ? (ret += 0): (ret += (1 << (strlen (pbin) - count - 1))); + } + + return ret; +} + +char * itobs (int n, char * ps) +{ + int i; + const static int size = CHAR_BIT * sizeof (int); + + for (i = size - 1; i >= 0; i --, n >>= 1) + { + ps[i] = (01 & n) + 48; + } + + ps[size] = '\0'; + + return ps; +} + +int bits_open (int n) +{ + const static int size = CHAR_BIT * sizeof (int); + int ret = 0; + + for (int i = size - 1; i > 0; i --, n >>= 1) + { + ((1 & n) == 1) ? (ret += 1) : (ret += 0); + } + + return ret; +} diff --git a/CMakeLists.txt b/CMakeLists.txt index cf14bb3..122b40f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -5,4 +5,4 @@ set(CMAKE_CXX_STANDARD 14) include_directories(9) -add_executable(C_primer 14/14.31.c) +add_executable(C_primer 15/15.14.c) diff --git a/cmake-build-debug/.cmake/api/v1/reply/codemodel-v2-2b51621c86c48be293dc.json b/cmake-build-debug/.cmake/api/v1/reply/codemodel-v2-efae8302b8edb885f702.json similarity index 93% rename from cmake-build-debug/.cmake/api/v1/reply/codemodel-v2-2b51621c86c48be293dc.json rename to cmake-build-debug/.cmake/api/v1/reply/codemodel-v2-efae8302b8edb885f702.json index be7c6ef..fb70212 100644 --- a/cmake-build-debug/.cmake/api/v1/reply/codemodel-v2-2b51621c86c48be293dc.json +++ b/cmake-build-debug/.cmake/api/v1/reply/codemodel-v2-efae8302b8edb885f702.json @@ -39,7 +39,7 @@ { "directoryIndex" : 0, "id" : "C_primer::@6890427a1f51a3e7e1df", - "jsonFile" : "target-C_primer-Debug-39f49e5eb076fc182ff1.json", + "jsonFile" : "target-C_primer-Debug-718324d3fc70ad4c7a54.json", "name" : "C_primer", "projectIndex" : 0 } diff --git a/cmake-build-debug/.cmake/api/v1/reply/index-2024-04-30T06-28-29-0206.json b/cmake-build-debug/.cmake/api/v1/reply/index-2024-05-08T02-29-44-0691.json similarity index 94% rename from cmake-build-debug/.cmake/api/v1/reply/index-2024-04-30T06-28-29-0206.json rename to cmake-build-debug/.cmake/api/v1/reply/index-2024-05-08T02-29-44-0691.json index 6b39e1a..9f0ff19 100644 --- a/cmake-build-debug/.cmake/api/v1/reply/index-2024-04-30T06-28-29-0206.json +++ b/cmake-build-debug/.cmake/api/v1/reply/index-2024-05-08T02-29-44-0691.json @@ -26,7 +26,7 @@ "objects" : [ { - "jsonFile" : "codemodel-v2-2b51621c86c48be293dc.json", + "jsonFile" : "codemodel-v2-efae8302b8edb885f702.json", "kind" : "codemodel", "version" : { @@ -86,7 +86,7 @@ }, "codemodel-v2" : { - "jsonFile" : "codemodel-v2-2b51621c86c48be293dc.json", + "jsonFile" : "codemodel-v2-efae8302b8edb885f702.json", "kind" : "codemodel", "version" : { diff --git a/cmake-build-debug/.cmake/api/v1/reply/target-C_primer-Debug-39f49e5eb076fc182ff1.json b/cmake-build-debug/.cmake/api/v1/reply/target-C_primer-Debug-718324d3fc70ad4c7a54.json similarity index 98% rename from cmake-build-debug/.cmake/api/v1/reply/target-C_primer-Debug-39f49e5eb076fc182ff1.json rename to cmake-build-debug/.cmake/api/v1/reply/target-C_primer-Debug-718324d3fc70ad4c7a54.json index 84a4c98..0f11f72 100644 --- a/cmake-build-debug/.cmake/api/v1/reply/target-C_primer-Debug-39f49e5eb076fc182ff1.json +++ b/cmake-build-debug/.cmake/api/v1/reply/target-C_primer-Debug-718324d3fc70ad4c7a54.json @@ -104,7 +104,7 @@ { "backtrace" : 1, "compileGroupIndex" : 0, - "path" : "14/14.31.c", + "path" : "15/15.14.c", "sourceGroupIndex" : 0 } ], diff --git a/cmake-build-debug/CMakeFiles/C_primer.dir/15/15.1.c.obj b/cmake-build-debug/CMakeFiles/C_primer.dir/15/15.1.c.obj new file mode 100644 index 0000000..ebd5110 Binary files /dev/null and b/cmake-build-debug/CMakeFiles/C_primer.dir/15/15.1.c.obj differ diff --git a/cmake-build-debug/CMakeFiles/C_primer.dir/15/15.1.c.obj.d b/cmake-build-debug/CMakeFiles/C_primer.dir/15/15.1.c.obj.d new file mode 100644 index 0000000..2af9c27 --- /dev/null +++ b/cmake-build-debug/CMakeFiles/C_primer.dir/15/15.1.c.obj.d @@ -0,0 +1,13 @@ +CMakeFiles/C_primer.dir/15/15.1.c.obj: \ + C:\Users\tgspo\Documents\GitHub\learn_c_primer.github.io\15\15.1.c \ + C:/Program\ Files/JetBrains/CLion\ 2023.3.4/bin/mingw/x86_64-w64-mingw32/include/stdio.h \ + C:/Program\ Files/JetBrains/CLion\ 2023.3.4/bin/mingw/x86_64-w64-mingw32/include/corecrt_stdio_config.h \ + C:/Program\ Files/JetBrains/CLion\ 2023.3.4/bin/mingw/x86_64-w64-mingw32/include/corecrt.h \ + C:/Program\ Files/JetBrains/CLion\ 2023.3.4/bin/mingw/x86_64-w64-mingw32/include/_mingw.h \ + C:/Program\ Files/JetBrains/CLion\ 2023.3.4/bin/mingw/x86_64-w64-mingw32/include/_mingw_mac.h \ + C:/Program\ Files/JetBrains/CLion\ 2023.3.4/bin/mingw/x86_64-w64-mingw32/include/_mingw_secapi.h \ + C:/Program\ Files/JetBrains/CLion\ 2023.3.4/bin/mingw/x86_64-w64-mingw32/include/vadefs.h \ + C:/Program\ Files/JetBrains/CLion\ 2023.3.4/bin/mingw/x86_64-w64-mingw32/include/sdks/_mingw_ddk.h \ + C:/Program\ Files/JetBrains/CLion\ 2023.3.4/bin/mingw/x86_64-w64-mingw32/include/_mingw_off_t.h \ + C:/Program\ Files/JetBrains/CLion\ 2023.3.4/bin/mingw/x86_64-w64-mingw32/include/swprintf.inl \ + C:/Program\ Files/JetBrains/CLion\ 2023.3.4/bin/mingw/x86_64-w64-mingw32/include/sec_api/stdio_s.h diff --git a/cmake-build-debug/CMakeFiles/C_primer.dir/15/15.11.c.obj b/cmake-build-debug/CMakeFiles/C_primer.dir/15/15.11.c.obj new file mode 100644 index 0000000..46bdf4d Binary files /dev/null and b/cmake-build-debug/CMakeFiles/C_primer.dir/15/15.11.c.obj differ diff --git a/cmake-build-debug/CMakeFiles/C_primer.dir/15/15.11.c.obj.d b/cmake-build-debug/CMakeFiles/C_primer.dir/15/15.11.c.obj.d new file mode 100644 index 0000000..6ba6bbd --- /dev/null +++ b/cmake-build-debug/CMakeFiles/C_primer.dir/15/15.11.c.obj.d @@ -0,0 +1,13 @@ +CMakeFiles/C_primer.dir/15/15.11.c.obj: \ + C:\Users\tgspo\Documents\GitHub\learn_c_primer.github.io\15\15.11.c \ + C:/Program\ Files/JetBrains/CLion\ 2023.3.4/bin/mingw/x86_64-w64-mingw32/include/stdio.h \ + C:/Program\ Files/JetBrains/CLion\ 2023.3.4/bin/mingw/x86_64-w64-mingw32/include/corecrt_stdio_config.h \ + C:/Program\ Files/JetBrains/CLion\ 2023.3.4/bin/mingw/x86_64-w64-mingw32/include/corecrt.h \ + C:/Program\ Files/JetBrains/CLion\ 2023.3.4/bin/mingw/x86_64-w64-mingw32/include/_mingw.h \ + C:/Program\ Files/JetBrains/CLion\ 2023.3.4/bin/mingw/x86_64-w64-mingw32/include/_mingw_mac.h \ + C:/Program\ Files/JetBrains/CLion\ 2023.3.4/bin/mingw/x86_64-w64-mingw32/include/_mingw_secapi.h \ + C:/Program\ Files/JetBrains/CLion\ 2023.3.4/bin/mingw/x86_64-w64-mingw32/include/vadefs.h \ + C:/Program\ Files/JetBrains/CLion\ 2023.3.4/bin/mingw/x86_64-w64-mingw32/include/sdks/_mingw_ddk.h \ + C:/Program\ Files/JetBrains/CLion\ 2023.3.4/bin/mingw/x86_64-w64-mingw32/include/_mingw_off_t.h \ + C:/Program\ Files/JetBrains/CLion\ 2023.3.4/bin/mingw/x86_64-w64-mingw32/include/swprintf.inl \ + C:/Program\ Files/JetBrains/CLion\ 2023.3.4/bin/mingw/x86_64-w64-mingw32/include/sec_api/stdio_s.h diff --git a/cmake-build-debug/CMakeFiles/C_primer.dir/15/15.12.c.obj b/cmake-build-debug/CMakeFiles/C_primer.dir/15/15.12.c.obj new file mode 100644 index 0000000..eb1f9a4 Binary files /dev/null and b/cmake-build-debug/CMakeFiles/C_primer.dir/15/15.12.c.obj differ diff --git a/cmake-build-debug/CMakeFiles/C_primer.dir/15/15.12.c.obj.d b/cmake-build-debug/CMakeFiles/C_primer.dir/15/15.12.c.obj.d new file mode 100644 index 0000000..7796a9c --- /dev/null +++ b/cmake-build-debug/CMakeFiles/C_primer.dir/15/15.12.c.obj.d @@ -0,0 +1,13 @@ +CMakeFiles/C_primer.dir/15/15.12.c.obj: \ + C:\Users\tgspo\Documents\GitHub\learn_c_primer.github.io\15\15.12.c \ + C:/Program\ Files/JetBrains/CLion\ 2023.3.4/bin/mingw/x86_64-w64-mingw32/include/stdio.h \ + C:/Program\ Files/JetBrains/CLion\ 2023.3.4/bin/mingw/x86_64-w64-mingw32/include/corecrt_stdio_config.h \ + C:/Program\ Files/JetBrains/CLion\ 2023.3.4/bin/mingw/x86_64-w64-mingw32/include/corecrt.h \ + C:/Program\ Files/JetBrains/CLion\ 2023.3.4/bin/mingw/x86_64-w64-mingw32/include/_mingw.h \ + C:/Program\ Files/JetBrains/CLion\ 2023.3.4/bin/mingw/x86_64-w64-mingw32/include/_mingw_mac.h \ + C:/Program\ Files/JetBrains/CLion\ 2023.3.4/bin/mingw/x86_64-w64-mingw32/include/_mingw_secapi.h \ + C:/Program\ Files/JetBrains/CLion\ 2023.3.4/bin/mingw/x86_64-w64-mingw32/include/vadefs.h \ + C:/Program\ Files/JetBrains/CLion\ 2023.3.4/bin/mingw/x86_64-w64-mingw32/include/sdks/_mingw_ddk.h \ + C:/Program\ Files/JetBrains/CLion\ 2023.3.4/bin/mingw/x86_64-w64-mingw32/include/_mingw_off_t.h \ + C:/Program\ Files/JetBrains/CLion\ 2023.3.4/bin/mingw/x86_64-w64-mingw32/include/swprintf.inl \ + C:/Program\ Files/JetBrains/CLion\ 2023.3.4/bin/mingw/x86_64-w64-mingw32/include/sec_api/stdio_s.h diff --git a/cmake-build-debug/CMakeFiles/C_primer.dir/15/15.13.c.obj b/cmake-build-debug/CMakeFiles/C_primer.dir/15/15.13.c.obj new file mode 100644 index 0000000..489adf0 Binary files /dev/null and b/cmake-build-debug/CMakeFiles/C_primer.dir/15/15.13.c.obj differ diff --git a/cmake-build-debug/CMakeFiles/C_primer.dir/15/15.13.c.obj.d b/cmake-build-debug/CMakeFiles/C_primer.dir/15/15.13.c.obj.d new file mode 100644 index 0000000..6efc226 --- /dev/null +++ b/cmake-build-debug/CMakeFiles/C_primer.dir/15/15.13.c.obj.d @@ -0,0 +1,24 @@ +CMakeFiles/C_primer.dir/15/15.13.c.obj: \ + C:\Users\tgspo\Documents\GitHub\learn_c_primer.github.io\15\15.13.c \ + C:\Users\tgspo\Documents\GitHub\learn_c_primer.github.io\15\15.13_14.h \ + C:/Program\ Files/JetBrains/CLion\ 2023.3.4/bin/mingw/x86_64-w64-mingw32/include/stdio.h \ + C:/Program\ Files/JetBrains/CLion\ 2023.3.4/bin/mingw/x86_64-w64-mingw32/include/corecrt_stdio_config.h \ + C:/Program\ Files/JetBrains/CLion\ 2023.3.4/bin/mingw/x86_64-w64-mingw32/include/corecrt.h \ + C:/Program\ Files/JetBrains/CLion\ 2023.3.4/bin/mingw/x86_64-w64-mingw32/include/_mingw.h \ + C:/Program\ Files/JetBrains/CLion\ 2023.3.4/bin/mingw/x86_64-w64-mingw32/include/_mingw_mac.h \ + C:/Program\ Files/JetBrains/CLion\ 2023.3.4/bin/mingw/x86_64-w64-mingw32/include/_mingw_secapi.h \ + C:/Program\ Files/JetBrains/CLion\ 2023.3.4/bin/mingw/x86_64-w64-mingw32/include/vadefs.h \ + C:/Program\ Files/JetBrains/CLion\ 2023.3.4/bin/mingw/x86_64-w64-mingw32/include/sdks/_mingw_ddk.h \ + C:/Program\ Files/JetBrains/CLion\ 2023.3.4/bin/mingw/x86_64-w64-mingw32/include/_mingw_off_t.h \ + C:/Program\ Files/JetBrains/CLion\ 2023.3.4/bin/mingw/x86_64-w64-mingw32/include/swprintf.inl \ + C:/Program\ Files/JetBrains/CLion\ 2023.3.4/bin/mingw/x86_64-w64-mingw32/include/sec_api/stdio_s.h \ + C:/Program\ Files/JetBrains/CLion\ 2023.3.4/bin/mingw/x86_64-w64-mingw32/include/stdlib.h \ + C:/Program\ Files/JetBrains/CLion\ 2023.3.4/bin/mingw/x86_64-w64-mingw32/include/corecrt_wstdlib.h \ + C:/Program\ Files/JetBrains/CLion\ 2023.3.4/bin/mingw/lib/gcc/x86_64-w64-mingw32/13.1.0/include/limits.h \ + C:/Program\ Files/JetBrains/CLion\ 2023.3.4/bin/mingw/lib/gcc/x86_64-w64-mingw32/13.1.0/include/syslimits.h \ + C:/Program\ Files/JetBrains/CLion\ 2023.3.4/bin/mingw/x86_64-w64-mingw32/include/limits.h \ + C:/Program\ Files/JetBrains/CLion\ 2023.3.4/bin/mingw/x86_64-w64-mingw32/include/crtdefs.h \ + C:/Program\ Files/JetBrains/CLion\ 2023.3.4/bin/mingw/x86_64-w64-mingw32/include/sec_api/stdlib_s.h \ + C:/Program\ Files/JetBrains/CLion\ 2023.3.4/bin/mingw/x86_64-w64-mingw32/include/malloc.h \ + C:/Program\ Files/JetBrains/CLion\ 2023.3.4/bin/mingw/lib/gcc/x86_64-w64-mingw32/13.1.0/include/mm_malloc.h \ + C:/Program\ Files/JetBrains/CLion\ 2023.3.4/bin/mingw/x86_64-w64-mingw32/include/errno.h diff --git a/cmake-build-debug/CMakeFiles/C_primer.dir/15/15.14.c.obj b/cmake-build-debug/CMakeFiles/C_primer.dir/15/15.14.c.obj new file mode 100644 index 0000000..c6c1ba6 Binary files /dev/null and b/cmake-build-debug/CMakeFiles/C_primer.dir/15/15.14.c.obj differ diff --git a/cmake-build-debug/CMakeFiles/C_primer.dir/15/15.14.c.obj.d b/cmake-build-debug/CMakeFiles/C_primer.dir/15/15.14.c.obj.d new file mode 100644 index 0000000..546e88d --- /dev/null +++ b/cmake-build-debug/CMakeFiles/C_primer.dir/15/15.14.c.obj.d @@ -0,0 +1,24 @@ +CMakeFiles/C_primer.dir/15/15.14.c.obj: \ + C:\Users\tgspo\Documents\GitHub\learn_c_primer.github.io\15\15.14.c \ + C:\Users\tgspo\Documents\GitHub\learn_c_primer.github.io\15\15.13_14.h \ + C:/Program\ Files/JetBrains/CLion\ 2023.3.4/bin/mingw/x86_64-w64-mingw32/include/stdio.h \ + C:/Program\ Files/JetBrains/CLion\ 2023.3.4/bin/mingw/x86_64-w64-mingw32/include/corecrt_stdio_config.h \ + C:/Program\ Files/JetBrains/CLion\ 2023.3.4/bin/mingw/x86_64-w64-mingw32/include/corecrt.h \ + C:/Program\ Files/JetBrains/CLion\ 2023.3.4/bin/mingw/x86_64-w64-mingw32/include/_mingw.h \ + C:/Program\ Files/JetBrains/CLion\ 2023.3.4/bin/mingw/x86_64-w64-mingw32/include/_mingw_mac.h \ + C:/Program\ Files/JetBrains/CLion\ 2023.3.4/bin/mingw/x86_64-w64-mingw32/include/_mingw_secapi.h \ + C:/Program\ Files/JetBrains/CLion\ 2023.3.4/bin/mingw/x86_64-w64-mingw32/include/vadefs.h \ + C:/Program\ Files/JetBrains/CLion\ 2023.3.4/bin/mingw/x86_64-w64-mingw32/include/sdks/_mingw_ddk.h \ + C:/Program\ Files/JetBrains/CLion\ 2023.3.4/bin/mingw/x86_64-w64-mingw32/include/_mingw_off_t.h \ + C:/Program\ Files/JetBrains/CLion\ 2023.3.4/bin/mingw/x86_64-w64-mingw32/include/swprintf.inl \ + C:/Program\ Files/JetBrains/CLion\ 2023.3.4/bin/mingw/x86_64-w64-mingw32/include/sec_api/stdio_s.h \ + C:/Program\ Files/JetBrains/CLion\ 2023.3.4/bin/mingw/x86_64-w64-mingw32/include/stdlib.h \ + C:/Program\ Files/JetBrains/CLion\ 2023.3.4/bin/mingw/x86_64-w64-mingw32/include/corecrt_wstdlib.h \ + C:/Program\ Files/JetBrains/CLion\ 2023.3.4/bin/mingw/lib/gcc/x86_64-w64-mingw32/13.1.0/include/limits.h \ + C:/Program\ Files/JetBrains/CLion\ 2023.3.4/bin/mingw/lib/gcc/x86_64-w64-mingw32/13.1.0/include/syslimits.h \ + C:/Program\ Files/JetBrains/CLion\ 2023.3.4/bin/mingw/x86_64-w64-mingw32/include/limits.h \ + C:/Program\ Files/JetBrains/CLion\ 2023.3.4/bin/mingw/x86_64-w64-mingw32/include/crtdefs.h \ + C:/Program\ Files/JetBrains/CLion\ 2023.3.4/bin/mingw/x86_64-w64-mingw32/include/sec_api/stdlib_s.h \ + C:/Program\ Files/JetBrains/CLion\ 2023.3.4/bin/mingw/x86_64-w64-mingw32/include/malloc.h \ + C:/Program\ Files/JetBrains/CLion\ 2023.3.4/bin/mingw/lib/gcc/x86_64-w64-mingw32/13.1.0/include/mm_malloc.h \ + C:/Program\ Files/JetBrains/CLion\ 2023.3.4/bin/mingw/x86_64-w64-mingw32/include/errno.h diff --git a/cmake-build-debug/CMakeFiles/C_primer.dir/15/15.2.c.obj b/cmake-build-debug/CMakeFiles/C_primer.dir/15/15.2.c.obj new file mode 100644 index 0000000..be72314 Binary files /dev/null and b/cmake-build-debug/CMakeFiles/C_primer.dir/15/15.2.c.obj differ diff --git a/cmake-build-debug/CMakeFiles/C_primer.dir/15/15.2.c.obj.d b/cmake-build-debug/CMakeFiles/C_primer.dir/15/15.2.c.obj.d new file mode 100644 index 0000000..6055760 --- /dev/null +++ b/cmake-build-debug/CMakeFiles/C_primer.dir/15/15.2.c.obj.d @@ -0,0 +1,13 @@ +CMakeFiles/C_primer.dir/15/15.2.c.obj: \ + C:\Users\tgspo\Documents\GitHub\learn_c_primer.github.io\15\15.2.c \ + C:/Program\ Files/JetBrains/CLion\ 2023.3.4/bin/mingw/x86_64-w64-mingw32/include/stdio.h \ + C:/Program\ Files/JetBrains/CLion\ 2023.3.4/bin/mingw/x86_64-w64-mingw32/include/corecrt_stdio_config.h \ + C:/Program\ Files/JetBrains/CLion\ 2023.3.4/bin/mingw/x86_64-w64-mingw32/include/corecrt.h \ + C:/Program\ Files/JetBrains/CLion\ 2023.3.4/bin/mingw/x86_64-w64-mingw32/include/_mingw.h \ + C:/Program\ Files/JetBrains/CLion\ 2023.3.4/bin/mingw/x86_64-w64-mingw32/include/_mingw_mac.h \ + C:/Program\ Files/JetBrains/CLion\ 2023.3.4/bin/mingw/x86_64-w64-mingw32/include/_mingw_secapi.h \ + C:/Program\ Files/JetBrains/CLion\ 2023.3.4/bin/mingw/x86_64-w64-mingw32/include/vadefs.h \ + C:/Program\ Files/JetBrains/CLion\ 2023.3.4/bin/mingw/x86_64-w64-mingw32/include/sdks/_mingw_ddk.h \ + C:/Program\ Files/JetBrains/CLion\ 2023.3.4/bin/mingw/x86_64-w64-mingw32/include/_mingw_off_t.h \ + C:/Program\ Files/JetBrains/CLion\ 2023.3.4/bin/mingw/x86_64-w64-mingw32/include/swprintf.inl \ + C:/Program\ Files/JetBrains/CLion\ 2023.3.4/bin/mingw/x86_64-w64-mingw32/include/sec_api/stdio_s.h diff --git a/cmake-build-debug/CMakeFiles/C_primer.dir/15/15.3.c.obj b/cmake-build-debug/CMakeFiles/C_primer.dir/15/15.3.c.obj new file mode 100644 index 0000000..06adaa1 Binary files /dev/null and b/cmake-build-debug/CMakeFiles/C_primer.dir/15/15.3.c.obj differ diff --git a/cmake-build-debug/CMakeFiles/C_primer.dir/15/15.3.c.obj.d b/cmake-build-debug/CMakeFiles/C_primer.dir/15/15.3.c.obj.d new file mode 100644 index 0000000..1921e6d --- /dev/null +++ b/cmake-build-debug/CMakeFiles/C_primer.dir/15/15.3.c.obj.d @@ -0,0 +1,17 @@ +CMakeFiles/C_primer.dir/15/15.3.c.obj: \ + C:\Users\tgspo\Documents\GitHub\learn_c_primer.github.io\15\15.3.c \ + C:/Program\ Files/JetBrains/CLion\ 2023.3.4/bin/mingw/x86_64-w64-mingw32/include/stdio.h \ + C:/Program\ Files/JetBrains/CLion\ 2023.3.4/bin/mingw/x86_64-w64-mingw32/include/corecrt_stdio_config.h \ + C:/Program\ Files/JetBrains/CLion\ 2023.3.4/bin/mingw/x86_64-w64-mingw32/include/corecrt.h \ + C:/Program\ Files/JetBrains/CLion\ 2023.3.4/bin/mingw/x86_64-w64-mingw32/include/_mingw.h \ + C:/Program\ Files/JetBrains/CLion\ 2023.3.4/bin/mingw/x86_64-w64-mingw32/include/_mingw_mac.h \ + C:/Program\ Files/JetBrains/CLion\ 2023.3.4/bin/mingw/x86_64-w64-mingw32/include/_mingw_secapi.h \ + C:/Program\ Files/JetBrains/CLion\ 2023.3.4/bin/mingw/x86_64-w64-mingw32/include/vadefs.h \ + C:/Program\ Files/JetBrains/CLion\ 2023.3.4/bin/mingw/x86_64-w64-mingw32/include/sdks/_mingw_ddk.h \ + C:/Program\ Files/JetBrains/CLion\ 2023.3.4/bin/mingw/x86_64-w64-mingw32/include/_mingw_off_t.h \ + C:/Program\ Files/JetBrains/CLion\ 2023.3.4/bin/mingw/x86_64-w64-mingw32/include/swprintf.inl \ + C:/Program\ Files/JetBrains/CLion\ 2023.3.4/bin/mingw/x86_64-w64-mingw32/include/sec_api/stdio_s.h \ + C:/Program\ Files/JetBrains/CLion\ 2023.3.4/bin/mingw/lib/gcc/x86_64-w64-mingw32/13.1.0/include/limits.h \ + C:/Program\ Files/JetBrains/CLion\ 2023.3.4/bin/mingw/lib/gcc/x86_64-w64-mingw32/13.1.0/include/syslimits.h \ + C:/Program\ Files/JetBrains/CLion\ 2023.3.4/bin/mingw/x86_64-w64-mingw32/include/limits.h \ + C:/Program\ Files/JetBrains/CLion\ 2023.3.4/bin/mingw/x86_64-w64-mingw32/include/crtdefs.h diff --git a/cmake-build-debug/CMakeFiles/C_primer.dir/15/15.4.c.obj b/cmake-build-debug/CMakeFiles/C_primer.dir/15/15.4.c.obj new file mode 100644 index 0000000..9674180 Binary files /dev/null and b/cmake-build-debug/CMakeFiles/C_primer.dir/15/15.4.c.obj differ diff --git a/cmake-build-debug/CMakeFiles/C_primer.dir/15/15.4.c.obj.d b/cmake-build-debug/CMakeFiles/C_primer.dir/15/15.4.c.obj.d new file mode 100644 index 0000000..a50be34 --- /dev/null +++ b/cmake-build-debug/CMakeFiles/C_primer.dir/15/15.4.c.obj.d @@ -0,0 +1,17 @@ +CMakeFiles/C_primer.dir/15/15.4.c.obj: \ + C:\Users\tgspo\Documents\GitHub\learn_c_primer.github.io\15\15.4.c \ + C:/Program\ Files/JetBrains/CLion\ 2023.3.4/bin/mingw/x86_64-w64-mingw32/include/stdio.h \ + C:/Program\ Files/JetBrains/CLion\ 2023.3.4/bin/mingw/x86_64-w64-mingw32/include/corecrt_stdio_config.h \ + C:/Program\ Files/JetBrains/CLion\ 2023.3.4/bin/mingw/x86_64-w64-mingw32/include/corecrt.h \ + C:/Program\ Files/JetBrains/CLion\ 2023.3.4/bin/mingw/x86_64-w64-mingw32/include/_mingw.h \ + C:/Program\ Files/JetBrains/CLion\ 2023.3.4/bin/mingw/x86_64-w64-mingw32/include/_mingw_mac.h \ + C:/Program\ Files/JetBrains/CLion\ 2023.3.4/bin/mingw/x86_64-w64-mingw32/include/_mingw_secapi.h \ + C:/Program\ Files/JetBrains/CLion\ 2023.3.4/bin/mingw/x86_64-w64-mingw32/include/vadefs.h \ + C:/Program\ Files/JetBrains/CLion\ 2023.3.4/bin/mingw/x86_64-w64-mingw32/include/sdks/_mingw_ddk.h \ + C:/Program\ Files/JetBrains/CLion\ 2023.3.4/bin/mingw/x86_64-w64-mingw32/include/_mingw_off_t.h \ + C:/Program\ Files/JetBrains/CLion\ 2023.3.4/bin/mingw/x86_64-w64-mingw32/include/swprintf.inl \ + C:/Program\ Files/JetBrains/CLion\ 2023.3.4/bin/mingw/x86_64-w64-mingw32/include/sec_api/stdio_s.h \ + C:/Program\ Files/JetBrains/CLion\ 2023.3.4/bin/mingw/lib/gcc/x86_64-w64-mingw32/13.1.0/include/limits.h \ + C:/Program\ Files/JetBrains/CLion\ 2023.3.4/bin/mingw/lib/gcc/x86_64-w64-mingw32/13.1.0/include/syslimits.h \ + C:/Program\ Files/JetBrains/CLion\ 2023.3.4/bin/mingw/x86_64-w64-mingw32/include/limits.h \ + C:/Program\ Files/JetBrains/CLion\ 2023.3.4/bin/mingw/x86_64-w64-mingw32/include/crtdefs.h diff --git a/cmake-build-debug/CMakeFiles/C_primer.dir/15/15.5.c.obj b/cmake-build-debug/CMakeFiles/C_primer.dir/15/15.5.c.obj new file mode 100644 index 0000000..55f6b4a Binary files /dev/null and b/cmake-build-debug/CMakeFiles/C_primer.dir/15/15.5.c.obj differ diff --git a/cmake-build-debug/CMakeFiles/C_primer.dir/15/15.5.c.obj.d b/cmake-build-debug/CMakeFiles/C_primer.dir/15/15.5.c.obj.d new file mode 100644 index 0000000..860456c --- /dev/null +++ b/cmake-build-debug/CMakeFiles/C_primer.dir/15/15.5.c.obj.d @@ -0,0 +1,14 @@ +CMakeFiles/C_primer.dir/15/15.5.c.obj: \ + C:\Users\tgspo\Documents\GitHub\learn_c_primer.github.io\15\15.5.c \ + C:/Program\ Files/JetBrains/CLion\ 2023.3.4/bin/mingw/x86_64-w64-mingw32/include/stdio.h \ + C:/Program\ Files/JetBrains/CLion\ 2023.3.4/bin/mingw/x86_64-w64-mingw32/include/corecrt_stdio_config.h \ + C:/Program\ Files/JetBrains/CLion\ 2023.3.4/bin/mingw/x86_64-w64-mingw32/include/corecrt.h \ + C:/Program\ Files/JetBrains/CLion\ 2023.3.4/bin/mingw/x86_64-w64-mingw32/include/_mingw.h \ + C:/Program\ Files/JetBrains/CLion\ 2023.3.4/bin/mingw/x86_64-w64-mingw32/include/_mingw_mac.h \ + C:/Program\ Files/JetBrains/CLion\ 2023.3.4/bin/mingw/x86_64-w64-mingw32/include/_mingw_secapi.h \ + C:/Program\ Files/JetBrains/CLion\ 2023.3.4/bin/mingw/x86_64-w64-mingw32/include/vadefs.h \ + C:/Program\ Files/JetBrains/CLion\ 2023.3.4/bin/mingw/x86_64-w64-mingw32/include/sdks/_mingw_ddk.h \ + C:/Program\ Files/JetBrains/CLion\ 2023.3.4/bin/mingw/x86_64-w64-mingw32/include/_mingw_off_t.h \ + C:/Program\ Files/JetBrains/CLion\ 2023.3.4/bin/mingw/x86_64-w64-mingw32/include/swprintf.inl \ + C:/Program\ Files/JetBrains/CLion\ 2023.3.4/bin/mingw/x86_64-w64-mingw32/include/sec_api/stdio_s.h \ + C:/Program\ Files/JetBrains/CLion\ 2023.3.4/bin/mingw/lib/gcc/x86_64-w64-mingw32/13.1.0/include/stdbool.h diff --git a/cmake-build-debug/CMakeFiles/C_primer.dir/15/15.6.c.obj b/cmake-build-debug/CMakeFiles/C_primer.dir/15/15.6.c.obj new file mode 100644 index 0000000..a9582df Binary files /dev/null and b/cmake-build-debug/CMakeFiles/C_primer.dir/15/15.6.c.obj differ diff --git a/cmake-build-debug/CMakeFiles/C_primer.dir/15/15.6.c.obj.d b/cmake-build-debug/CMakeFiles/C_primer.dir/15/15.6.c.obj.d new file mode 100644 index 0000000..d083283 --- /dev/null +++ b/cmake-build-debug/CMakeFiles/C_primer.dir/15/15.6.c.obj.d @@ -0,0 +1,18 @@ +CMakeFiles/C_primer.dir/15/15.6.c.obj: \ + C:\Users\tgspo\Documents\GitHub\learn_c_primer.github.io\15\15.6.c \ + C:/Program\ Files/JetBrains/CLion\ 2023.3.4/bin/mingw/x86_64-w64-mingw32/include/stdio.h \ + C:/Program\ Files/JetBrains/CLion\ 2023.3.4/bin/mingw/x86_64-w64-mingw32/include/corecrt_stdio_config.h \ + C:/Program\ Files/JetBrains/CLion\ 2023.3.4/bin/mingw/x86_64-w64-mingw32/include/corecrt.h \ + C:/Program\ Files/JetBrains/CLion\ 2023.3.4/bin/mingw/x86_64-w64-mingw32/include/_mingw.h \ + C:/Program\ Files/JetBrains/CLion\ 2023.3.4/bin/mingw/x86_64-w64-mingw32/include/_mingw_mac.h \ + C:/Program\ Files/JetBrains/CLion\ 2023.3.4/bin/mingw/x86_64-w64-mingw32/include/_mingw_secapi.h \ + C:/Program\ Files/JetBrains/CLion\ 2023.3.4/bin/mingw/x86_64-w64-mingw32/include/vadefs.h \ + C:/Program\ Files/JetBrains/CLion\ 2023.3.4/bin/mingw/x86_64-w64-mingw32/include/sdks/_mingw_ddk.h \ + C:/Program\ Files/JetBrains/CLion\ 2023.3.4/bin/mingw/x86_64-w64-mingw32/include/_mingw_off_t.h \ + C:/Program\ Files/JetBrains/CLion\ 2023.3.4/bin/mingw/x86_64-w64-mingw32/include/swprintf.inl \ + C:/Program\ Files/JetBrains/CLion\ 2023.3.4/bin/mingw/x86_64-w64-mingw32/include/sec_api/stdio_s.h \ + C:/Program\ Files/JetBrains/CLion\ 2023.3.4/bin/mingw/lib/gcc/x86_64-w64-mingw32/13.1.0/include/stdbool.h \ + C:/Program\ Files/JetBrains/CLion\ 2023.3.4/bin/mingw/lib/gcc/x86_64-w64-mingw32/13.1.0/include/limits.h \ + C:/Program\ Files/JetBrains/CLion\ 2023.3.4/bin/mingw/lib/gcc/x86_64-w64-mingw32/13.1.0/include/syslimits.h \ + C:/Program\ Files/JetBrains/CLion\ 2023.3.4/bin/mingw/x86_64-w64-mingw32/include/limits.h \ + C:/Program\ Files/JetBrains/CLion\ 2023.3.4/bin/mingw/x86_64-w64-mingw32/include/crtdefs.h diff --git a/cmake-build-debug/CMakeFiles/C_primer.dir/15/15.7.c.obj b/cmake-build-debug/CMakeFiles/C_primer.dir/15/15.7.c.obj new file mode 100644 index 0000000..e1dd141 Binary files /dev/null and b/cmake-build-debug/CMakeFiles/C_primer.dir/15/15.7.c.obj differ diff --git a/cmake-build-debug/CMakeFiles/C_primer.dir/15/15.7.c.obj.d b/cmake-build-debug/CMakeFiles/C_primer.dir/15/15.7.c.obj.d new file mode 100644 index 0000000..c8da070 --- /dev/null +++ b/cmake-build-debug/CMakeFiles/C_primer.dir/15/15.7.c.obj.d @@ -0,0 +1,14 @@ +CMakeFiles/C_primer.dir/15/15.7.c.obj: \ + C:\Users\tgspo\Documents\GitHub\learn_c_primer.github.io\15\15.7.c \ + C:/Program\ Files/JetBrains/CLion\ 2023.3.4/bin/mingw/x86_64-w64-mingw32/include/stdio.h \ + C:/Program\ Files/JetBrains/CLion\ 2023.3.4/bin/mingw/x86_64-w64-mingw32/include/corecrt_stdio_config.h \ + C:/Program\ Files/JetBrains/CLion\ 2023.3.4/bin/mingw/x86_64-w64-mingw32/include/corecrt.h \ + C:/Program\ Files/JetBrains/CLion\ 2023.3.4/bin/mingw/x86_64-w64-mingw32/include/_mingw.h \ + C:/Program\ Files/JetBrains/CLion\ 2023.3.4/bin/mingw/x86_64-w64-mingw32/include/_mingw_mac.h \ + C:/Program\ Files/JetBrains/CLion\ 2023.3.4/bin/mingw/x86_64-w64-mingw32/include/_mingw_secapi.h \ + C:/Program\ Files/JetBrains/CLion\ 2023.3.4/bin/mingw/x86_64-w64-mingw32/include/vadefs.h \ + C:/Program\ Files/JetBrains/CLion\ 2023.3.4/bin/mingw/x86_64-w64-mingw32/include/sdks/_mingw_ddk.h \ + C:/Program\ Files/JetBrains/CLion\ 2023.3.4/bin/mingw/x86_64-w64-mingw32/include/_mingw_off_t.h \ + C:/Program\ Files/JetBrains/CLion\ 2023.3.4/bin/mingw/x86_64-w64-mingw32/include/swprintf.inl \ + C:/Program\ Files/JetBrains/CLion\ 2023.3.4/bin/mingw/x86_64-w64-mingw32/include/sec_api/stdio_s.h \ + C:/Program\ Files/JetBrains/CLion\ 2023.3.4/bin/mingw/lib/gcc/x86_64-w64-mingw32/13.1.0/include/stdalign.h diff --git a/cmake-build-debug/CMakeFiles/C_primer.dir/15/15.9.c.obj b/cmake-build-debug/CMakeFiles/C_primer.dir/15/15.9.c.obj new file mode 100644 index 0000000..8cb20c9 Binary files /dev/null and b/cmake-build-debug/CMakeFiles/C_primer.dir/15/15.9.c.obj differ diff --git a/cmake-build-debug/CMakeFiles/C_primer.dir/15/15.9.c.obj.d b/cmake-build-debug/CMakeFiles/C_primer.dir/15/15.9.c.obj.d new file mode 100644 index 0000000..99ff7ff --- /dev/null +++ b/cmake-build-debug/CMakeFiles/C_primer.dir/15/15.9.c.obj.d @@ -0,0 +1,29 @@ +CMakeFiles/C_primer.dir/15/15.9.c.obj: \ + C:\Users\tgspo\Documents\GitHub\learn_c_primer.github.io\15\15.9.c \ + C:/Users/tgspo/Documents/GitHub/learn_c_primer.github.io/s_gets.h \ + C:/Program\ Files/JetBrains/CLion\ 2023.3.4/bin/mingw/x86_64-w64-mingw32/include/stdio.h \ + C:/Program\ Files/JetBrains/CLion\ 2023.3.4/bin/mingw/x86_64-w64-mingw32/include/corecrt_stdio_config.h \ + C:/Program\ Files/JetBrains/CLion\ 2023.3.4/bin/mingw/x86_64-w64-mingw32/include/corecrt.h \ + C:/Program\ Files/JetBrains/CLion\ 2023.3.4/bin/mingw/x86_64-w64-mingw32/include/_mingw.h \ + C:/Program\ Files/JetBrains/CLion\ 2023.3.4/bin/mingw/x86_64-w64-mingw32/include/_mingw_mac.h \ + C:/Program\ Files/JetBrains/CLion\ 2023.3.4/bin/mingw/x86_64-w64-mingw32/include/_mingw_secapi.h \ + C:/Program\ Files/JetBrains/CLion\ 2023.3.4/bin/mingw/x86_64-w64-mingw32/include/vadefs.h \ + C:/Program\ Files/JetBrains/CLion\ 2023.3.4/bin/mingw/x86_64-w64-mingw32/include/sdks/_mingw_ddk.h \ + C:/Program\ Files/JetBrains/CLion\ 2023.3.4/bin/mingw/x86_64-w64-mingw32/include/_mingw_off_t.h \ + C:/Program\ Files/JetBrains/CLion\ 2023.3.4/bin/mingw/x86_64-w64-mingw32/include/swprintf.inl \ + C:/Program\ Files/JetBrains/CLion\ 2023.3.4/bin/mingw/x86_64-w64-mingw32/include/sec_api/stdio_s.h \ + C:/Program\ Files/JetBrains/CLion\ 2023.3.4/bin/mingw/x86_64-w64-mingw32/include/string.h \ + C:/Program\ Files/JetBrains/CLion\ 2023.3.4/bin/mingw/x86_64-w64-mingw32/include/crtdefs.h \ + C:/Program\ Files/JetBrains/CLion\ 2023.3.4/bin/mingw/x86_64-w64-mingw32/include/sec_api/string_s.h \ + C:/Program\ Files/JetBrains/CLion\ 2023.3.4/bin/mingw/x86_64-w64-mingw32/include/ctype.h \ + C:/Program\ Files/JetBrains/CLion\ 2023.3.4/bin/mingw/x86_64-w64-mingw32/include/stdlib.h \ + C:/Program\ Files/JetBrains/CLion\ 2023.3.4/bin/mingw/x86_64-w64-mingw32/include/corecrt_wstdlib.h \ + C:/Program\ Files/JetBrains/CLion\ 2023.3.4/bin/mingw/lib/gcc/x86_64-w64-mingw32/13.1.0/include/limits.h \ + C:/Program\ Files/JetBrains/CLion\ 2023.3.4/bin/mingw/lib/gcc/x86_64-w64-mingw32/13.1.0/include/syslimits.h \ + C:/Program\ Files/JetBrains/CLion\ 2023.3.4/bin/mingw/x86_64-w64-mingw32/include/limits.h \ + C:/Program\ Files/JetBrains/CLion\ 2023.3.4/bin/mingw/x86_64-w64-mingw32/include/sec_api/stdlib_s.h \ + C:/Program\ Files/JetBrains/CLion\ 2023.3.4/bin/mingw/x86_64-w64-mingw32/include/malloc.h \ + C:/Program\ Files/JetBrains/CLion\ 2023.3.4/bin/mingw/lib/gcc/x86_64-w64-mingw32/13.1.0/include/mm_malloc.h \ + C:/Program\ Files/JetBrains/CLion\ 2023.3.4/bin/mingw/x86_64-w64-mingw32/include/errno.h \ + C:/Program\ Files/JetBrains/CLion\ 2023.3.4/bin/mingw/lib/gcc/x86_64-w64-mingw32/13.1.0/include/stdbool.h \ + C:\Users\tgspo\Documents\GitHub\learn_c_primer.github.io\15\15.9_10.h diff --git a/cmake-build-debug/CMakeFiles/C_primer.dir/DependInfo.cmake b/cmake-build-debug/CMakeFiles/C_primer.dir/DependInfo.cmake index 92952ec..e832a9a 100644 --- a/cmake-build-debug/CMakeFiles/C_primer.dir/DependInfo.cmake +++ b/cmake-build-debug/CMakeFiles/C_primer.dir/DependInfo.cmake @@ -8,7 +8,7 @@ set(CMAKE_DEPENDS_LANGUAGES # The set of dependency files which are needed: set(CMAKE_DEPENDS_DEPENDENCY_FILES - "C:/Users/tgspo/Documents/GitHub/learn_c_primer.github.io/14/14.31.c" "CMakeFiles/C_primer.dir/14/14.31.c.obj" "gcc" "CMakeFiles/C_primer.dir/14/14.31.c.obj.d" + "C:/Users/tgspo/Documents/GitHub/learn_c_primer.github.io/15/15.14.c" "CMakeFiles/C_primer.dir/15/15.14.c.obj" "gcc" "CMakeFiles/C_primer.dir/15/15.14.c.obj.d" ) # Targets to which this target links which contain Fortran sources. diff --git a/cmake-build-debug/CMakeFiles/C_primer.dir/build.make b/cmake-build-debug/CMakeFiles/C_primer.dir/build.make index c4f9746..26af5a6 100644 --- a/cmake-build-debug/CMakeFiles/C_primer.dir/build.make +++ b/cmake-build-debug/CMakeFiles/C_primer.dir/build.make @@ -68,29 +68,29 @@ include CMakeFiles/C_primer.dir/progress.make # Include the compile flags for this target's objects. include CMakeFiles/C_primer.dir/flags.make -CMakeFiles/C_primer.dir/14/14.31.c.obj: CMakeFiles/C_primer.dir/flags.make -CMakeFiles/C_primer.dir/14/14.31.c.obj: CMakeFiles/C_primer.dir/includes_C.rsp -CMakeFiles/C_primer.dir/14/14.31.c.obj: C:/Users/tgspo/Documents/GitHub/learn_c_primer.github.io/14/14.31.c -CMakeFiles/C_primer.dir/14/14.31.c.obj: CMakeFiles/C_primer.dir/compiler_depend.ts - @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --green --progress-dir=C:\Users\tgspo\Documents\GitHub\learn_c_primer.github.io\cmake-build-debug\CMakeFiles --progress-num=$(CMAKE_PROGRESS_1) "Building C object CMakeFiles/C_primer.dir/14/14.31.c.obj" - C:\PROGRA~1\JETBRA~1\CLION2~1.4\bin\mingw\bin\gcc.exe $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -MD -MT CMakeFiles/C_primer.dir/14/14.31.c.obj -MF CMakeFiles\C_primer.dir\14\14.31.c.obj.d -o CMakeFiles\C_primer.dir\14\14.31.c.obj -c C:\Users\tgspo\Documents\GitHub\learn_c_primer.github.io\14\14.31.c +CMakeFiles/C_primer.dir/15/15.14.c.obj: CMakeFiles/C_primer.dir/flags.make +CMakeFiles/C_primer.dir/15/15.14.c.obj: CMakeFiles/C_primer.dir/includes_C.rsp +CMakeFiles/C_primer.dir/15/15.14.c.obj: C:/Users/tgspo/Documents/GitHub/learn_c_primer.github.io/15/15.14.c +CMakeFiles/C_primer.dir/15/15.14.c.obj: CMakeFiles/C_primer.dir/compiler_depend.ts + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --green --progress-dir=C:\Users\tgspo\Documents\GitHub\learn_c_primer.github.io\cmake-build-debug\CMakeFiles --progress-num=$(CMAKE_PROGRESS_1) "Building C object CMakeFiles/C_primer.dir/15/15.14.c.obj" + C:\PROGRA~1\JETBRA~1\CLION2~1.4\bin\mingw\bin\gcc.exe $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -MD -MT CMakeFiles/C_primer.dir/15/15.14.c.obj -MF CMakeFiles\C_primer.dir\15\15.14.c.obj.d -o CMakeFiles\C_primer.dir\15\15.14.c.obj -c C:\Users\tgspo\Documents\GitHub\learn_c_primer.github.io\15\15.14.c -CMakeFiles/C_primer.dir/14/14.31.c.i: cmake_force - @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --green "Preprocessing C source to CMakeFiles/C_primer.dir/14/14.31.c.i" - C:\PROGRA~1\JETBRA~1\CLION2~1.4\bin\mingw\bin\gcc.exe $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -E C:\Users\tgspo\Documents\GitHub\learn_c_primer.github.io\14\14.31.c > CMakeFiles\C_primer.dir\14\14.31.c.i +CMakeFiles/C_primer.dir/15/15.14.c.i: cmake_force + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --green "Preprocessing C source to CMakeFiles/C_primer.dir/15/15.14.c.i" + C:\PROGRA~1\JETBRA~1\CLION2~1.4\bin\mingw\bin\gcc.exe $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -E C:\Users\tgspo\Documents\GitHub\learn_c_primer.github.io\15\15.14.c > CMakeFiles\C_primer.dir\15\15.14.c.i -CMakeFiles/C_primer.dir/14/14.31.c.s: cmake_force - @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --green "Compiling C source to assembly CMakeFiles/C_primer.dir/14/14.31.c.s" - C:\PROGRA~1\JETBRA~1\CLION2~1.4\bin\mingw\bin\gcc.exe $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -S C:\Users\tgspo\Documents\GitHub\learn_c_primer.github.io\14\14.31.c -o CMakeFiles\C_primer.dir\14\14.31.c.s +CMakeFiles/C_primer.dir/15/15.14.c.s: cmake_force + @$(CMAKE_COMMAND) -E cmake_echo_color "--switch=$(COLOR)" --green "Compiling C source to assembly CMakeFiles/C_primer.dir/15/15.14.c.s" + C:\PROGRA~1\JETBRA~1\CLION2~1.4\bin\mingw\bin\gcc.exe $(C_DEFINES) $(C_INCLUDES) $(C_FLAGS) -S C:\Users\tgspo\Documents\GitHub\learn_c_primer.github.io\15\15.14.c -o CMakeFiles\C_primer.dir\15\15.14.c.s # Object files for target C_primer C_primer_OBJECTS = \ -"CMakeFiles/C_primer.dir/14/14.31.c.obj" +"CMakeFiles/C_primer.dir/15/15.14.c.obj" # External object files for target C_primer C_primer_EXTERNAL_OBJECTS = -C_primer.exe: CMakeFiles/C_primer.dir/14/14.31.c.obj +C_primer.exe: CMakeFiles/C_primer.dir/15/15.14.c.obj C_primer.exe: CMakeFiles/C_primer.dir/build.make C_primer.exe: CMakeFiles/C_primer.dir/linkLibs.rsp C_primer.exe: CMakeFiles/C_primer.dir/objects1.rsp diff --git a/cmake-build-debug/CMakeFiles/C_primer.dir/cmake_clean.cmake b/cmake-build-debug/CMakeFiles/C_primer.dir/cmake_clean.cmake index f7ca67f..60b5180 100644 --- a/cmake-build-debug/CMakeFiles/C_primer.dir/cmake_clean.cmake +++ b/cmake-build-debug/CMakeFiles/C_primer.dir/cmake_clean.cmake @@ -1,6 +1,6 @@ file(REMOVE_RECURSE - "CMakeFiles/C_primer.dir/14/14.31.c.obj" - "CMakeFiles/C_primer.dir/14/14.31.c.obj.d" + "CMakeFiles/C_primer.dir/15/15.14.c.obj" + "CMakeFiles/C_primer.dir/15/15.14.c.obj.d" "C_primer.exe" "C_primer.exe.manifest" "C_primer.pdb" diff --git a/cmake-build-debug/CMakeFiles/C_primer.dir/compiler_depend.internal b/cmake-build-debug/CMakeFiles/C_primer.dir/compiler_depend.internal index f3e5f53..5e8e014 100644 --- a/cmake-build-debug/CMakeFiles/C_primer.dir/compiler_depend.internal +++ b/cmake-build-debug/CMakeFiles/C_primer.dir/compiler_depend.internal @@ -1,19 +1,28 @@ # CMAKE generated file: DO NOT EDIT! # Generated by "MinGW Makefiles" Generator, CMake Version 3.28 -CMakeFiles/C_primer.dir/14/14.31.c.obj - C:/Users/tgspo/Documents/GitHub/learn_c_primer.github.io/14/14.31.c +CMakeFiles/C_primer.dir/15/15.14.c.obj + C:/Users/tgspo/Documents/GitHub/learn_c_primer.github.io/15/15.14.c + C:/Program Files/JetBrains/CLion 2023.3.4/bin/mingw/lib/gcc/x86_64-w64-mingw32/13.1.0/include/limits.h + C:/Program Files/JetBrains/CLion 2023.3.4/bin/mingw/lib/gcc/x86_64-w64-mingw32/13.1.0/include/mm_malloc.h + C:/Program Files/JetBrains/CLion 2023.3.4/bin/mingw/lib/gcc/x86_64-w64-mingw32/13.1.0/include/syslimits.h C:/Program Files/JetBrains/CLion 2023.3.4/bin/mingw/x86_64-w64-mingw32/include/_mingw.h C:/Program Files/JetBrains/CLion 2023.3.4/bin/mingw/x86_64-w64-mingw32/include/_mingw_mac.h C:/Program Files/JetBrains/CLion 2023.3.4/bin/mingw/x86_64-w64-mingw32/include/_mingw_off_t.h C:/Program Files/JetBrains/CLion 2023.3.4/bin/mingw/x86_64-w64-mingw32/include/_mingw_secapi.h C:/Program Files/JetBrains/CLion 2023.3.4/bin/mingw/x86_64-w64-mingw32/include/corecrt.h C:/Program Files/JetBrains/CLion 2023.3.4/bin/mingw/x86_64-w64-mingw32/include/corecrt_stdio_config.h + C:/Program Files/JetBrains/CLion 2023.3.4/bin/mingw/x86_64-w64-mingw32/include/corecrt_wstdlib.h C:/Program Files/JetBrains/CLion 2023.3.4/bin/mingw/x86_64-w64-mingw32/include/crtdefs.h - C:/Program Files/JetBrains/CLion 2023.3.4/bin/mingw/x86_64-w64-mingw32/include/math.h + C:/Program Files/JetBrains/CLion 2023.3.4/bin/mingw/x86_64-w64-mingw32/include/errno.h + C:/Program Files/JetBrains/CLion 2023.3.4/bin/mingw/x86_64-w64-mingw32/include/limits.h + C:/Program Files/JetBrains/CLion 2023.3.4/bin/mingw/x86_64-w64-mingw32/include/malloc.h C:/Program Files/JetBrains/CLion 2023.3.4/bin/mingw/x86_64-w64-mingw32/include/sdks/_mingw_ddk.h C:/Program Files/JetBrains/CLion 2023.3.4/bin/mingw/x86_64-w64-mingw32/include/sec_api/stdio_s.h + C:/Program Files/JetBrains/CLion 2023.3.4/bin/mingw/x86_64-w64-mingw32/include/sec_api/stdlib_s.h C:/Program Files/JetBrains/CLion 2023.3.4/bin/mingw/x86_64-w64-mingw32/include/stdio.h + C:/Program Files/JetBrains/CLion 2023.3.4/bin/mingw/x86_64-w64-mingw32/include/stdlib.h C:/Program Files/JetBrains/CLion 2023.3.4/bin/mingw/x86_64-w64-mingw32/include/swprintf.inl C:/Program Files/JetBrains/CLion 2023.3.4/bin/mingw/x86_64-w64-mingw32/include/vadefs.h + C:/Users/tgspo/Documents/GitHub/learn_c_primer.github.io/15/15.13_14.h diff --git a/cmake-build-debug/CMakeFiles/C_primer.dir/compiler_depend.make b/cmake-build-debug/CMakeFiles/C_primer.dir/compiler_depend.make index 0648ac5..1e2dd04 100644 --- a/cmake-build-debug/CMakeFiles/C_primer.dir/compiler_depend.make +++ b/cmake-build-debug/CMakeFiles/C_primer.dir/compiler_depend.make @@ -1,25 +1,34 @@ # CMAKE generated file: DO NOT EDIT! # Generated by "MinGW Makefiles" Generator, CMake Version 3.28 -CMakeFiles/C_primer.dir/14/14.31.c.obj: C:/Users/tgspo/Documents/GitHub/learn_c_primer.github.io/14/14.31.c \ +CMakeFiles/C_primer.dir/15/15.14.c.obj: C:/Users/tgspo/Documents/GitHub/learn_c_primer.github.io/15/15.14.c \ + C:/Program\ Files/JetBrains/CLion\ 2023.3.4/bin/mingw/lib/gcc/x86_64-w64-mingw32/13.1.0/include/limits.h \ + C:/Program\ Files/JetBrains/CLion\ 2023.3.4/bin/mingw/lib/gcc/x86_64-w64-mingw32/13.1.0/include/mm_malloc.h \ + C:/Program\ Files/JetBrains/CLion\ 2023.3.4/bin/mingw/lib/gcc/x86_64-w64-mingw32/13.1.0/include/syslimits.h \ C:/Program\ Files/JetBrains/CLion\ 2023.3.4/bin/mingw/x86_64-w64-mingw32/include/_mingw.h \ C:/Program\ Files/JetBrains/CLion\ 2023.3.4/bin/mingw/x86_64-w64-mingw32/include/_mingw_mac.h \ C:/Program\ Files/JetBrains/CLion\ 2023.3.4/bin/mingw/x86_64-w64-mingw32/include/_mingw_off_t.h \ C:/Program\ Files/JetBrains/CLion\ 2023.3.4/bin/mingw/x86_64-w64-mingw32/include/_mingw_secapi.h \ C:/Program\ Files/JetBrains/CLion\ 2023.3.4/bin/mingw/x86_64-w64-mingw32/include/corecrt.h \ C:/Program\ Files/JetBrains/CLion\ 2023.3.4/bin/mingw/x86_64-w64-mingw32/include/corecrt_stdio_config.h \ + C:/Program\ Files/JetBrains/CLion\ 2023.3.4/bin/mingw/x86_64-w64-mingw32/include/corecrt_wstdlib.h \ C:/Program\ Files/JetBrains/CLion\ 2023.3.4/bin/mingw/x86_64-w64-mingw32/include/crtdefs.h \ - C:/Program\ Files/JetBrains/CLion\ 2023.3.4/bin/mingw/x86_64-w64-mingw32/include/math.h \ + C:/Program\ Files/JetBrains/CLion\ 2023.3.4/bin/mingw/x86_64-w64-mingw32/include/errno.h \ + C:/Program\ Files/JetBrains/CLion\ 2023.3.4/bin/mingw/x86_64-w64-mingw32/include/limits.h \ + C:/Program\ Files/JetBrains/CLion\ 2023.3.4/bin/mingw/x86_64-w64-mingw32/include/malloc.h \ C:/Program\ Files/JetBrains/CLion\ 2023.3.4/bin/mingw/x86_64-w64-mingw32/include/sdks/_mingw_ddk.h \ C:/Program\ Files/JetBrains/CLion\ 2023.3.4/bin/mingw/x86_64-w64-mingw32/include/sec_api/stdio_s.h \ + C:/Program\ Files/JetBrains/CLion\ 2023.3.4/bin/mingw/x86_64-w64-mingw32/include/sec_api/stdlib_s.h \ C:/Program\ Files/JetBrains/CLion\ 2023.3.4/bin/mingw/x86_64-w64-mingw32/include/stdio.h \ + C:/Program\ Files/JetBrains/CLion\ 2023.3.4/bin/mingw/x86_64-w64-mingw32/include/stdlib.h \ C:/Program\ Files/JetBrains/CLion\ 2023.3.4/bin/mingw/x86_64-w64-mingw32/include/swprintf.inl \ - C:/Program\ Files/JetBrains/CLion\ 2023.3.4/bin/mingw/x86_64-w64-mingw32/include/vadefs.h + C:/Program\ Files/JetBrains/CLion\ 2023.3.4/bin/mingw/x86_64-w64-mingw32/include/vadefs.h \ + C:/Users/tgspo/Documents/GitHub/learn_c_primer.github.io/15/15.13_14.h -C:/Program\ Files/JetBrains/CLion\ 2023.3.4/bin/mingw/x86_64-w64-mingw32/include/_mingw_mac.h: +C:/Program\ Files/JetBrains/CLion\ 2023.3.4/bin/mingw/lib/gcc/x86_64-w64-mingw32/13.1.0/include/limits.h: -C:/Users/tgspo/Documents/GitHub/learn_c_primer.github.io/14/14.31.c: +C:/Users/tgspo/Documents/GitHub/learn_c_primer.github.io/15/15.14.c: C:/Program\ Files/JetBrains/CLion\ 2023.3.4/bin/mingw/x86_64-w64-mingw32/include/sdks/_mingw_ddk.h: @@ -27,20 +36,38 @@ C:/Program\ Files/JetBrains/CLion\ 2023.3.4/bin/mingw/x86_64-w64-mingw32/include C:/Program\ Files/JetBrains/CLion\ 2023.3.4/bin/mingw/x86_64-w64-mingw32/include/_mingw.h: +C:/Program\ Files/JetBrains/CLion\ 2023.3.4/bin/mingw/lib/gcc/x86_64-w64-mingw32/13.1.0/include/mm_malloc.h: + +C:/Program\ Files/JetBrains/CLion\ 2023.3.4/bin/mingw/lib/gcc/x86_64-w64-mingw32/13.1.0/include/syslimits.h: + +C:/Program\ Files/JetBrains/CLion\ 2023.3.4/bin/mingw/x86_64-w64-mingw32/include/_mingw_mac.h: + +C:/Program\ Files/JetBrains/CLion\ 2023.3.4/bin/mingw/x86_64-w64-mingw32/include/stdlib.h: + +C:/Program\ Files/JetBrains/CLion\ 2023.3.4/bin/mingw/x86_64-w64-mingw32/include/corecrt_wstdlib.h: + C:/Program\ Files/JetBrains/CLion\ 2023.3.4/bin/mingw/x86_64-w64-mingw32/include/_mingw_off_t.h: C:/Program\ Files/JetBrains/CLion\ 2023.3.4/bin/mingw/x86_64-w64-mingw32/include/corecrt.h: +C:/Program\ Files/JetBrains/CLion\ 2023.3.4/bin/mingw/x86_64-w64-mingw32/include/corecrt_stdio_config.h: + C:/Program\ Files/JetBrains/CLion\ 2023.3.4/bin/mingw/x86_64-w64-mingw32/include/crtdefs.h: -C:/Program\ Files/JetBrains/CLion\ 2023.3.4/bin/mingw/x86_64-w64-mingw32/include/corecrt_stdio_config.h: +C:/Program\ Files/JetBrains/CLion\ 2023.3.4/bin/mingw/x86_64-w64-mingw32/include/errno.h: -C:/Program\ Files/JetBrains/CLion\ 2023.3.4/bin/mingw/x86_64-w64-mingw32/include/math.h: +C:/Program\ Files/JetBrains/CLion\ 2023.3.4/bin/mingw/x86_64-w64-mingw32/include/limits.h: + +C:/Program\ Files/JetBrains/CLion\ 2023.3.4/bin/mingw/x86_64-w64-mingw32/include/malloc.h: C:/Program\ Files/JetBrains/CLion\ 2023.3.4/bin/mingw/x86_64-w64-mingw32/include/sec_api/stdio_s.h: +C:/Program\ Files/JetBrains/CLion\ 2023.3.4/bin/mingw/x86_64-w64-mingw32/include/sec_api/stdlib_s.h: + C:/Program\ Files/JetBrains/CLion\ 2023.3.4/bin/mingw/x86_64-w64-mingw32/include/stdio.h: C:/Program\ Files/JetBrains/CLion\ 2023.3.4/bin/mingw/x86_64-w64-mingw32/include/swprintf.inl: C:/Program\ Files/JetBrains/CLion\ 2023.3.4/bin/mingw/x86_64-w64-mingw32/include/vadefs.h: + +C:/Users/tgspo/Documents/GitHub/learn_c_primer.github.io/15/15.13_14.h: diff --git a/cmake-build-debug/CMakeFiles/C_primer.dir/objects.a b/cmake-build-debug/CMakeFiles/C_primer.dir/objects.a index 728f12b..d01e0ff 100644 Binary files a/cmake-build-debug/CMakeFiles/C_primer.dir/objects.a and b/cmake-build-debug/CMakeFiles/C_primer.dir/objects.a differ diff --git a/cmake-build-debug/CMakeFiles/C_primer.dir/objects1.rsp b/cmake-build-debug/CMakeFiles/C_primer.dir/objects1.rsp index 855162c..c20f676 100644 --- a/cmake-build-debug/CMakeFiles/C_primer.dir/objects1.rsp +++ b/cmake-build-debug/CMakeFiles/C_primer.dir/objects1.rsp @@ -1 +1 @@ -CMakeFiles/C_primer.dir/14/14.31.c.obj +CMakeFiles/C_primer.dir/15/15.14.c.obj diff --git a/cmake-build-debug/CMakeFiles/clion-Debug-log.txt b/cmake-build-debug/CMakeFiles/clion-Debug-log.txt index 293f4bc..b4002ee 100644 --- a/cmake-build-debug/CMakeFiles/clion-Debug-log.txt +++ b/cmake-build-debug/CMakeFiles/clion-Debug-log.txt @@ -8,6 +8,6 @@ CMake Deprecation Warning: use the cmake-file-api(7) to view CMake-generated project build trees. --- Configuring done (0.4s) +-- Configuring done (0.3s) -- Generating done (0.0s) -- Build files have been written to: C:/Users/tgspo/Documents/GitHub/learn_c_primer.github.io/cmake-build-debug diff --git a/cmake-build-debug/C_primer.cbp b/cmake-build-debug/C_primer.cbp index e8c4bb0..6c2457e 100644 --- a/cmake-build-debug/C_primer.cbp +++ b/cmake-build-debug/C_primer.cbp @@ -84,7 +84,7 @@ - + diff --git a/cmake-build-debug/C_primer.exe b/cmake-build-debug/C_primer.exe index 9d8baf8..aa72065 100644 Binary files a/cmake-build-debug/C_primer.exe and b/cmake-build-debug/C_primer.exe differ diff --git a/cmake-build-debug/Makefile b/cmake-build-debug/Makefile index 8193870..dedb487 100644 --- a/cmake-build-debug/Makefile +++ b/cmake-build-debug/Makefile @@ -128,29 +128,29 @@ C_primer/fast: $(MAKE) $(MAKESILENT) -f CMakeFiles\C_primer.dir\build.make CMakeFiles/C_primer.dir/build .PHONY : C_primer/fast -14/14.31.obj: 14/14.31.c.obj -.PHONY : 14/14.31.obj +15/15.14.obj: 15/15.14.c.obj +.PHONY : 15/15.14.obj # target to build an object file -14/14.31.c.obj: - $(MAKE) $(MAKESILENT) -f CMakeFiles\C_primer.dir\build.make CMakeFiles/C_primer.dir/14/14.31.c.obj -.PHONY : 14/14.31.c.obj +15/15.14.c.obj: + $(MAKE) $(MAKESILENT) -f CMakeFiles\C_primer.dir\build.make CMakeFiles/C_primer.dir/15/15.14.c.obj +.PHONY : 15/15.14.c.obj -14/14.31.i: 14/14.31.c.i -.PHONY : 14/14.31.i +15/15.14.i: 15/15.14.c.i +.PHONY : 15/15.14.i # target to preprocess a source file -14/14.31.c.i: - $(MAKE) $(MAKESILENT) -f CMakeFiles\C_primer.dir\build.make CMakeFiles/C_primer.dir/14/14.31.c.i -.PHONY : 14/14.31.c.i +15/15.14.c.i: + $(MAKE) $(MAKESILENT) -f CMakeFiles\C_primer.dir\build.make CMakeFiles/C_primer.dir/15/15.14.c.i +.PHONY : 15/15.14.c.i -14/14.31.s: 14/14.31.c.s -.PHONY : 14/14.31.s +15/15.14.s: 15/15.14.c.s +.PHONY : 15/15.14.s # target to generate assembly for a file -14/14.31.c.s: - $(MAKE) $(MAKESILENT) -f CMakeFiles\C_primer.dir\build.make CMakeFiles/C_primer.dir/14/14.31.c.s -.PHONY : 14/14.31.c.s +15/15.14.c.s: + $(MAKE) $(MAKESILENT) -f CMakeFiles\C_primer.dir\build.make CMakeFiles/C_primer.dir/15/15.14.c.s +.PHONY : 15/15.14.c.s # Help Target help: @@ -161,9 +161,9 @@ help: @echo ... edit_cache @echo ... rebuild_cache @echo ... C_primer - @echo ... 14/14.31.obj - @echo ... 14/14.31.i - @echo ... 14/14.31.s + @echo ... 15/15.14.obj + @echo ... 15/15.14.i + @echo ... 15/15.14.s .PHONY : help diff --git a/cmake-build-debug/Testing/Temporary/LastTest.log b/cmake-build-debug/Testing/Temporary/LastTest.log index d08b552..ffe6cfb 100644 --- a/cmake-build-debug/Testing/Temporary/LastTest.log +++ b/cmake-build-debug/Testing/Temporary/LastTest.log @@ -1,3 +1,3 @@ -Start testing: Apr 30 14:31 �й���׼ʱ�� +Start testing: May 08 15:24 �й���׼ʱ�� ---------------------------------------------------------- -End testing: Apr 30 14:31 �й���׼ʱ�� +End testing: May 08 15:24 �й���׼ʱ�� diff --git a/myPow.h b/myPow.h index 9dd90ef..f0f0cae 100644 --- a/myPow.h +++ b/myPow.h @@ -19,7 +19,7 @@ double myPow(double x, long n) { y *= x; } - else; + x *= x; n /= 2; }