SIDRA
I know basics of C/c++
Mayur
Explain looping with an example
Ludovic 'Archivist'
Explain looping with an example
https://hackingcpp.com/cpp/lang/control_flow_basics.html
Rose
User Computerwala has 1/2 warnings; be careful! Reason: spam
Rose
User Deep has 1/2 warnings; be careful! Reason: ad
Never Spam Bot
Engine sent multiple messages that looks like a spam. To stop the bot from deleting your messages, write something non-suspicious. Or find out why here. Spam deleted in this group: 2024
Hitesh
Why some prog
Never Spam Bot
Imean Salih is now approved by the group admin and can send messages without any restrictions Where i can learn c See spam? Quote the spam message in the group and reply with /spam
Ludovic 'Archivist'
Imean read the rules, resources are provided there
Imean
Hello
Imean
Ok
Imean
No i am using software
Imean
I do not know what do you mean Excuse me
Imean
I am using system software in my mobile which name is android And this one of the common system software which are using in mobiles
klimi
#meta
Rose
Don't ask meta questions. In other words, don't ask to ask. Questions like "Does anyone know XYZ?", "Has anyone used XYZ?" or "Can someone help me?" are all considered meta questions because they don't specify what your actual problem is. These questions give the impression that you want people to approach you and offer their help as if they don't have any other work to do. Now doesn't that expectation make you look like an idiot? If you have a question ask it directly. You are more likely to get a response that way.
Ray【レイトレーサル】Tracer
Specify the problem, that's what the bot is saying.
klimi
yeah, because you are spamming with unrelated question to this group. wake up
Rose
User .​/ has 1/2 warnings; be careful! Reason: ad
Rose
User Rishu has 1/2 warnings; be careful! Reason: spam/ad
Imean
I need a c++ book please
klimi
I need a c++ book please
Check resources in pinned message
Imean
Which resources
Imean
U can tell me i am new
klimi
Chaudhary: I have a silly question...buy still I am not getting it When we "." (Dot) Operator and -> (arrow) Operator. When we re accessing the elements of structure in c
Chaudhary
When we use "." (Dot) and (arrow)-> in c while accessing structure elements
klimi
When we use "." (Dot) and (arrow)-> in c while accessing structure elements
Basically -> does (*pointer). I think ... It's supposed to be just a syntax sugar
Chaudhary
What do you mean by syntax sugar.?
GOD_EMPEROR
Basically -> does (*pointer). I think ... It's supposed to be just a syntax sugar
And dot I guess For accessing specific data type in the structure Am I right?
GOD_EMPEROR
klimi
What do you mean by syntax sugar.?
That it is trying to make writing code easier but is not necessary
Morgan
/start@MissRose_bot
Rose
/start@MissRose_bot
Heya :) PM me if you have any questions on how to use me!
Deeraj
C programing
itz_P
C++ programing
Escrow
Any body need c hand written notes
𓆩 𝗙𝗔𝗜𝗭𝗔𝗡 𓆪ㅤ🚸
Ziky
Any body need c hand written notes
Could you send it to me too? I would really like to see it
Never Spam Bot
𓆩 𝗙𝗔𝗜𝗭𝗔𝗡 𓆪ㅤ🚸 sent multiple messages that looks like a spam. To stop the bot from deleting your messages, write something non-suspicious. Or find out why here. Spam deleted in this group: 2056
Ziky
Umm rather using DM
Never Spam Bot
Ayat sent multiple messages that looks like a spam. To stop the bot from deleting your messages, write something non-suspicious. Or find out why here. Spam deleted in this group: 2057
Leo
Hi
Devil
Hi
hii
Suresh
Hey
amine
hello can someone explain to me maps/unorder maps ?
klimi
hello can someone explain to me maps/unorder maps ?
Unordered maps are hashed. Ordered use trees
klimi
Hi
I am curious, what made you write 'hi' here after reading and accepting the rules?
amine
what is hashing tho
klimi
what is hashing tho
There is tons of material online. But basically it uses some maths to get new number, it is usually one-way too (since it reduces the data onto smaller bitsize)
harmony5 🇺🇳 ⌤
what is hashing tho
Google/wikipedia it
𝖂𝖔𝖓𝖉𝖊𝖗𝖎𝖓𝖌 𝕵𝖊𝖜
#project
Rose
Welcome Eleanora! Please read the pinned message 🙂 Click the button below to unmute yourself.
(-__-)
Why it is not allowed in C++ to assign a c-string to an array of characters like in the code below #include <iostream> #include <string> using namespace std; int main() { string s("ABC"); char list[4] = s.c_str(); return 0; }
Ziky
Why it is not allowed in C++ to assign a c-string to an array of characters like in the code below #include <iostream> #include <string> using namespace std; int main() { string s("ABC"); char list[4] = s.c_str(); return 0; }
so: char list[4] allocates array and list is pointer to beginning of that array s.c_str() just returns pointer to the beginning of internal buffer of string object Your code might mean something like allocate memory then forget about it and access internal string buffer or it might mean allocate memory and copy data string buffer into it which plain array cannot do. So compiler is not happy
Ziky
If you want to have modifiable independent copy of "ABC" then somehow copy data from string into list
Ziky
If you just need to have handy pointer to const data use const char list* = s.c_str(); or let compiler to distinguish type automatically auto list = s.c_str(); maybe you will need to prepend const before auto i am not sure
Ludovic 'Archivist'
Why it is not allowed in C++ to assign a c-string to an array of characters like in the code below #include <iostream> #include <string> using namespace std; int main() { string s("ABC"); char list[4] = s.c_str(); return 0; }
It would not be allowed in C either. C-style arrays are a bit confusing in that they automatically decay into pointers to the type they hold. But a pointer is not an array, and hence pointers cannot be assigned to arrays and vice-versa. Pointers are just memory addresses, arrays are memory spans with a compile time known size. This means that while arrays represent a resource with bounds and a strict lifespan boundary in its scope, pointers only represent the positional aspect of the array: where it is
Never Spam Bot
Chaudhary sent multiple messages that looks like a spam. To stop the bot from deleting your messages, write something non-suspicious. Or find out why here. Spam deleted in this group: 2064
Chaudhary
Correct explanation is When we access using pointer we use arrow And by accessing the elements by reference we use dot
(null)
.?
That's what he meant, and he's right.
Chaudhary
foo->bar = (*foo).bar
Does not get what you are trying to explain
(null)
Does not get what you are trying to explain
foo->bar is equivalent to (*foo).bar... it gets the member bar from the struct that foo points to. It is indeed syntax sugar. If you're into eerie explanations, read the C23 spec for it: A postfix expression followed by the -> operator and an identifier designates a member of a structure or union object. The value is that of the named member of the object to which the first expression points, and is an lvalue.93) If the first expression is a pointer to a qualified type, the result has the so-qualified version of the type of the designated member.
exo
someone good with windows api hooking? (I have questions about the detours library) (p.m’s only)
Rose
someone good with windows api hooking? (I have questions about the detours library) (p.m’s only)
Don't ask meta questions. In other words, don't ask to ask. Questions like "Does anyone know XYZ?", "Has anyone used XYZ?" or "Can someone help me?" are all considered meta questions because they don't specify what your actual problem is. These questions give the impression that you want people to approach you and offer their help as if they don't have any other work to do. Now doesn't that expectation make you look like an idiot? If you have a question ask it directly. You are more likely to get a response that way.
exo
#meta
omg klimi
klimi
Correct explanation is When we access using pointer we use arrow And by accessing the elements by reference we use dot
c #include <stdio.h> struct in { int a; }; int main() { struct in arr[3] = {11,12,13}; printf("%d\n", (*(arr+0)).a ); printf("%d\n", (*(arr+2)).a ); } $ gcc test.c $ ./a.out 11 13
Hahhh
Can someone type c program code for finding "all subsets of an array using functions"
It's
Please send the Introduction of computer hand notes