c++ tag

886 questions


1 answers
46 views
0
(x^0x1)! = What does 0 do?

From the source code below,What does x^0x1 do?What rules do I not know?if( 0 != ( x ^ 0x1 ) ) encode( x, m );


1 answers
32 views
0
Is there a way for the program to input the initial consonant neutral final consonant?

I want to implement a program that receives a pre-set txt file or a string right away and enters the initial neutral last name one by one like a person entering it.There is no problem because there is...

c++ c
2 years ago

1 answers
23 views
0
I was bored yesterday, so I made a simulation code for the birthday question. It's a bit weird crying

#include <iostream>#include <cstdlib>#include <random>#include pch.husing namespace std;typedef unsigned long long ULL;void Create_Random_Number(ULL arr[], int Array_Size, int min = ...

c++
2 years ago

1 answers
127 views
0
Why is (2147483648>0) true in C++?

At 32 bits, -2147483648 is the smallest value that the int type can express.But I think there is an overflow in the if statement.if (-2147483648 > 0) std::cout << true;else std::cout <<...

2 years ago

1 answers
27 views
0
(C++) Usage Questions for upper_bound

Hi, how are you?I'm studying upper_boundI've only known how to use it like the first one belowWhat exactly does the bottom mean? V is a vector, but the beginning part is not defined, so can you explai...

c++
2 years ago

1 answers
67 views
0
c++, how to make a template function call without a type definition

Implementing a double linked list that can have different types of variables in one list.Example) 11 <-> aa <-> 'A' <-> 1.2345I'm trying to return the value stored in the nth of the ...

2 years ago

1 answers
83 views
0
To return an array from a class member function

Create a class and there is a member function in it.This member function must return 'array'.By example code class class_df {public : class_df(); void initialize(); float class_df::calculate(int, floa...

2 years ago

1 answers
33 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
I'm a c++ beginner In the for statement, the if statement

#include <iostream>using namespace std;void main(){ int a ,b,total; for(a=1;a<=5;a++) { total=1; for(b=1;b<=a;b++) { total=total*a; if(a!=b) { cout<<total<<x; } else ...

c++
2 years ago

2 answers
31 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
« - 57 - »

© 2024 OneMinuteCode. All rights reserved.