1304 questions
In this way, the Im a student should come out first and the input should come out I haven't used scanf many times, but it's hard to find even if I google it ㅠ
Hello! We've implemented the problem of using enumeration to implement a game of rock-paper-scissors between computers and people. The computer's position was expressed using a random function, and wh...
Picture control After receiving the m_pic in CRect form, click the mouse in the coordinates, update the coordinates of the m_pic during Mouse Move, and draw it again using RedrawWindow(); but it doesn...
int is_safe(int i,int j){ int k = 1; int num = i;i--;while (i = !0){ if (board[i][j] == 1) return 0; i--;}i = (num-1);while (i = !0 && j+k <= size){ if (board[i][j + k] == 1) return 0; k++;...
#include <stdio.h>#include <string.h>int main(void) { char pA[10] = seoul; char *pB = pA; *pB = busan; printf(%s, pB); printf(%s, pA);} After entering the code like this, the output value ...
void main(int argc, char** argv){ double *fv; int numOfVertex; int i; FILE *f; f = fopen(head_new.txt, r); // Open Stream fscanf(f, %d \n, &numOfVertex); // Read the number of vertices fv = (doubl...
double * ptr = 0x0010; declaredIf you output ptr+1 ptr+2 ptr+3 in printf, it will be 0x00180x00200x0028.I don't understand why ptr+2 is not 0x0026 but 0x0028 in ptr+3.Is it just because it's not a pro...
Use malloc() and free() when dynamically allocating memory in C language.One question is, how does the free function know the memory size dynamically allocated using malloc and solve the dynamic alloc...
An empty function in the code below I want to print out the number 15 using printf.How do we make a function with a pointer?At this point, the main part is untouched.Code int set_to_five(){}int main()...
typedef struct PersonArray { Person people[NUM_USER]; int total_waiting_time; int total_waiting_people; }PersonArray;PersonArray *PeopleArray;PeopleArray->total_waiting_time = 0;PeopleArray->...
« | - 70 - | » |
© 2024 OneMinuteCode. All rights reserved.