1304 questions
Hello!I fell into an infinite loop while practicing c, but I can't solve it.Here's the situation.If you receive an integer between 1 and 10, you have to exit the for statement and re-enter it when you...
structure Date{ int year;}struct SCH{ char a[Max_Line][1024]; char b[Max_Line][1024]; struct Date c;}; To define a structure, the first structure does not fail, but the following structure continues t...
The code below is a function that functions to search for a string in a string. I have a question because I don't understand something while analyzing the code.The first of the two codes below works f...
Hello, everyone I am a student studying C language.While solving the problem of creating a function that sorts the integers of an array in descending order, obtaining the length of the array from a fu...
Information Olympiad melon field problem (http://www.jungol.co.kr/bbs/board.php?bo_table=pbank&wr_id=1520&sca=2060).I looked at the answer sheet because I didn't know, but I was surprised to s...
I finished writing it, but I don't understand the strcpy part in the if part ㅜㅜㅜ
int maxmin(int ar[]) { int *px; int min = 0, max = 0; for (px = ar; px < (sizeof(ar)/sizeof(int)); px++) { if (*px < min) { min = *px; } if (*px > max) { max = *px; } } return max-...
#include<iostream>#include<string>using namespace std;class Car {private: string carNo; int productYear;public: inline Car() { string carNo = ; int productYear = 2016; } Car(string cn, i...
#define _CRT_SECURE_NO_WARNIGS#include<stdio.h>#include<stdlib.h>int factorial(int n);int main() { int n; scanf(%d, &n); printf(%d\n, factorial(n)); return 0;}int factorial(int n) { if...
The contents of the code are as follows.As you can see below, when the parameters are double pointers, you hand over the factorI don't know why I have to put & on the factor pointer.For example, i...
« | - 76 - | » |
© 2024 OneMinuteCode. All rights reserved.