c tag

1304 questions


1 answers
138 views
0
How to use C language variables - global variables?

I am posting because I have a question about using the C language variable.If I use the code that I'm trying to make as an easy example,(It's not a real code, it's a simple example made with only a pa...

2 years ago

1 answers
111 views
0
How do I create a static method that returns the name of the class in Java?

public class MyClass { public static String getClassName() { String name = ???; // How can I return MyClass? return name; }}I want to create a static method that returns the name of the class like t...

2 years ago

1 answers
34 views
0
File input/output question. (C/C++)

I tried file input/output for the first time today, but it's hard, so I'm asking you a question!I'm trying to get the year and month and print it out in the form of a calendarIt's saved according to t...

c++ c io
2 years ago

1 answers
27 views
0
It's a language question!

int main(){void quater_sales(void){ int i, j, choice; int sum = 0; printf(Please enter the quarter number(1.1Q2.2.Q3.3Q4.4Q:); choice = getchar() - '0'; while (getchar() != '\n'); choice--; for (i = 0...

c
2 years ago

1 answers
56 views
0
How to view encrypted traffic when programming the web with Python

Hi, how are you?When I programmed the web with Python,How can I view encrypted traffic?Java was possible by using eclipse and fiddler as a proxy as shown in the link belowPython doesn't know how.https...

2 years ago

2 answers
32 views
0
I'm a beginner at C. It's a text file reading and writing question

int main(void){ char name[10]; char sex; int age;FILE *wfp = fopen(friend.txt, wt);int i;for (i = 0; i < 3; i++){ printf(enter name, sex, and age in order : ); scanf(%s %c %d, name, &sex, &...

c c++
2 years ago

1 answers
107 views
0
Why is the size of the structure different from the total size of the member variable?

Looking at it, the structure size is larger than the combined size of the member variables. Why is it like this?

2 years ago

1 answers
82 views
0
I keep getting negative numbers for long in printf

long mylong = 1000000000000000000;printf(%d, mylong);Output: -1486618624 I don't know what you call that %d thingI don't think all the long types go in ㅜㅜIf I write %f, it looks like 0.0000 so what sh...

2 years ago

1 answers
136 views
0
How do I write C99 stdint.h in Visual Studio?

I looked it up and I heard that the visual version I use doesn't have stdint.hThen I can't write anything in this header? TT?

2 years ago

1 answers
27 views
0
Obtaining Meanings Using For Statements and Arrays

#include <stdio.h>void main(){ int num[]; int jum; int max,min,sum,nums; float avg; int i=0; scanf (Please enter the number of students. : : %d \n,&nums); for(i=0;i<nums;i++){ scanf(Ente...

c
2 years ago
« - 85 - »

© 2024 OneMinuteCode. All rights reserved.