c tag

1304 questions


1 answers
333 views
0
What happens in the array when functions enqueue and dequeue are performed in the queue?

#include<stdio.h>#define MAX4void enquene(char*Q, charx);char queue (char*Q);void initialize (char*Q);intempty (char*Q);int head = 0;intail = 0;int number = 0;void enqueue(char*Q, charx){ if (nu...

c
1 years ago

1 answers
342 views
0
The answer in ALDS1_1_A of aizu online judge is correct, but it becomes WA.

I wrote the following in C language.As long as I run it on hand, it's right, but it's going to be WA...Is there anything wrong?There is no difference when I try to differentiate the results by droppin...

c
1 years ago

1 answers
399 views
0
intmain gets SyntaxError in Google Collaboration

Programming a 2D random walk I entered it on Google Colab, but the following error appears.Please tell me how to fix it.error messages:File<ipython-input-3-95051bfc0730>, line 8 int main() ^Sy...

1 years ago

1 answers
483 views
0
C Language Text File [Closed]

Do you want to improve this question?Edit your post to clarify the issue you are trying to resolve by adding details.Closed to 9 months ago9 months agoPlease tell me how to display a specific line fro...

1 years ago

2 answers
257 views
0
What are the advantages of making double an 8-byte alignment with the -malign-double option?

What are the specific benefits of double being an 8-byte alignment with the -malign-double option?

1 years ago

2 answers
283 views
0
The cause of the segmentation fault is unknown.

We are developing a program for the task of measuring CPU time.I compiled the two programs below and ran them.Normal compilation is fine, but if you compile and run with the optimization option -O2 in...

1 years ago

1 answers
348 views
0
About loading and writing C language files

I'd like to write down the results of the rock-paper-scissors match (number of wins, number of losses, number of draws) in a file and read the total, but the total number of wins will be output, and t...

c
1 years ago

2 answers
375 views
0
About creating sln files from folders with CMakeLists.txt in C language

Created sln file from folder with CMakeLists.txt.Here's a summary of the contents:CMakeLists.txtcmake_minimum_required (VERSION 3.0.0)project(777VERSION 1.0.0)include_directories (includes)add_executa...

1 years ago

1 answers
316 views
0
programming of line segment drawing algorithms

The following line segment drawing algorithm does not seem to work properly unless the absolute value of slope a is less than or equal to 1. Please tell me why and how to respond to any slope.void dra...

c
1 years ago

2 answers
319 views
0
What is the difference between service and utility classes?

I read Hidenori GOTO's answer to the following questions.It was explained that the service was like this.What is the role of the service in the MVC modelHowever, if you look at this much, you can't te...

mvc
1 years ago
« - 7 - »

© 2024 OneMinuteCode. All rights reserved.