armandofsanchez
strcmp
Pati
And what about a c program to write 100 to 0
Jas
A good one with credentials who interviews well? A decent wage.
Max
And what about a c program to write 100 to 0
#include<stdio.h> main() { int i; for(i=100;i>=0;--i) printf("%d\n",i); }
:p
What's the possible error when statement isn't printing in devc?
Max
What's the possible error when statement isn't printing in devc?
Do statements be same as comments? If so, then they are never executed. They are not part of the program. Are just like giving directions to a programmer
Anonymous
/warn offtop
lukas
#findprojects
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
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
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
No one will solve your assignment
I had just asked for little help not whole assignment
Pavel
Is it always necessary to implement data hiding and encapsulation in a program? Explain with the help of an example in case yes or no
Depends on what paradigm you're working with. In OOP for example you want objects to always encapsulate the state. In other paradigms or specific patterns (e.g. DOD / ECS) you can have data that can be shared between some classes/functions of specific systems.
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?
Igor🇺🇦
Is it the same as a normal value? If not, then what is the difference?
Literal is a fixed value in code. Value of some variable is not literal.
Codigo
A constant? Or it has to do with the type of value a variable can have?
Igor🇺🇦
A constant? Or it has to do with the type of value a variable can have?
int I = 1; I++; 1 - is literal, value of I is 2. const int j = 2; j is const, but not literal, 2 is literal.
Codigo
... So, a literal is the Initial value of a variable?
Igor🇺🇦
... So, a literal is the Initial value of a variable?
Its just literal. You don't have to store it in any variable. It's an explicit value that is stored in a code.
Codigo
so... "C" is a string literal? 0x01 is a hexadecimal literal? true is a boolean literal?
Codigo
MR᭄HACKER࿐
Ok
MR᭄HACKER࿐
Write a program using two function ???
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; }
Hanz
There are 2 functions in your code.
Fine: int main(){ return 0; }
Diego
Fine: int main(){ return 0; }
Second attempts net you less points
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?
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.
Nils
This type of initialization is available only for aggregate types
So it is definitely not possible to do this on classes with constructors?
Anonymous
So it is definitely not possible to do this on classes with constructors?
https://en.cppreference.com/w/cpp/language/aggregate_initialization
Nils
https://en.cppreference.com/w/cpp/language/aggregate_initialization
Yeah just found it myself the same time you sent it lol
Nils
Thanks
Engineer
Anyone have a complex switch statement that they can share from production code?
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🤓
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
Anyone have a complex switch statement that they can share from production code?
https://gitlab.com/mogomanDE/sm64-cdl/-/blob/master/src/pc/pc_main_asio.cpp#L42
Nils
Hope it is complex enough
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"
Bruno
There are 2 functions in your code.
Yes. But a made only one, I see this also.