c tag

1304 questions


1 answers
81 views
0
How to hash 10 data

Literally, I want to hash 10 integers I don't know because I still lack the concept of hashingI was going to use Jenkins' hash function to do a hash.// Robert Jenkins' 32bit hash functionunsigned __in...

2 years ago

1 answers
137 views
0
MFC(C++) CPU, memory check question.

Leave program number 1 (ex: Test program) running (just for CPU state, memory state change) Run program number 2 (ex: check program) Select the program you want to monitor as program number 1 and The ...

2 years ago

1 answers
34 views
0
Problem of removing spaces using c language strtok

I want to create a function that takes a string and deletes all blank characters using strtokIt ends immediately.Enter: abcdef Desired output: abcdef Actual Output: ab I want to solve it using strtok,...

c
2 years ago

1 answers
141 views
0
Accessing public static variables inside a class declared private

private class Example { public static final PI = 3.14; ...}If there is a code configuration like above, is PI accessible from the outside?Classers restrict access from the outside to private, but PI a...

2 years ago

1 answers
82 views
0
The difference between C language return 0 and -1

I was watching a C language lecture and said, I have to do return -1; to end the program, but isn't return 0; also ending the program? What is the difference between the two returns? If there is no di...

2 years ago

1 answers
40 views
0
The return value of freopen is null, so what is the cause?

I did free-open, but I print out the NULL value. The standard input works well in the console window with a scanf after removing freopen, but what's the problem with continuing to print NULL values if...

c
2 years ago

1 answers
27 views
0
Enter C language string

#include <stdio.h>#include <stdlib.h>void SetInteger();int main(void){ SetInteger();}void SetInteger(){ unsigned char *ptr; scanf(%s, ptr); printf(%s, ptr);}#include <stdio.h>#includ...

c
2 years ago

1 answers
152 views
0
This is a python mac installation problem.

I'm currently using Python on my Mac.I am using 2.7 versions, 3.5.0 versions, and 3.6.1 versions.By the way, modules are installed normally in 2.7 and 3.5.0 through pip and pip3 options.The problem is...

2 years ago

1 answers
28 views
0
scanf("%c", &var); and scanf("%c", &var); the difference between (the former has no space after the format specifier; the latter has a space after the format specifier)

int main(){ char var_1, var_2; scanf(%c, &var_1); printf(%c\n, var_1); scanf(%c, &var_2); // Add space after format specifier printf(%c\n, var_2);}/*while studying C language Use scanf(%c, &am...

c
2 years ago

1 answers
101 views
0
How to handle scripts woven from C language to bone shell

You are about to use bash script in C language.You don't have to run the bash script fileAs shown in the source below, I want to define the bash script as a definition statement and then run it in the...

2 years ago
« - 69 - »

© 2024 OneMinuteCode. All rights reserved.