klimi
this group is not for job postings, please respect the rules of this group
\Device\NUL
\Device\NUL
Bro forgor he's on C not Python
\Device\NUL
Gilad
It did. I didnt understand the statement.
\Device\NUL
Python print() formatting is similar to C printf()
Anonymous
hi i'm having a hard time to print an address of first element of an array in the hex format using write function can someone help me
klimi
💰💵⚛️💹⚛️💵💰
Anonymous
i can't use printf
Anonymous
''' using ConstIterator = BasicIterator<const Type>;
[[nodiscard]] ConstIterator cbefore_begin() const noexcept {
// Реализуйте самостоятельно
return ConstIterator {const_cast<Node*>(&head_)};
}''' why I cant create '''const Node* node = &head_''' and pass it to ConstIterator constructor witout making const_cast?
Danya🔥
Anonymous
Danya🔥
Anonymous
How should I know?
I am just trying to make it clear, the constructor explicit BasicIterator(Node* node): node_(node) {
}
Anonymous
which accepts non-const pointer
Danya🔥
So that's your answer
Anonymous
so, I understand right that using ConstIterator = BasicIterator<const Type> is const Type but its constructor accepts non-const pointer than I need to remove constness from const Type?
Danya🔥
Please use formatting when pasting the code
Danya🔥
Anonymous
Danya🔥
Anonymous
It did. I didnt understand the statement.
An
(-__-)
Eugene
AlanCcE
איליה
Sup guys. I’m about to learn c++ and I have a question: what ide do you use?
MaaKa
איליה
Ludovic 'Archivist'
Codeblocks, Visual Studio Community Edition and Codelite are probably the easiest for absolute beginner
איליה
labyrinth
there is a piece of code in absl:
template <class F, class... Ts, class P = Policy>
static auto apply(F&& f, Ts&&... ts)
-> decltype(P::apply(std::forward<F>(f), std::forward<Ts>(ts)...)) {
return P::apply(std::forward<F>(f), std::forward<Ts>(ts)...);
}
what does the part ->decltype mean ?it is basically a function signature followed by this part.
Ludovic 'Archivist'
איליה
איליה
Матin Salehizade
use VIM
I finally fixed the problem, reinstalling the compiler.
(-__-)
#include <iostream>
#include <string>
using namespace std;
class A
{
public:
A() { };
string s("abc");
};
int main()
{
A a;
cout << a.s << endl;
return 0; }
(-__-)
Lorenzo
You have to initialize s in the constructor of your class
Lorenzo
In the .cpp
(-__-)
yes, I know, but if I write ( string s = "abc ) there will be no problem ...
vikram
Hello window 10 problem for Ms turbo c++ not running program after one time and not supporting keyboard and mouse
vikram
Plss somebody help me
klimi
Anonymous
vikram
vikram
Anonymous
Okay how to solve these problem
Go to the Resources channel in the link mentioned above. You will find a detailed post there offering various alternatives and standard compliant compilers there
(-__-)
klimi
Okay tell me something other software
for compiler choose either MSVC/GCC/CLANG for the IDE you can choose between visual studio, clion or just with editor like visual studio code or even simpler like sublime text or any other editor you are familiar with
Anonymous
As I have been reminded so many times, Visual Studio Code is no longer just an editor. With its plugin ecosystem it is close to a full fledged IDE minus the compiler.
I myself have switched to VSCode from Vim (I still use Vim plugin for easy navigation) and I am just in love with it. The only Microsoft product that I can proudly claim to use.
klimi
klimi
klimi
but i agree on that point that IDE/editor boundary is broken
𝔖𝔞𝔯𝔬
How can I call a base class constructor in a subclass?
Chat Boss
M O H I T K U M ∆ R sent a code, it has been re-uploaded as a file
M O H I T
M O H I T
hey could you please check my above code
Anupam2.7
Assembly maybe
-
hi does anyone know how to copy a text from a file to clipboard in C?
Lorenzo
-
Lorenzo
const char* output = "Test";
const size_t len = strlen(output) + 1;
HGLOBAL hMem = GlobalAlloc(GMEM_MOVEABLE, len);
memcpy(GlobalLock(hMem), output, len);
GlobalUnlock(hMem);
OpenClipboard(0);
EmptyClipboard();
SetClipboardData(CF_TEXT, hMem);
CloseClipboard();
Lorenzo
Cannot paste stackoverflow link but..just search on google, there are plenty of examples
Lorenzo
SetClipboardData is the key
-