c tag

1304 questions


1 answers
36 views
0
This is a question about the c language switch statement's private rule calculation program!!

void calculate();int main(void){ calculate(); return 0;}void calculate(){ char option; int num1, num2;while (1) { printf(+ - * / Select one: ); scanf(%c, &option); getchar(); switch (option) { cas...

c
2 years ago

1 answers
31 views
0
Can we transfer a dynamically generated two-dimensional array from C to the return value of the function?

#include <stdio.h>int* array(){ int a[3][3] = {{1,2,3}, {4,5,6}, {7,8,9}}; return (int*) a;}int main() { int (*a)[3] = (void*)array(); printf(%d , a[0][0]); printf(%d , a[2][2]);}In fact, it's a...

c
2 years ago

1 answers
123 views
0
Error in inf file (c2059 syntax error: constant)

I made source C with visual studio, but there is an error in the inf file that I read during the build process.(input path)\paper.inp(1):error C2059: Syntax error: 'constant'An error like this appears...

2 years ago

1 answers
109 views
0
About MFC (question is very easy) Just drop by once and go.(T)

First of all, if I can tell you about my situation, I'm going to do a project with MFC in a single document, and I'm going to do a basic class with FormView And I added a new dialog in the Resource Vi...


1 answers
69 views
0
Questions about c++ cout

Hello, everyone I am a student studying c++.I am inquiring because there is something strange while studying c++.==================char c = 'a';char *d = &c;cout << d << endl;printf(%p...

2 years ago

1 answers
59 views
0
merge sort,quick sort rate question

While studying the algorithm, I compared the speed using the clock function by implementing the quick alignment and the merge alignment as cIn general, I knew that quick sorting performed better than ...


1 answers
125 views
0
Stack-related questions

When I run the Stop function, I need to show the last data that went in, but it doesn't come outDo you know what the problem is?#include<stdio.h>#include<stdlib.h>#include<string.h>#...

2 years ago

2 answers
51 views
0
Please help me with the language recursive function problem!!!

Farmer John developed a new way to line up the cows for dinner. N (1-15) cows should be placed in order, and a napkin with one of the three +, -, and . written between each cow should be placed so tha...

c
2 years ago

1 answers
46 views
0
C Language File Stream String Separation Questions

int main(){int i = 0;char ch = 0;char data[100];FILE *fp1 = fopen(data.txt,wt);FILE *fp2 = fopen(data.txt,rt);fputs (#Name: Life Coding\n, fp1);fputs (#resident number: 001234-3123456\n, fp1);fputs(#p...

c
2 years ago

1 answers
43 views
0
C language task case creation problem

I don't even understand what you mean... Please help the coding masters who will understand ㅠ

c
2 years ago
« - 73 - »

© 2024 OneMinuteCode. All rights reserved.