c tag

1304 questions


1 answers
61 views
0
I'd like to ask you a question about calculating the time complexity

Is it n/2 or n/2 + 1 in this case? 2/2I am still confused about the exam tomorrow...


1 answers
34 views
0
Wmain compilation error

#include <stdio.h>#include <windows.h>int wmain(int argc, wchar_t* argv[]) { LPSTR str1 = SBCS Style String 1; LPWSTR str2 = LWBCS Style String 1; CHAR arr1[] = SBCS Style String 1; WCHAR ...

c c++
2 years ago

1 answers
103 views
0
The debug mode and the release mode are different. Why?

The chords are weird.Visual Studio 2008 is developing it, but why will it be different when it is debugged and released? int _tmain(int argc, _TCHAR* argv[]){ for( int i = 0; i < 17; i++ ) { int...


1 answers
124 views
0
How do I check if an integer is even or odd?

It's the same as the title.How do I check if an integer is even or odd?

2 years ago

2 answers
110 views
0
This is a question related to C language Heap.

typedef struct HeapElement{ DSKEY heKey; void * heData;} } HeapElement;struct Heap{ int hpMode; /* Minimize or Maximize */ int hpSize; int hpFilled; int hpGrowBy; HeapElement** hpArray; HEAPCMPFUN...

2 years ago

1 answers
69 views
0
I have a question about register keyword of C

What does the register keyword do?I know it's related to optimization, but there's nothing that says exactly what function it does.

2 years ago

1 answers
85 views
0
C++에서 printf랑 cout은 무슨 차이가 있나요?

What is the difference between printf and cout in C++?Well, printf has to use a separate format designator, so it's annoying...What's the difference other than this?

2 years ago

1 answers
46 views
0
How do I store various types in the C array?

In Python, mylist = [hello, 3, {3:5, 2:4}]print(mylist)I was able to put various types in one list like this wayIs there a way to use it like this in C?

2 years ago

1 answers
46 views
0
C language array name question.

Hello, I am a student studying C language.I was curious about the name of the language array.int arr[3] = {99, 77, 55};Assume that you declared an array ofWe know that the variable arr has the address...

2 years ago

1 answers
30 views
0
c Language polynomial error Question

Unhandled exception throw: write access violation.item was nullptr.I don't know why the item is a garbage value when debugging. #include <stdio.h>#include <stdlib.h>#include <malloc.h&g...

2 years ago
« - 81 - »

© 2024 OneMinuteCode. All rights reserved.