char tag

19 questions


1 answers
82 views
0
[C++] I have a simple question

Hello, everyone 1char test = 1;std::cout << test << std::endl;Only the new line comes out Char is 8 bits and int is 32 bits, so I think data corruption occurs.I think it's worth the garbag...

2 years ago

1 answers
117 views
0
To replace std:string with const char* or char*

Please tell me how to change std::string to const charge* or char*

2 years ago

1 answers
127 views
0
Why do you have unsigned char?

When do you use unsigned char in C/C++?What's the difference from just char?

2 years ago

1 answers
139 views
0
Can I convert a structure string to an integer?

int main(){ void pid_sort(struct id[], int); void pid_print(struct id[], int); struct student stu[3]; int count; int i; printf (Enter 3 student information); for (i = 0; i < 3; i++) { printf (Name...

2 years ago

1 answers
59 views
0
C++ Char Questions

#include <iostream>using namespace std;int main(void){ char ID[10]; cin >> ID; cout << ID << endl; return 0;}I wrote it as above, but I set the size of the character array call...

2 years ago

1 answers
129 views
0
[Dev C] C language string char question

Write char*, which is used to input and output a stringI heard that when you type and print out a string, you have to use the code charq[100]; You have to write a number after the variable name like t...

2 years ago

1 answers
168 views
0
In the c++ question console window, Hello appears in red...

If I run this code, HELLO comes out in red in the console window, but why does it come out like that?Please explain in detail.char red[] = { 0x1b, '[', '1', ';', '3', '1', 'm', 0 };cout << red &...

2 years ago

1 answers
63 views
0
c++ char type output

I got 123456 inputI'm trying to print out 321654 What's wrong with my form??int main() { int t = 0; char str1[4]; char str2[4]; cin >> str1 >> str2; char str1copy[4] = { 0 }; char str2copy...

2 years ago

1 answers
146 views
0
C. A complete beginner's question!!

#include <stdio.h>int main(){ charline[10] = ; <-- Questions about this!! int i; printf(Enter string ==>); scanf(%s, line); for (i = 9; i >= 0; i--) { printf(%c, line[i]); } printf(\...

2 years ago
« - 2 -

© 2024 OneMinuteCode. All rights reserved.