armandofsanchez
strcmp
Pati
And what about a c program to write 100 to 0
Jas
Harshal
Jas
A good one with credentials who interviews well? A decent wage.
Pati
:p
What's the possible error when statement isn't printing in devc?
Anonymous
/warn offtop
lukas
#findprojects
Chandresh
MRT
class B
{
public:
B();
~B();
void print();
private:
QString data;
};
class MessengerClient : public QThread
{
Q_OBJECT
public:
explicit MessengerClient(QObject *parent = nullptr);
..
public slots:
..
signals:
void error(QTcpSocket::SocketError err);
private:
..
B *b;
};
MessengerClient::MessengerClient():QThread(parent),b(new B()){}
i this case i initialize b object with default constractur, but i get error when using b! why ?
but another class like this work correctly :|
MRT
b get me a nullptr
Igor🇺🇦
MRT
i use b->dosomthing() in MessengerClient class functions
MRT
i check my code and I realized the b object defined twice
MRT
I have exactly a few other classes like this and it works fine, but this class give me null object
Anonymous
Hi??
MRT
if in MessengerClient constractur i use b->somthing(() work , but in other function give me err
MRT
Nils
Igor🇺🇦
Max
Anonymous
I am new pls can you help me to increase my knowledge ??
Anonym
Hello!
It might be foolish not to know, but alas ...
On the Internet, too, nowhere is this found
In general, the task:
Write a program to display a "magic square" on the screen, for example, when T = 5
12321
23432
34543
23432
12321
For example, at T = 9
56765
67876
78987
67876
56765
It should work out through a cycle of odds, can someone suggest at least how it should be?
C++
Thanks in advance, for any help!
Anonym
Can someone please help?
Junaid
Anonymous
hello good day... I need help understanding variadic function in c.
The real question is;
is it a particular data type that can be continuously repeated or like declaring different types on arguments of a function?
Codigo
Hey guys, what is a Literal value?
I googled it but I still don't understand
Codigo
Is it the same as a normal value? If not, then what is the difference?
Codigo
A constant?
Or it has to do with the type of value a variable can have?
Codigo
...
So, a literal is the Initial value of a variable?
Codigo
so...
"C" is a string literal?
0x01 is a hexadecimal literal?
true is a boolean literal?
Anonymous
Codigo
MR᭄HACKER࿐
Ok
MR᭄HACKER࿐
Write a program using two function ???
Diego
Bruno
Write a program using two function ???
I can do it with only one function:
#include <stdio.h>
int main(const int argc, const char** argv){
printf("My only one function program");
return 0;
}
Diego
Hanz
Bruno
Igor🇺🇦
Hanz
Hanz
MR᭄HACKER࿐
??
labyrinth
is there any group related to algorithm? i would like to join one.
Nils
How do I reenable the {} constructor for classes that have a custom constructor already?
Anonymous
Nils
Provide more context
Like, I would like to allow constructing the class like this:
Message msg = {
.content = "hi"
};
While still having a custom parameterized constructor.
Anonymous
Anonymous
Nils
Nils
Thanks
Engineer
Anyone have a complex switch statement that they can share from production code?
Anonymous
Engineer
I am trying to write a compiler for a switch statement
Engineer
I do not need the the whole code. Just something complex
Engineer
So people here are writing code🤓
Mar!o
Engineer
I know about that....
Essie 😘
Hello guys anyone who knows about chuck programming? Got some friend of mine with a programming task on Chuck program
Nils
Engineer
Nils
Hope it is complex enough
Engineer
Nils
Thanks!
It has fallthrough, default and returns inline. 🙂🙂
Reeta
Is there any way in which we get from structure hello to some type of data that holds a reference to the class name in a C string?
Reeta
I need help, it's important
Reeta
here structure name is "hello"