886 questions
I'm a C++ beginner. Hello.Not the same format as ifstream in (C:\~~~~~\Example.txt).Stored as string A = Example.txt, I wonder if there is a way to write in the same format as ifstream in (C:\~~~~\A)....
//#include stdafx.h#include <iostream>using namespace std;class MyClass{public: MyClass() { pnumber = new int(5); } ~MyClass() { delete pnumber; } int number = 0; int *pnumber = nullptr;};int ...
In Java, we could've used the bottom togetherIs there an easy way to do it in C++?String str = The quick brown fox;String[] results = str.split( );
Can I write delete this; when I delete an instance of the class I created with new at the end?Write it like this. void doStuff(){ // This object is a working module // When you want to switch to anoth...
In c++, how do you output a variable type?I checked it using type() in Python, but I am asking because I think there will be such a method in C++. What is the function that functions typeof(a) in the ...
When using the same algorithm in C++, does the operation show a significant difference depending on whether it is a real or integer operation?For example, if you find the area of a circle in a loop 10...
Hello, I'm a student studying c++.++.In my project, I need a class with functions similar to the variable in boost.However, the cost is too high to add boost, so I tried to implement it myself, althou...
#include <iostream>using namespace std;void Plus(int * num){ ++*num;}void reverse(int * num){ *num *= -1;}int main(){ int num = 10; int num1 = -9; Plus(&num); Plus(&num); Plus(&num);...
Modifying program C to Python.The c program I want to get first is :#include <stdio.h>void main() { int i, j, count = 1; long sum = 0; printf(Program \n) to obtain a decimal number between 1 and...
« | - 71 - | » |
© 2024 OneMinuteCode. All rights reserved.