c tag

1304 questions


1 answers
129 views
0
Is there a way to calculate between long double types in C language?

#include <stdio.h>#include <math.h>int main(void){ double x,y; printf(Please enter x and y : ); scanf(%lf %lf, &x, &y); long double z = ((x + sqrt(x*x+y*y))/2.0); printf(The value ...

2 years ago

1 answers
44 views
0
FFT Algorithm Question

I'm writing because I'm trying to solve an algorithm problem and I don't know how to approach itWhen there are N coins in the bag, each coin has a value from 1 to M (M > = N).Some coins can have th...

c
2 years ago

2 answers
74 views
0
There's an infinite loop.What should I do?

int main(void){ int i = 0; int arr[10] = { 0 }; int j; int temp;while (i < 10){ printf(Enter an integer %d >, i); scanf_s(%d, &arr[i]); for (j = 0; j < i; j++); if (arr[i] == arr[j]) { p...


1 answers
99 views
0
Two-minute search-low and high values are implemented recursively by accepting only parameters

int location(int low,int high);int main(void) {int n, num, x, i = 0;//int arr[3];//printf (Please enter in order);//for (i = 0; i < 3; i++) {// // scanf(%d, arr[i]);//}printf (Please enter a number...

2 years ago

1 answers
143 views
0
Which do you prefer, showing both mobile and PC as a single file or dividing into two files for mobile and PC?

I want to show you the screen differently when I connect to PC and mobile. How about css,js? Do you want me to use only one html file and show it according to the conditions or do you want me to make ...

2 years ago


1 answers
30 views
0
Please change the language of c

#include <string.h>#include <stdio.h>#include <stdlib.h>int main(void){ char str1[10]; char str2[10]; char str3[10]; int num1, res; char *ps1 = str1; char *ps2 = str2; char *ps3 = st...

c
2 years ago

1 answers
45 views
0
elimination

Delete

c
2 years ago

1 answers
129 views
0
I want to match the Gps value to the pixel value

Hello, I am a student who is studying for MFC.Get the Gps value and display it on the screen (map)We're going to make a program that draws the distance we've movedSince it has to be done in an area wh...

2 years ago

1 answers
144 views
0
How can I open the file when I type < (file name) in terminal?

For example, when running a program called p1, ./p1 < file_name.txtI want to write a program to get the file name and process it after typing it like thisSkip < file_name.txt and enter argv from...

2 years ago
« - 74 - »

© 2024 OneMinuteCode. All rights reserved.